René's URL Explorer Experiment


Title: oauth2 error '_module' dict entry · Issue #13 · googleworkspace/python-samples · GitHub

Open Graph Title: oauth2 error '_module' dict entry · Issue #13 · googleworkspace/python-samples

X Title: oauth2 error '_module' dict entry · Issue #13 · googleworkspace/python-samples

Description: Hi, I am trying to get the python quickstart.py to work described here: https://developers.google.com/drive/api/v3/quickstart/python I also ran into #12, but additionally I am having issues loading the credentials.json that I downloaded ...

Open Graph Description: Hi, I am trying to get the python quickstart.py to work described here: https://developers.google.com/drive/api/v3/quickstart/python I also ran into #12, but additionally I am having issues loading...

X Description: Hi, I am trying to get the python quickstart.py to work described here: https://developers.google.com/drive/api/v3/quickstart/python I also ran into #12, but additionally I am having issues loading...

Opengraph URL: https://github.com/googleworkspace/python-samples/issues/13

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"oauth2 error '_module' dict entry","articleBody":"Hi,\r\n\r\nI am trying to get the python quickstart.py to work described here:\r\nhttps://developers.google.com/drive/api/v3/quickstart/python\r\n\r\nI also ran into #12, but additionally I am having issues loading the credentials.json that I downloaded when I enabled the Drive API per the link above.\r\n\r\nIt appears that the oauth2client module is attempting to extract a '_module' entry, which doesn't exist in the credentials.json file generated during the download.\r\n\r\nI've been using python for a while, but this is the first time in a couple of years I'm playing with the google APIs.  Not sure if this is something I'm doing wrong or if I stumbled on a bug.\r\n\r\nipython dump below.  I confirmed that the data is a dict with the contents of the credentials.json file.\r\n\r\n[edit:  Note that I moved the credentials.json file into the same directory as the quickstart.py directory.]\r\n\r\nThanks,\r\n- Josh.\r\n\r\n\r\n\r\n```\r\n(C:\\Users\\josh\\Anaconda3\\envs\\py35) d:\\somedir>ipython --pdb quickstart.py\r\n---------------------------------------------------------------------------\r\nKeyError                                  Traceback (most recent call last)\r\nd:\\somedir\\quickstart.py in \u003cmodule>()\r\n     15 #store = file.Storage('PublishPdf.json')\r\n     16 store = file.Storage('credentials.json')\r\n---> 17 creds = store.get()\r\n     18 if not creds or creds.invalid:\r\n     19     flow = client.flow_from_clientsecrets('client_secret.json', SCOPES)\r\n\r\nC:\\Users\\josh\\Anaconda3\\envs\\py35\\lib\\site-packages\\oauth2client\\client.py in get(self)\r\n    405         self.acquire_lock()\r\n    406         try:\r\n--> 407             return self.locked_get()\r\n    408         finally:\r\n    409             self.release_lock()\r\n\r\nC:\\Users\\josh\\Anaconda3\\envs\\py35\\lib\\site-packages\\oauth2client\\file.py in locked_get(self)\r\n     52\r\n     53         try:\r\n---> 54             credentials = client.Credentials.new_from_json(content)\r\n     55             credentials.set_store(self)\r\n     56         except ValueError:\r\n\r\nC:\\Users\\josh\\Anaconda3\\envs\\py35\\lib\\site-packages\\oauth2client\\client.py in new_from_json(cls, json_data)\r\n    300         # Find and call the right classmethod from_json() to restore\r\n    301         # the object.\r\n--> 302         module_name = data['_module']\r\n    303         try:\r\n    304             module_obj = __import__(module_name)\r\n\r\nKeyError: '_module'\r\n> c:\\users\\josh\\anaconda3\\envs\\py35\\lib\\site-packages\\oauth2client\\client.py(302)new_from_json()\r\n    300         # Find and call the right classmethod from_json() to restore\r\n    301         # the object.\r\n--> 302         module_name = data['_module']\r\n    303         try:\r\n    304             module_obj = __import__(module_name)\r\n\r\nipdb>\r\n```\r\n\r\n","author":{"url":"https://github.com/bertram1isu","@type":"Person","name":"bertram1isu"},"datePublished":"2018-07-05T19:47:40Z","url":"https://github.com/googleworkspace/python-samples/issues/13"}

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:ceef97b6-384d-1708-6635-62e96d56c260
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCD10:C5D2C:64045:7BEDB:6B08886B
html-safe-nonce4a848d8182fdcd27c363036bb59e72c1eef3d2fa2e1b05b57b2d28c56f1dca5f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDEwOkM1RDJDOjY0MDQ1OjdCRURCOjZCMDg4ODZCIiwidmlzaXRvcl9pZCI6IjY2OTYyNjk2OTE3ODQ1NjI3OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac173f98a806bccb77c352f08b4ef26bb61b8baa0c702cbe8c69a13ae83b5e6525
hovercard-subject-tagissue:338703520
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/googleworkspace/python-samples/13/issue_layout
twitter:imagehttps://opengraph.githubassets.com/78e06494799ec8215ca3899c5817bc5c65ba7cb7ae158a0794ee6512a9c225df/googleworkspace/python-samples/issues/13
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/78e06494799ec8215ca3899c5817bc5c65ba7cb7ae158a0794ee6512a9c225df/googleworkspace/python-samples/issues/13
og:image:altHi, I am trying to get the python quickstart.py to work described here: https://developers.google.com/drive/api/v3/quickstart/python I also ran into #12, but additionally I am having issues loading...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebertram1isu
hostnamegithub.com
expected-hostnamegithub.com
None60e86161f3e246339ce8d4bd308e3da0ecd5ebd5e610d57e00d21487fe085d68
turbo-cache-controlno-preview
go-importgithub.com/googleworkspace/python-samples git https://github.com/googleworkspace/python-samples.git
octolytics-dimension-user_id3708359
octolytics-dimension-user_logingoogleworkspace
octolytics-dimension-repository_id14163863
octolytics-dimension-repository_nwogoogleworkspace/python-samples
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14163863
octolytics-dimension-repository_network_root_nwogoogleworkspace/python-samples
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
releasee87e2b0f8aff9e45b7ac6c81be5a939ad971830c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/googleworkspace/python-samples/issues/13#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleworkspace%2Fpython-samples%2Fissues%2F13
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%2Fgoogleworkspace%2Fpython-samples%2Fissues%2F13
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=googleworkspace%2Fpython-samples
Reloadhttps://github.com/googleworkspace/python-samples/issues/13
Reloadhttps://github.com/googleworkspace/python-samples/issues/13
Reloadhttps://github.com/googleworkspace/python-samples/issues/13
googleworkspacehttps://github.com/googleworkspace
python-sampleshttps://github.com/googleworkspace/python-samples
Codehttps://github.com/googleworkspace/python-samples
Issues55 (55)https://github.com/googleworkspace/python-samples/issues
Pull requests97 (97)https://github.com/googleworkspace/python-samples/pulls
Actionshttps://github.com/googleworkspace/python-samples/actions
Projectshttps://github.com/googleworkspace/python-samples/projects
Wikihttps://github.com/googleworkspace/python-samples/wiki
Security and qualityhttps://github.com/googleworkspace/python-samples/security
Insightshttps://github.com/googleworkspace/python-samples/insights
https://github.com/googleworkspace/python-samples
New issuehttps://github.com/login?return_to=https://github.com/googleworkspace/python-samples/issues/13
New issuehttps://github.com/login?return_to=https://github.com/googleworkspace/python-samples/issues/13
oauth2 error '_module' dict entryhttps://github.com/googleworkspace/python-samples/issues/13#top
https://github.com/bertram1isu
bertram1isuhttps://github.com/bertram1isu
on Jul 5, 2018https://github.com/googleworkspace/python-samples/issues/13#issue-338703520
https://developers.google.com/drive/api/v3/quickstart/pythonhttps://developers.google.com/drive/api/v3/quickstart/python
#12https://github.com/googleworkspace/python-samples/issues/12
https://github.com/sedaradji
sedaradjihttps://github.com/sedaradji
on Jul 9, 2018https://github.com/googleworkspace/python-samples/issues/13#issuecomment-403449614
https://github.com/paraflu
parafluhttps://github.com/paraflu
on Jul 10, 2018https://github.com/googleworkspace/python-samples/issues/13#issuecomment-403857145
https://github.com/StephaneKazmierczak
StephaneKazmierczakhttps://github.com/StephaneKazmierczak
on Jul 10, 2018https://github.com/googleworkspace/python-samples/issues/13#issuecomment-403986810
https://github.com/sedaradji
sedaradjihttps://github.com/sedaradji
on Jul 11, 2018https://github.com/googleworkspace/python-samples/issues/13#issuecomment-404039269
https://github.com/alete89
alete89https://github.com/alete89
on Jul 13, 2018https://github.com/googleworkspace/python-samples/issues/13#issuecomment-404966133
https://github.com/baz1
baz1https://github.com/baz1
on Jul 15, 2018https://github.com/googleworkspace/python-samples/issues/13#issuecomment-405067119
https://github.com/WittmannF
WittmannFhttps://github.com/WittmannF
on Jul 16, 2018https://github.com/googleworkspace/python-samples/issues/13#issuecomment-405213081
@baz1https://github.com/baz1
https://github.com/erickoledadevrel
erickoledadevrelhttps://github.com/erickoledadevrel
on Jul 16, 2018https://github.com/googleworkspace/python-samples/issues/13#issuecomment-405241224
erickoledadevrelhttps://github.com/erickoledadevrel
completedhttps://github.com/googleworkspace/python-samples/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#15https://github.com/googleworkspace/python-samples/pull/15
on Jul 18, 2018https://github.com/googleworkspace/python-samples/issues/13#event-1738990465
Sign up for freehttps://github.com/signup?return_to=https://github.com/googleworkspace/python-samples/issues/13
Sign in to commenthttps://github.com/login?return_to=https://github.com/googleworkspace/python-samples/issues/13
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.