mapnik / python-mapnik

Python bindings for mapnik
GNU Lesser General Public License v2.1
157 stars 90 forks source link

IsADirectoryError when trying to install on Ubuntu (Python 3.10) #259

Open Avatrin opened 1 year ago

Avatrin commented 1 year ago

I am currently getting this error:

scripts/setup_mason.sh: line 11: curl: command not found

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Traceback (most recent call last):
   File "/home/avatrin/Downloads/python-mapnik-master/setup.py", line 163, 
in <module>
     shutil.copyfile(f, os.path.join(
   File "/home/avatrin/mambaforge/lib/python3.10/shutil.py", line 254, in 
copyfile
     with open(src, 'rb') as fsrc:
IsADirectoryError: [Errno 21] Is a directory: '/usr/share/fonts/X11'

What I have done so far is:

I installed Mapnik using CMake

Installation kept failing when I followed the instructions here. However, I made a bit of progress by changing the value of mapnik_config in setup.py to the one I found through which mapnik-config. Now I am getting the error above, and I am lost. I do use Python 3.10.