You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to compile mapnik and python-mapnik with conda which I was able to do in tha past. But now I consistently get the following error after compilation:
importmapnik
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/cpa/.pyenv/versions/miniconda2-4.3.30/envs/onesat-mapnik/lib/python3.7/site-packages/mapnik/__init__.py", line 1071, in <module>
register_plugins()
File "/home/cpa/.pyenv/versions/miniconda2-4.3.30/envs/onesat-mapnik/lib/python3.7/site-packages/mapnik/__init__.py", line 1053, in register_plugins
DatasourceCache.register_datasources(path)
Boost.Python.ArgumentError: Python argument types in
DatasourceCache.register_datasources(str)
did not match C++ signature:
register_datasources(std::string)
I've looked at some issues that seemed similar and already set
try via git repository
donwload repository fe. git clone htttps://github.com/mapnik/mapnik.git
cd mapnik
git check v3.1.x (or skip if u want master)
git submodule update --init
./configure (check u have all dependencies)
make install
than python-mapnik
donwload repository if u want branch u have to specify it. git clone --branch v3.0.x --single-branch https://github.com/mapnik(python-mapnik.git
cd python-mapnik
python setup setup.py develop
then try
mapnik-config -v
and python:
import mapnik
I've been trying to compile mapnik and python-mapnik with conda which I was able to do in tha past. But now I consistently get the following error after compilation:
I've looked at some issues that seemed similar and already set
export BOOST_PYTHON_LIB=boost_python37
during compilation which I do with the following:
I'm sorry if this is a bit vague but is there anything else I could look at?
The text was updated successfully, but these errors were encountered: