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

Line 8 invalid syntax from my linux mint pc #1

Open
jones263 opened this issue Sep 18, 2019 · 2 comments
Open

Line 8 invalid syntax from my linux mint pc #1

jones263 opened this issue Sep 18, 2019 · 2 comments

Comments

@jones263
Copy link

jones263 commented Sep 18, 2019

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

@Longicauda
Copy link

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.

@despy49
Copy link

despy49 commented Oct 17, 2019

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

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

3 participants