Advertisement
Guest User

Weird Error with Python 3.6.2 - running bat file won't work

a guest
Sep 3rd, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. Running the same script in bat file by launching it won't work, but if I copy the command and paste to an open command prompt, it will work. the command is "C:\Program Files\Python36\python.exe" -path-to-script- -params "paramvalue"
  2.  
  3. Traceback (most recent call last):
  4. File "C:\SpecialScripts\STREAM_PULL\vimeo_audio\vimeo_aud_spec.py", line 111, in <module>
  5. content = resp.json()
  6. File "C:\Program Files\Python36\lib\site-packages\requests\models.py", line 866, in json
  7. return complexjson.loads(self.text, **kwargs)
  8. File "C:\Program Files\Python36\lib\json\__init__.py", line 354, in loads
  9. return _default_decoder.decode(s)
  10. File "C:\Program Files\Python36\lib\json\decoder.py", line 339, in decode
  11. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  12. File "C:\Program Files\Python36\lib\json\decoder.py", line 357, in raw_decode
  13. raise JSONDecodeError("Expecting value", s, err.value) from None
  14. json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement