Frage

I have just installed the Google APIs for Python, and yet, I tried to run anything to check if it works, like:

from googlemaps import GoogleMaps

And it throws:

Traceback (most recent call last):
  File "C:/Users/mszydlowski/Desktop/test.py", line 1, in <module>
    from googlemaps import GoogleMaps
  File "C:\Python33\lib\site-packages\googlemaps.py", line 471
    print main.__doc__
         ^
SyntaxError: invalid syntax

Any ideas?

War es hilfreich?

Lösung

I think the problem is that googlemaps does not support py3k. http://py-googlemaps.sourceforge.net/#information

Andere Tipps

What version of Python are you using? print is a function for Python 3.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top