-
Notifications
You must be signed in to change notification settings - Fork 91
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
Python argument types in DatasourceCache.register_datasources(str) did not match C++ signature #103
Comments
For me, on Ubuntu 15.10, I am getting the same error while running testcase python setup.py test as well as on doing import mapnik
|
+1 Im also getting this error |
Got this error too trying to install python-mapnik on ubuntu 16. Is there any way to get working mapnik on ubuntu16 ? |
Import mapnik works for me, but running the example world.py does not (with the error similar to the OP's one): This result I get with the latest python-mapnik <origin/master> code at both:
|
I went ahead, at CentOS-7. I built and installed boost-1.61, recent mapnik, python-mapnik. The result is the same. |
Same here (Ubuntu 16.04, libboost 1.58). Anyone know a solution/workaround? edit: I used the egg-file from https://pypi.python.org/pypi/mapnik#downloads and it works w/o any problems. |
+1 Same issue (Linux Mint 18, libboost 1.58, mapnik 3.x) |
Same here on Ubuntu 16.04 |
Same here on Ubuntu 16.04. Does anyone have a solution for this yet? |
Also looking at how we can fix this on Ubuntu 16.04. Rebuilding a machine that had a huge mapnik program and now I can't get it to run. |
@rem260 I didn't know how but pycharm automatically installed mapnik when it was not found in my system. |
Same problem today. |
+1 for problem |
tomse: It worked for me no worries. |
Somebody who has a hint to fix this bug. I am trying to use Python 3, so the pip wheel won't work for me? |
Same problem. |
1 similar comment
Same problem. |
I managed to make the python bindings working (at least |
I hit this while building with I fixed it by Make sure you are not mixing incompatible libraries during linking. If you are linking dynamically, check that by:
|
I have the same problem too. mapnik tests run without an error, but can not import python-mapnik cause of the error reported on top.
any news on this? |
I am getting an error too |
same issue here this bug is kinda important isn't it? any ideas? `======================================================================
|
@talaj can you explain a bit more how did you manage to compile this? I don't quite understand how your suggested solution works did you something like ? |
@jucajuca I did it as you wrote. There were two boost-python libraries on my system and setup.py has chosen the bad one. I noticed these boost-python versions have different name so I set correct name in Can multiple versions of libraries be also your case? |
It never worked by compiling it by myself. Hoewever, I discovered that some dependencies where pulled from a ppa:ubuntugis/ubuntugis-unstable. sudo apt-get clean hope this helps |
I am facing the same problem on linux python2.7(osgeolive), I wonder how to fix it. Boost.Python.ArgumentError: Python argument types in |
I have the same issue when I am going to import mapnik `` `` |
One interesting issue is with installation process. why I get this log
|
Same issue. I installed mapnik from source using python3 (branch master), and the python bindings (using the master branch too).
python3 setup.py install output has a final line: |
I executed bootstrap.sh, and now mapnik-config --version outputs 3.0.22, but I still get the same error. |
@soccerdroid Hi, |
@soccerdroid As I tried this issue somehow is related into this one |
hi @am2222 |
Well, I solved the issue by moving /usr/local/lib/python3.6/dist-packages/mapnik-3.1.0-py3.6-linux-x86_64.egg to a different location, not included in PYTHONPATH (same as if I had just deleted the folder). Potentially related to @nobohan 's comment. |
@soccerdroid Wow It is great I will try your method. But Does removing 'mapnik-3.1.0-py3.6-linux-x86_64.egg' from that directory ended up with compiling mapnik-python using its mason version of mapnik not the mapnik you have compiled installed on your machine from source? |
I never built mapnik with mason_packages=True. I don't know if that answers your question. Let us know how did it go for you! |
@soccerdroid Yes that was exactly my question, I'll check your solution and will let you know about the results. |
Hi,
I'm trying to build mapnik with python bindings on Ubuntu 16.04. I cloned the mapnik and python-mapnik repositories, installed all the required dependencies, and compiled both projects successfully.
But when I try to import mapnik from python, I get the following error:
Python 2.7.11+ (default, Apr 17 2016, 14:00:29)
[GCC 5.3.1 20160413] on linux2
Type "help", "copyright", "credits" or "license" for more information.
I tried again with a fresh Ubuntu 15.10 install, and I got the same error. Then I tried again on Centos 7 and it worked.
I noticed that the libboost versions were different, 1.58 for Ubuntu and 1.53 for Centos.
The text was updated successfully, but these errors were encountered: