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

Python 3 uds.py shows ERROR! #88

Open
DKB0512 opened this issue Dec 18, 2019 · 3 comments
Open

Python 3 uds.py shows ERROR! #88

DKB0512 opened this issue Dec 18, 2019 · 3 comments

Comments

@DKB0512
Copy link

DKB0512 commented Dec 18, 2019

OS : Windows 10
Python Version : Python 3.8.0

I have installed the requirements using the command : pip3 install -r requirements.txt
then when I tried to run the command Python3 uds.py, it shows the error :

//Error
python3 : The term 'python3' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • python3 uds.py
  •   + CategoryInfo          : ObjectNotFound: (python3:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

But When I tried to use the command ./uds.py it opens a blank cmd window for a second and then that cmd window closes itself and nothing happens in the Powershell.

I had a quick search on google and the answers told me to add the PATH of the Python3.8 to your Environment Variables and I have done that also but still same problem occurs.

Other answer suggest to run python instead of python3 so I tried that also but it shows :

//Error
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\Devarsh\Desktop\uds-master\api.py", line 19, in init
self.reauth()
File "C:\Users\Devarsh\Desktop\uds-master\api.py", line 25, in reauth
credentials = store.get()
File "C:\Users\Devarsh\AppData\Local\Programs\Python\Python38-32\lib\site-packages\oauth2client\client.py", line 407, in get
return self.locked_get()
File "C:\Users\Devarsh\AppData\Local\Programs\Python\Python38-32\lib\site-packages\oauth2client\file.py", line 54, in locked_get
credentials = client.Credentials.new_from_json(content)
File "C:\Users\Devarsh\AppData\Local\Programs\Python\Python38-32\lib\site-packages\oauth2client\client.py", line 302, in new_from_json
module_name = data['_module']
KeyError: '_module'

I know that it's for python 3 so using just python is not going to work, but I cannot find a proper solution to run that uds.py file in the Powershell

@ThatIsAPseudo
Copy link

ThatIsAPseudo commented Apr 13, 2020

Check whether the file is minified or not. Mine was on a single line and it did not work, I beautified it and the error disappeared.

Edit: it looks like the same error as #5

@78Alpha
Copy link
Contributor

78Alpha commented Oct 12, 2020

For windows you should use :

py -3 uds.py

python3 is for *nix systems and certain IDE environments to run python files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@ThatIsAPseudo @DKB0512 @78Alpha and others