Hello. I'm new to using a mac and Python. My first issue was wtf is python, I google'd and quickly solved that. Opened terminal, changed directories to where my pokemon file was, and then i entered 'python readAndChangeXML.py' in the terminal and there's an issue that I'm not too sure how to solve..? If anyone could help, that'd be great, otherwise i'll just theorycraft some more x.x
Traceback (most recent call last):
File "readAndChangeXML.py", line 32, in
start()
File "readAndChangeXML.py", line 30, in start
generateXML()
File "readAndChangeXML.py", line 17, in generateXML
geo = getPokemonLocation()
File "readAndChangeXML.py", line 11, in getPokemonLocation
return json.load(response)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Hello. I'm new to using a mac and Python. My first issue was wtf is python, I google'd and quickly solved that. Opened terminal, changed directories to where my pokemon file was, and then i entered 'python readAndChangeXML.py' in the terminal and there's an issue that I'm not too sure how to solve..? If anyone could help, that'd be great, otherwise i'll just theorycraft some more x.x
Traceback (most recent call last):
File "readAndChangeXML.py", line 32, in
start()
File "readAndChangeXML.py", line 30, in start
generateXML()
File "readAndChangeXML.py", line 17, in generateXML
geo = getPokemonLocation()
File "readAndChangeXML.py", line 11, in getPokemonLocation
return json.load(response)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py", line 291, in load
**kw)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded