-
Notifications
You must be signed in to change notification settings - Fork 138
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
Issue with graphcut support #103
Comments
You can take a look at the logs of the installation process with:
Just remember to uninstall
The error should be detailed in the lines just above. One thing to look out for is to use Python 3. Ubuntu 20.04LTS still uses Python 2.7 as default, but supports Python 3. You can e.g. install Alternatively, there might be a problem with the linking of the
Hope one of these solves your problems. |
Note to myself: Get the installation script to correctly identify the name of the shared libboost_python lib. |
You were correct that After creating the symbolic link as outlined above i managed to get the import working. It would be nice fix for the However, Instead, use Thanks for your help. |
Does I have installed the deps
And created a symbolic link as follows
Installing medpy in a conda py38 environment
I receive the following output after installation >>> import medpy.graphcut
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/conda/lib/python3.8/site-packages/medpy/graphcut/__init__.py", line 200, in <module>
from .maxflow import GraphDouble, GraphFloat, GraphInt # this always triggers an error in Eclipse, but is right
ImportError: /opt/conda/lib/python3.8/site-packages/medpy/graphcut/maxflow.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN5boost6python6detail11init_moduleER11PyModuleDefPFvvE Again, I appreciate your help. |
Ah, im suspecting that the CentOS install only included python2.so files for boost. |
For others looking for a CentOS 7 solution. Yum does not include the python3 libs by default. You will need to add the epel repo to access them.
This includes the correct file |
Thanks for all the work on CentOs! |
Improved graphcut installation help now in documentation: http://loli.github.io/medpy/installation/graphcutsupport.html |
I am running Ubuntu 20.04LTS.
I have installed the required packages for support
The following install succeeds in a fresh py39 environment established via conda
However, I am getting the following error
The same situation is true for a fresh py36 environment too.
The text was updated successfully, but these errors were encountered: