SpaceAPI icon indicating copy to clipboard operation
SpaceAPI copied to clipboard

Line 8 invalid syntax from my linux mint pc

Open jones263 opened this issue 6 years ago • 2 comments

tried to run the trackISS.py with the python command and got this error

File "trackISS.py", line 8 print(("Target acquired, tracking active: the location of the ISS is {}, {}.".format(lat,long))),print("Landmarks the station is visible from: ", g.country) ^ SyntaxError: invalid syntax

I'm new too linux and python. it might be me

I changed all "print" to "printf" and got error:

Traceback (most recent call last): File "ytrackISS.py", line 1, in from geopy.distance import geodesic ImportError: No module named geopy.distance

jones263 avatar Sep 18 '19 03:09 jones263

I am new to this as well but it appears to just be the print function location. I was able to move the second print function in line 8 down a line with an indent. On line 21 you have to add ; on the second print.

Longicauda avatar Oct 03 '19 23:10 Longicauda

LOL) python does not need ';' at all. Works fine on kali 2019.2 with python3. Everything I had to do is pip3 install geopy geocoder

despy49 avatar Oct 17 '19 13:10 despy49