python-mapnik icon indicating copy to clipboard operation
python-mapnik copied to clipboard

IsADirectoryError when trying to install on Ubuntu (Python 3.10)

Open Avatrin opened this issue 3 years ago • 0 comments

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.

Avatrin avatar Sep 09 '22 20:09 Avatrin