-
Notifications
You must be signed in to change notification settings - Fork 33
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
ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0: undefined symbol: PyClass_Type #45
Comments
Hi, thank you for the report. Looks like the compiled module has bad linkage. Have you installed it from PyPi (using pip) or compiled from source? Could you post pip's output / your compilation procedure? Do you use some special PPA repositories for python - according to this Python 3.5 is default in Xenial. |
I've got apparently the same issue on MacOS:
I'm pasting the installation log below. Note that Boost Python was installed right before pgmagick was built: the linkage should be consistent that way. What I suspect is that Boost Python was built against Python 2.7? The Ubunto error above also looks like a Python version mismatch
|
@ThimoNeubauer Thank you for reporting. Linking with Boost Python for python3 is always a tricky one. I currently have no access to MacOS machine, so I cannot reproduce, moreover the build pipeline for Homebrew is different from the Linux one. @hhatto Could you look into this and maybe create a separate issue for Homebrew? Maybe is fixed for current version (I can see from the logs 0.6.5 is built). |
I have a similar issue,
It must be something to do with the python3 and boost-python .. |
In my case, the linux is AWS ami which is redhat. The |
I solved it ... Nightmare to install it on aws ami. |
I have the similar issue on Mac OS Mojave with Python 3 using |
how did you resolve the issue :) |
I have the same issue after success install boost, harfbuzz and mapnik libraries from source with |
When I import the PGMagick module I get this error:(from pgmagick import gminfo)(python3.6, ubuntu 16.04)thank you very much for your help.
The text was updated successfully, but these errors were encountered: