Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile python-mapnik with correct boost #241

Open
cpaulik opened this issue May 11, 2021 · 1 comment
Open

Unable to compile python-mapnik with correct boost #241

cpaulik opened this issue May 11, 2021 · 1 comment

Comments

@cpaulik
Copy link

cpaulik commented May 11, 2021

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:

import mapnik
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

export BOOST_PYTHON_LIB=boost_python37

during compilation which I do with the following:

python setup.py whichboost
pip install --prefix=$PREFIX .

I'm sorry if this is a bit vague but is there anything else I could look at?

@mar0321
Copy link

mar0321 commented Aug 4, 2021

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 did it on debian (jessie and strech)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants