René's URL Explorer Experiment


Title: discovery_cache module not packaged during installation. · Issue #128 · googleapis/google-api-python-client · GitHub

Open Graph Title: discovery_cache module not packaged during installation. · Issue #128 · googleapis/google-api-python-client

X Title: discovery_cache module not packaged during installation. · Issue #128 · googleapis/google-api-python-client

Description: I've installed google-api-python-client from source, but when at some point my application was failing with this message: ... ... File "build/bdist.linux-x86_64/egg/oauth2client/util.py", line 142, in positional_wrapper return wrapped(*a...

Open Graph Description: I've installed google-api-python-client from source, but when at some point my application was failing with this message: ... ... File "build/bdist.linux-x86_64/egg/oauth2client/util.py", line 142,...

X Description: I've installed google-api-python-client from source, but when at some point my application was failing with this message: ... ... File "build/bdist.linux-x86_64/egg/oauth2client/util.py&qu...

Opengraph URL: https://github.com/googleapis/google-api-python-client/issues/128

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"discovery_cache module not packaged during installation.","articleBody":"I've installed `google-api-python-client` from source, but when at some point my application was failing with this message:\n\n```\n  ...\n  ...\n  File \"build/bdist.linux-x86_64/egg/oauth2client/util.py\", line 142, in positional_wrapper\n    return wrapped(*args, **kwargs)\n  File \"build/bdist.linux-x86_64/egg/googleapiclient/discovery.py\", line 193, in build\n    content = _retrieve_discovery_doc(requested_url, http, cache_discovery, cache)\n  File \"build/bdist.linux-x86_64/egg/googleapiclient/discovery.py\", line 215, in _retrieve_discovery_doc\n    from . import discovery_cache\nImportError: cannot import name discovery_cache\n```\n\nI've checked if `discovery_cache` module was actually part of the `egg`, and unfortunately it was not:\n\n```\n[root@e42fb97ce657 unit]# python\nPython 2.7.5 (default, Jun 24 2015, 00:41:19) \n[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e import googleapiclient.discovery_cache\nTraceback (most recent call last):\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\nImportError: No module named discovery_cache\n\u003e\u003e\u003e \n```\n\nHere are all the files in `egg`\n\n```\n[root@e42fb97ce657 ~]# unzip -l /usr/lib/python2.7/site-packages/google_api_python_client-1.4.1-py2.7.egg \nArchive:  /usr/lib/python2.7/site-packages/google_api_python_client-1.4.1-py2.7.egg\n  Length      Date    Time    Name\n---------  ---------- -----   ----\n     1169  09-03-2015 16:09   apiclient/__init__.py\n     1301  09-03-2015 16:09   apiclient/__init__.pyc\n        1  09-03-2015 16:09   EGG-INFO/dependency_links.txt\n       62  09-03-2015 16:09   EGG-INFO/requires.txt\n       26  09-03-2015 16:09   EGG-INFO/top_level.txt\n      969  09-03-2015 16:09   EGG-INFO/PKG-INFO\n        1  09-03-2015 16:09   EGG-INFO/zip-safe\n      545  09-03-2015 16:09   EGG-INFO/SOURCES.txt\n    53575  09-03-2015 16:09   googleapiclient/http.py\n     9910  09-03-2015 16:09   googleapiclient/channel.py\n    40890  09-03-2015 16:09   googleapiclient/discovery.py\n     9907  09-03-2015 16:09   googleapiclient/schema.pyc\n      620  09-03-2015 16:09   googleapiclient/__init__.py\n     9317  09-03-2015 16:09   googleapiclient/schema.py\n    11830  09-03-2015 16:09   googleapiclient/model.py\n     4047  09-03-2015 16:09   googleapiclient/sample_tools.py\n     6552  09-03-2015 16:09   googleapiclient/mimeparse.py\n    53976  09-03-2015 16:09   googleapiclient/http.pyc\n     7043  09-03-2015 16:09   googleapiclient/mimeparse.pyc\n     6333  09-03-2015 16:09   googleapiclient/errors.pyc\n     3131  09-03-2015 16:09   googleapiclient/sample_tools.pyc\n     3622  09-03-2015 16:09   googleapiclient/errors.py\n    35534  09-03-2015 16:09   googleapiclient/discovery.pyc\n    14028  09-03-2015 16:09   googleapiclient/model.pyc\n      175  09-03-2015 16:09   googleapiclient/__init__.pyc\n    10690  09-03-2015 16:09   googleapiclient/channel.pyc\n---------                     -------\n   285254                     26 files\n[root@e42fb97ce657 ~]# \n```\n\nAs a workaround I had to add `googleapiclient/discovery_cache` to the `packages` in `setup.py` so it looked like that:\n\n```\n[root@e42fb97ce657 google-api-python-client]# more setup.py | grep packages -A 4 -m1\npackages = [\n    'apiclient',\n    'googleapiclient',\n    'googleapiclient/discovery_cache'\n]\n```\n\nThen installed and everything magically started working.\n\n```\n[root@e42fb97ce657 google-api-python-client]# python\nPython 2.7.5 (default, Jun 24 2015, 00:41:19) \n[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e import googleapiclient.discovery_cache\n\u003e\u003e\u003e \n```\n\nHere is a quick sample that looks similar to my environment using `Docker`:\n\n```\nFROM centos:centos7\n\nRUN yum install -y git python-devel python-setuptools unzip\nRUN easy_install pip\nRUN cd /tmp ;\\\n    git clone https://github.com/google/google-api-python-client \u0026\u0026 \\\n    cd google-api-python-client \u0026\u0026 \\\n    python setup.py install \n```\n\nI've also tried to follow preferred suggestion from the `README.md` and install it from `pip` but it ended up in the same situation.\n\nPlease advice on how to proceed without making \"manual\" modifications to the official package?\n","author":{"url":"https://github.com/sergey-ob","@type":"Person","name":"sergey-ob"},"datePublished":"2015-09-03T18:59:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/128/google-api-python-client/issues/128"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d0a73e21-c78e-330d-53e5-3888c8f645de
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD020:2E51E:E5AF61:142476A:6A4E8B8D
html-safe-noncea1e6bf802340b8f6112b6f8c53778a8454ab93a6fd965d39fcb3de55d7068b80
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDIwOjJFNTFFOkU1QUY2MToxNDI0NzZBOjZBNEU4QjhEIiwidmlzaXRvcl9pZCI6IjExMTQwNjc0ODg0NzQwNDEyMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac475210a49ef43d1dfab91ea14437ff856004b878ae83f27a5ec875a7ba90e22e
hovercard-subject-tagissue:104760107
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/google-api-python-client/128/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d756a7a711f2aa1bbc2d202d6e63ed1772a0407dfa3e5471721fe56131539b5a/googleapis/google-api-python-client/issues/128
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d756a7a711f2aa1bbc2d202d6e63ed1772a0407dfa3e5471721fe56131539b5a/googleapis/google-api-python-client/issues/128
og:image:altI've installed google-api-python-client from source, but when at some point my application was failing with this message: ... ... File "build/bdist.linux-x86_64/egg/oauth2client/util.py", line 142,...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesergey-ob
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
go-importgithub.com/googleapis/google-api-python-client git https://github.com/googleapis/google-api-python-client.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id15749269
octolytics-dimension-repository_nwogoogleapis/google-api-python-client
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id15749269
octolytics-dimension-repository_network_root_nwogoogleapis/google-api-python-client
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
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/googleapis/google-api-python-client/issues/128#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fissues%2F128
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fissues%2F128
Sign up https://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%2Fgoogle-api-python-client
Reloadhttps://github.com/googleapis/google-api-python-client/issues/128
Reloadhttps://github.com/googleapis/google-api-python-client/issues/128
Reloadhttps://github.com/googleapis/google-api-python-client/issues/128
Please reload this pagehttps://github.com/googleapis/google-api-python-client/issues/128
googleapis https://github.com/googleapis
google-api-python-clienthttps://github.com/googleapis/google-api-python-client
Notifications https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client
Fork 2.6k https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client
Star 8.9k https://github.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client
Code https://github.com/googleapis/google-api-python-client
Issues 21 https://github.com/googleapis/google-api-python-client/issues
Pull requests 29 https://github.com/googleapis/google-api-python-client/pulls
Discussions https://github.com/googleapis/google-api-python-client/discussions
Actions https://github.com/googleapis/google-api-python-client/actions
Projects https://github.com/googleapis/google-api-python-client/projects
Security and quality 0 https://github.com/googleapis/google-api-python-client/security
Insights https://github.com/googleapis/google-api-python-client/pulse
Code https://github.com/googleapis/google-api-python-client
Issues https://github.com/googleapis/google-api-python-client/issues
Pull requests https://github.com/googleapis/google-api-python-client/pulls
Discussions https://github.com/googleapis/google-api-python-client/discussions
Actions https://github.com/googleapis/google-api-python-client/actions
Projects https://github.com/googleapis/google-api-python-client/projects
Security and quality https://github.com/googleapis/google-api-python-client/security
Insights https://github.com/googleapis/google-api-python-client/pulse
discovery_cache module not packaged during installation.https://github.com/googleapis/google-api-python-client/issues/128#top
https://github.com/nathanielmanistaatgoogle
🚨This issue needs some love.https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22%3Arotating_light%3A%22
triage meI really want to be triaged.https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22triage%20me%22
https://github.com/sergey-ob
sergey-obhttps://github.com/sergey-ob
on Sep 3, 2015https://github.com/googleapis/google-api-python-client/issues/128#issue-104760107
nathanielmanistaatgooglehttps://github.com/nathanielmanistaatgoogle
🚨This issue needs some love.https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22%3Arotating_light%3A%22
triage meI really want to be triaged.https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22triage%20me%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.