Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: '_module' #95

Open
max326-coder opened this issue Apr 26, 2020 · 3 comments
Open

KeyError: '_module' #95

max326-coder opened this issue Apr 26, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@max326-coder
Copy link

PS C:\Users\Dhaval\Downloads\uds-master> python3 uds.py push ~\Desktop\ffmpeg.exe
Traceback (most recent call last):
File "uds.py", line 534, in
main()
File "uds.py", line 452, in main
uds = UDS()
File "uds.py", line 46, in init
self.api = GoogleAPI()
File "C:\Users\Dhaval\Downloads\uds-master\api.py", line 19, in init
self.reauth()
File "C:\Users\Dhaval\Downloads\uds-master\api.py", line 25, in reauth
credentials = store.get()
File "C:\Users\Dhaval\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\oauth2client\client.py", line 407, in get
return self.locked_get()
File "C:\Users\Dhaval\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\oauth2client\file.py", line 54, in locked_get
credentials = client.Credentials.new_from_json(content)
File "C:\Users\Dhaval\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\oauth2client\client.py", line 302, in new_from_json
module_name = data['_module']
KeyError: '_module'

help me out please reply me

@max326-coder max326-coder added the bug Something isn't working label Apr 26, 2020
@khatibomar
Copy link

Hello try to use an envirement , virtualenv or any thing like this .

@78Alpha
Copy link
Contributor

78Alpha commented Oct 12, 2020

Tested this out, the error does pop up. Some forums say it has to do with quickstart, but this seems less like the case.

After installing the requirements manually, and installing the required elements from step 2 of the google guide, my Python3 install was able to run it (I can not verify much beyond that as I have 5 installs spaghettified together...)

So, try installing with a specific interpreter, the requirements one by one (py -3.8 -m pip install X Y Z)

@LoipesMas
Copy link

For me the problem was that when I downloaded the client secret from google's api it saved as credentials.json, so i moved it to uds folder and copied it to client_secret.json. This left old credentials.json file, which uds api needs to be something else.
Deleting credentials.json fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants