tcassou / mapsplotlib

Custom Python plots on a Google Maps background. A flexible matplotlib like interface to generate many types of plots on top of Google Maps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to import mapsplotlib

adamchui opened this issue · comments

While I was importing the library

from mapsplotlib import mapsplot as mplt

It prompts me the error

File "C:\ProgramData\Anaconda3\lib\site-packages\mapsplotlib\mapsplot.py", line 213
print '[WARN] Cannot draw polygon for cluster {} - only {} samples.'.format(c, in_polygon.sum())

SyntaxError: invalid syntax

Please advise what to do

Hi @adamchui, thanks for reporting!
What version of python are you using? Looks like a python3 compatibility issue (since printbecomes a function), so I should be able to provide a fix!
Let me know, thanks!

Yes, I am using python 3.6, thanks!

Same problem here, using python 3.6, any quickfix here?

Yup, working on it today, I'll keep you posted!

Hi @adamchui & @mohsinkerai,

I provided a fix, and could use the package successfully with python3.6, it should work now!
I uploaded a new version (1.1.0) to pypi, let me know if you can use the package once you've upgraded it.

Thomas