mapnik / python-mapnik

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

Unable to import mapnik with python 3.9 #271

Open nitincodeworld opened 11 months ago

nitincodeworld commented 11 months ago

Hello Community,

I have successfully build mapnik and mapnik-python binding, however i am getting below error while importing the python, any help is appreciated.

Python 3.9.16 .

import mapnik Traceback (most recent call last): File "", line 1, in File "/home/nitin/.conda/envs/py39/lib/python3.9/site-packages/mapnik-3.0.23-py3.9-linux-x86_64.egg/mapnik/init.py", line 74, in from ._mapnik import * ImportError: /home/nitin/.conda/envs/py39/lib/python3.9/site-packages/mapnik-3.0.23-py3.9-linux-x86_64.egg/mapnik/_mapnik.cpython-39-x86_64-linux-gnu.so: undefined symbol: PyClass_Type