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

Not working #3

Open
alonsoir opened this issue Mar 21, 2022 · 0 comments
Open

Not working #3

alonsoir opened this issue Mar 21, 2022 · 0 comments

Comments

@alonsoir
Copy link

┌──(kali㉿kali)-[~/git/SpaceAPI]
└─$ pip3 install geopy geocoder
Defaulting to user installation because normal site-packages is not writeable
Collecting geopy
Downloading geopy-2.2.0-py3-none-any.whl (118 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.9/118.9 KB 5.4 MB/s eta 0:00:00
Collecting geocoder
Downloading geocoder-1.38.1-py2.py3-none-any.whl (98 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.6/98.6 KB 13.5 MB/s eta 0:00:00
Collecting geographiclib<2,>=1.49
Downloading geographiclib-1.52-py3-none-any.whl (38 kB)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from geocoder) (1.16.0)
Requirement already satisfied: future in /usr/lib/python3/dist-packages (from geocoder) (0.18.2)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from geocoder) (2.25.1)
Collecting ratelim
Downloading ratelim-0.1.6-py2.py3-none-any.whl (4.0 kB)
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from geocoder) (8.0.3)
Requirement already satisfied: decorator in /usr/lib/python3/dist-packages (from ratelim->geocoder) (4.4.2)
Installing collected packages: geographiclib, ratelim, geopy, geocoder
WARNING: The script geocode is installed in '/home/kali/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed geocoder-1.38.1 geographiclib-1.52 geopy-2.2.0 ratelim-0.1.6

┌──(kali㉿kali)-[~/git/SpaceAPI]
└─$ python3 trackISS.py
Traceback (most recent call last):
File "/home/kali/git/SpaceAPI/trackISS.py", line 20, in
data = (requests.get("http://api.open-notify.org/astros.json")).json();print("Data Request: ",(data['message'])),print("Total humans in orbit: ",data['number'],"\nPrinting manifest:")
File "/usr/lib/python3/dist-packages/requests/models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3/dist-packages/simplejson/init.py", line 525, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

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

1 participant