René's URL Explorer Experiment


Title: Mypy cannot find library stubs for protobuf · Issue #10986 · python/typeshed · GitHub

Open Graph Title: Mypy cannot find library stubs for protobuf · Issue #10986 · python/typeshed

X Title: Mypy cannot find library stubs for protobuf · Issue #10986 · python/typeshed

Description: I'm having issues with mypy correctly finding type stubs. After creating a virtual environment on my Fedora machine using virtualenv, I install the following packages: pip install mypy protobuf types-protobuf Using mypy to check the foll...

Open Graph Description: I'm having issues with mypy correctly finding type stubs. After creating a virtual environment on my Fedora machine using virtualenv, I install the following packages: pip install mypy protobuf typ...

X Description: I'm having issues with mypy correctly finding type stubs. After creating a virtual environment on my Fedora machine using virtualenv, I install the following packages: pip install mypy protobuf...

Opengraph URL: https://github.com/python/typeshed/issues/10986

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mypy cannot find library stubs for protobuf","articleBody":"I'm having issues with mypy correctly finding type stubs.\r\n\r\nAfter creating a virtual environment on my Fedora machine using `virtualenv`, I install the following packages:\r\n\r\n```sh\r\npip install mypy protobuf types-protobuf\r\n```\r\n\r\nUsing mypy to check the following code\r\n\r\n```python\r\nimport google.protobuf\r\n```\r\n\r\nI get the error messsage:\r\n\r\n```\r\nmy_file.py:1: error: Skipping analyzing \"google\": module is installed, but missing library stubs or py.typed marker  [import-untyped]\r\nmy_file.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports\r\nFound 1 error in 1 file (checked 1 source file)\r\n```\r\n\r\nThe reason for this seems that in the virtual environment there are two independent lib directories (`my_env/lib` and `my_env/lib64`). One `google` directory containing code of the protobuf package is in `lib64/google` and the types (`types-protobuf`) are installed to `lib/google-stubs`.\r\nEither moving the `google-stubs` directory to the `lib64` variant or creating an (empty) `google` directory in `lib` resolves the issue.\r\n\r\nIt seems mypy is unable to find the corresponding type stubs in the respectively other lib directory.\r\n\r\nHas anybody an idea on how to approach this? I do not even know whether the respective installation locations of either the protobuf or the types-protobuf package are correct or whether this is an issue with mypy resolving types?!","author":{"url":"https://github.com/schmidma","@type":"Person","name":"schmidma"},"datePublished":"2023-11-06T16:09:45Z","url":"https://github.com/python/typeshed/issues/10986"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2bee8ed5-154a-ed58-a925-0fc5de7b552b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB6C6:3E987B:E362E5:131E4D4:6B0059EB
html-safe-nonce3343ded1a91865295abd2a4fc712f64c9c1084f1061d6a3913ddaca2770385c2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkM2OjNFOTg3QjpFMzYyRTU6MTMxRTRENDo2QjAwNTlFQiIsInZpc2l0b3JfaWQiOiI1NjE1MTA3NTM0MzkxMTA2MDI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7b336634d5c976e49cd4196feb4a7c3aabb09c8b3931e6ec0fb83dc0e56e8e9e
hovercard-subject-tagissue:1979522837
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/typeshed/10986/issue_layout
twitter:imagehttps://opengraph.githubassets.com/58d3d9b4a0d90c6008042b85b5c940bce9492dd53a829aa55bb22ac22c343b16/python/typeshed/issues/10986
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/58d3d9b4a0d90c6008042b85b5c940bce9492dd53a829aa55bb22ac22c343b16/python/typeshed/issues/10986
og:image:altI'm having issues with mypy correctly finding type stubs. After creating a virtual environment on my Fedora machine using virtualenv, I install the following packages: pip install mypy protobuf typ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameschmidma
hostnamegithub.com
expected-hostnamegithub.com
None29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73
turbo-cache-controlno-preview
go-importgithub.com/python/typeshed git https://github.com/python/typeshed.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id31696383
octolytics-dimension-repository_nwopython/typeshed
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31696383
octolytics-dimension-repository_network_root_nwopython/typeshed
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseeacd927ba6112e3b01ba99c762bd699a4a4f5df7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/typeshed/issues/10986#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F10986
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Ftypeshed%2Fissues%2F10986
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Ftypeshed
Reloadhttps://github.com/python/typeshed/issues/10986
Reloadhttps://github.com/python/typeshed/issues/10986
Reloadhttps://github.com/python/typeshed/issues/10986
pythonhttps://github.com/python
typeshedhttps://github.com/python/typeshed
Codehttps://github.com/python/typeshed
Issues196 (196)https://github.com/python/typeshed/issues
Pull requests252 (252)https://github.com/python/typeshed/pulls
Actionshttps://github.com/python/typeshed/actions
Security and qualityhttps://github.com/python/typeshed/security
Insightshttps://github.com/python/typeshed/insights
https://github.com/python/typeshed
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/10986
New issuehttps://github.com/login?return_to=https://github.com/python/typeshed/issues/10986
Mypy cannot find library stubs for protobufhttps://github.com/python/typeshed/issues/10986#top
https://github.com/schmidma
schmidmahttps://github.com/schmidma
on Nov 6, 2023https://github.com/python/typeshed/issues/10986#issue-1979522837
https://github.com/brandonchinn178
brandonchinn178https://github.com/brandonchinn178
on Apr 4, 2025https://github.com/python/typeshed/issues/10986#issuecomment-2777275156
@Avasamhttps://github.com/Avasam
https://github.com/Avasam
Avasamhttps://github.com/Avasam
on Apr 4, 2025https://github.com/python/typeshed/issues/10986#issuecomment-2779280060
@brandonchinn178https://github.com/brandonchinn178
https://github.com/brandonchinn178
brandonchinn178https://github.com/brandonchinn178
on Apr 4, 2025https://github.com/python/typeshed/issues/10986#issuecomment-2779287693
https://github.com/srittau
srittauhttps://github.com/srittau
on Apr 4, 2025https://github.com/python/typeshed/issues/10986#issuecomment-2779330592
python/mypy#14057https://github.com/python/mypy/issues/14057
https://github.com/srittau
srittauhttps://github.com/srittau
on Apr 4, 2025https://github.com/python/typeshed/issues/10986#issuecomment-2779336852
@brandonchinn178https://github.com/brandonchinn178
@brandonchinn178https://github.com/brandonchinn178
srittauhttps://github.com/srittau
not plannedhttps://github.com/python/typeshed/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Apr 4, 2025https://github.com/python/typeshed/issues/10986#event-17133626094
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/typeshed/issues/10986
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/typeshed/issues/10986
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.