René's URL Explorer Experiment


Title: DistributionNotFound error potentially caused by pkg_resources · Issue #1307 · googleapis/python-bigquery · GitHub

Open Graph Title: DistributionNotFound error potentially caused by pkg_resources · Issue #1307 · googleapis/python-bigquery

X Title: DistributionNotFound error potentially caused by pkg_resources · Issue #1307 · googleapis/python-bigquery

Description: Hi, when using this package on my local machine I have no issues, however when deploying to our serverless environment in an AWS lambda we get the error seen at the bottom of this issue. We have tried numerous changes, such as using the ...

Open Graph Description: Hi, when using this package on my local machine I have no issues, however when deploying to our serverless environment in an AWS lambda we get the error seen at the bottom of this issue. We have tr...

X Description: Hi, when using this package on my local machine I have no issues, however when deploying to our serverless environment in an AWS lambda we get the error seen at the bottom of this issue. We have tr...

Opengraph URL: https://github.com/googleapis/python-bigquery/issues/1307

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DistributionNotFound error potentially caused by pkg_resources","articleBody":"Hi,\r\n\r\nwhen using this package on my local machine I have no issues, however when deploying to our serverless environment in an AWS lambda we get the error seen at the bottom of this issue.\r\n\r\nWe have tried numerous changes, such as using the same version of pip being used locally, and disabling slim in the serverless python requirements, but the issue is still happening. Locally we use poetry to install packages.\r\n\r\nWhen looking at the error message, the issue seems to be around pkg_resources, and from looking at other google packages I can see similar issues have been encountered and resolved around this. Is it possible to do something similar here? We are currently blocked from using this package until this issue is resolved.\r\n\r\n\r\nRelated issues from other projects:\r\nhttps://github.com/googleapis/python-api-core/issues/27\r\nhttps://github.com/googleapis/google-api-python-client/pull/1623/files\r\n\r\n#### Environment details\r\n\r\n  - OS type and version: Linux on a docker container\r\n  - Python version: `3.7.10`\r\n  - pip version: `22.0.4`\r\n  - `google-cloud-bigquery` version: `3.3.0`\r\n\r\n#### Steps to reproduce\r\n\r\n  1. Deploy the build and attempt to run any code\r\n\r\n#### Stack trace\r\n```\r\n{\r\n  \"errorMessage\": \"The 'google-cloud-bigquery-storage' distribution was not found and is required by the application\",\r\n  \"errorType\": \"DistributionNotFound\",\r\n  \"stackTrace\": [\r\n    \"  File \\\"/var/lang/lib/python3.7/imp.py\\\", line 234, in load_module\\n    return load_source(name, filename, file)\\n\",\r\n    \"  File \\\"/var/lang/lib/python3.7/imp.py\\\", line 171, in load_source\\n    module = _load(spec)\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 696, in _load\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 677, in _load_unlocked\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap_external>\\\", line 728, in exec_module\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 219, in _call_with_frames_removed\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/datadog_lambda/handler.py\\\", line 27, in \u003cmodule>\\n    handler_module = import_module(mod_name)\\n\",\r\n    \"  File \\\"/var/lang/lib/python3.7/importlib/__init__.py\\\", line 127, in import_module\\n    return _bootstrap._gcd_import(name[level:], package, level)\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 1006, in _gcd_import\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 983, in _find_and_load\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 215, in wrapped_find_and_load_unlocked\\n    return exec_and_call_hooks(module_name, wrapped, args, kwargs)\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 171, in exec_and_call_hooks\\n    return wrapped(*args, **kwargs)\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 967, in _find_and_load_unlocked\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 677, in _load_unlocked\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap_external>\\\", line 728, in exec_module\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 219, in _call_with_frames_removed\\n\",\r\n    \"  File \\\"/var/task/handlers/functions/voz_rf.py\\\", line 10, in \u003cmodule>\\n    from google.cloud.bigquery import Client\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 983, in _find_and_load\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 215, in wrapped_find_and_load_unlocked\\n    return exec_and_call_hooks(module_name, wrapped, args, kwargs)\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 171, in exec_and_call_hooks\\n    return wrapped(*args, **kwargs)\\n\",\r\n    \"  File \\\"/tmp/sls-py-req/google/cloud/bigquery/__init__.py\\\", line 35, in \u003cmodule>\\n    from google.cloud.bigquery.client import Client\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 983, in _find_and_load\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 215, in wrapped_find_and_load_unlocked\\n    return exec_and_call_hooks(module_name, wrapped, args, kwargs)\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 171, in exec_and_call_hooks\\n    return wrapped(*args, **kwargs)\\n\",\r\n    \"  File \\\"/tmp/sls-py-req/google/cloud/bigquery/client.py\\\", line 59, in \u003cmodule>\\n    from google.cloud.bigquery_storage_v1.services.big_query_read.client import (\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 983, in _find_and_load\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 215, in wrapped_find_and_load_unlocked\\n    return exec_and_call_hooks(module_name, wrapped, args, kwargs)\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 171, in exec_and_call_hooks\\n    return wrapped(*args, **kwargs)\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 983, in _find_and_load\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 215, in wrapped_find_and_load_unlocked\\n    return exec_and_call_hooks(module_name, wrapped, args, kwargs)\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 171, in exec_and_call_hooks\\n    return wrapped(*args, **kwargs)\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 983, in _find_and_load\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 215, in wrapped_find_and_load_unlocked\\n    return exec_and_call_hooks(module_name, wrapped, args, kwargs)\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 171, in exec_and_call_hooks\\n    return wrapped(*args, **kwargs)\\n\",\r\n    \"  File \\\"\u003cfrozen importlib._bootstrap>\\\", line 983, in _find_and_load\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 215, in wrapped_find_and_load_unlocked\\n    return exec_and_call_hooks(module_name, wrapped, args, kwargs)\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/ddtrace/internal/import_hooks.py\\\", line 171, in exec_and_call_hooks\\n    return wrapped(*args, **kwargs)\\n\",\r\n    \"  File \\\"/tmp/sls-py-req/google/cloud/bigquery_storage_v1/__init__.py\\\", line 22, in \u003cmodule>\\n    \\\"google-cloud-bigquery-storage\\\"\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/pkg_resources/__init__.py\\\", line 481, in get_distribution\\n    dist = get_provider(dist)\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/pkg_resources/__init__.py\\\", line 357, in get_provider\\n    return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/pkg_resources/__init__.py\\\", line 900, in require\\n    needed = self.resolve(parse_requirements(requirements))\\n\",\r\n    \"  File \\\"/opt/python/lib/python3.7/site-packages/pkg_resources/__init__.py\\\", line 786, in resolve\\n    raise DistributionNotFound(req, requirers)\\n\"\r\n  ]\r\n}\r\n```\r\n","author":{"url":"https://github.com/dionearle","@type":"Person","name":"dionearle"},"datePublished":"2022-08-09T03:32:54Z","url":"https://github.com/googleapis/python-bigquery/issues/1307"}

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:7be02f19-cbbd-dc03-ac46-745794b0352d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8DC6:2FE0A8:84481E:BB4A57:6AFE1A25
html-safe-nonce9ddffb34b6891f7d40d526ffdcc92f589e807ff85babcffa4d5a49e39e1a5e2a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REM2OjJGRTBBODo4NDQ4MUU6QkI0QTU3OjZBRkUxQTI1IiwidmlzaXRvcl9pZCI6IjcwNjQxMjY3NzMwMzM1NzI5MDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4a3b3cee54993dd56ae0587a2f57c61251dc50c1c45ffee1f49e83ec2c2662d7
hovercard-subject-tagissue:1332660189
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/googleapis/python-bigquery/1307/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c392aeadec715b7beed8d340d907c0fdc9538a5595d34dac6430cc7669e4dc15/googleapis/python-bigquery/issues/1307
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c392aeadec715b7beed8d340d907c0fdc9538a5595d34dac6430cc7669e4dc15/googleapis/python-bigquery/issues/1307
og:image:altHi, when using this package on my local machine I have no issues, however when deploying to our serverless environment in an AWS lambda we get the error seen at the bottom of this issue. We have tr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedionearle
hostnamegithub.com
expected-hostnamegithub.com
Noned0525ab1464526bf4532a5551aa348cf100dff75ef808a96fc67a08b1d946aa9
turbo-cache-controlno-preview
go-importgithub.com/googleapis/python-bigquery git https://github.com/googleapis/python-bigquery.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id226992475
octolytics-dimension-repository_nwogoogleapis/python-bigquery
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id226992475
octolytics-dimension-repository_network_root_nwogoogleapis/python-bigquery
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
releasefef3993a71fa20f7be8e167132fbf9619bc66e12
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/googleapis/python-bigquery/issues/1307#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-bigquery%2Fissues%2F1307
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%2Fgoogleapis%2Fpython-bigquery%2Fissues%2F1307
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=googleapis%2Fpython-bigquery
Reloadhttps://github.com/googleapis/python-bigquery/issues/1307
Reloadhttps://github.com/googleapis/python-bigquery/issues/1307
Reloadhttps://github.com/googleapis/python-bigquery/issues/1307
googleapishttps://github.com/googleapis
python-bigqueryhttps://github.com/googleapis/python-bigquery
Codehttps://github.com/googleapis/python-bigquery
Issueshttps://github.com/googleapis/python-bigquery/issues
Pull requestshttps://github.com/googleapis/python-bigquery/pulls
Actionshttps://github.com/googleapis/python-bigquery/actions
Projectshttps://github.com/googleapis/python-bigquery/projects
Security and qualityhttps://github.com/googleapis/python-bigquery/security
Insightshttps://github.com/googleapis/python-bigquery/insights
https://github.com/googleapis/python-bigquery
DistributionNotFound error potentially caused by pkg_resourceshttps://github.com/googleapis/python-bigquery/issues/1307#top
api: bigqueryIssues related to the googleapis/python-bigquery API.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
status: will not fixInvalid (untrue/unsound/erroneous), inconsistent with product, not on roadmap.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22status%3A%20will%20not%20fix%22
https://github.com/dionearle
dionearlehttps://github.com/dionearle
on Aug 9, 2022https://github.com/googleapis/python-bigquery/issues/1307#issue-1332660189
googleapis/python-api-core#27https://github.com/googleapis/python-api-core/issues/27
https://github.com/googleapis/google-api-python-client/pull/1623/fileshttps://github.com/googleapis/google-api-python-client/pull/1623/files
product-auto-labelhttps://github.com/apps/product-auto-label
api: bigqueryIssues related to the googleapis/python-bigquery API.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
on Aug 9, 2022https://github.com/googleapis/python-bigquery/issues/1307#event-7151883691
https://github.com/dionearle
dionearlehttps://github.com/dionearle
on Aug 9, 2022https://github.com/googleapis/python-bigquery/issues/1307#issuecomment-1208929285
commithttps://github.com/googleapis/python-bigquery-storage/commit/1b7e1263e41a69ff0086de6d6b00cb73a740dbc2
https://github.com/chalmerlowe
chalmerlowehttps://github.com/chalmerlowe
on Feb 2, 2023https://github.com/googleapis/python-bigquery/issues/1307#issuecomment-1414242798
https://github.com/googleapis/python-bigquery-storage/blob/49834632ce42545bc6cfd9f56fcd8b230a64627d/google/cloud/bigquery_storage_v1/__init__.py#L19-L21https://github.com/googleapis/python-bigquery-storage/blob/49834632ce42545bc6cfd9f56fcd8b230a64627d/google/cloud/bigquery_storage_v1/__init__.py#L19-L21
chalmerlowehttps://github.com/chalmerlowe
completedhttps://github.com/googleapis/python-bigquery/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 2, 2023https://github.com/googleapis/python-bigquery/issues/1307#event-8424676767
chalmerlowehttps://github.com/chalmerlowe
status: will not fixInvalid (untrue/unsound/erroneous), inconsistent with product, not on roadmap.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22status%3A%20will%20not%20fix%22
on Feb 2, 2023https://github.com/googleapis/python-bigquery/issues/1307#event-8424678562
Sign up for freehttps://github.com/signup?return_to=https://github.com/googleapis/python-bigquery/issues/1307
Sign in to commenthttps://github.com/login?return_to=https://github.com/googleapis/python-bigquery/issues/1307
api: bigqueryIssues related to the googleapis/python-bigquery API.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
status: will not fixInvalid (untrue/unsound/erroneous), inconsistent with product, not on roadmap.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22status%3A%20will%20not%20fix%22
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.