Opened 8 years ago
Closed 8 years ago
#52189 closed defect (fixed)
py-graph-tool does not work after installation
Reported by: | thomas.faure@… | Owned by: | count0 (Tiago de Paula Peixoto) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | mamoll (Mark Moll) | |
Port: | py-graph-tool |
Description (last modified by mf2k (Frank Schima))
after installing graph_tool on my Mac OSX 10.11.6 via macport (sudo port install py-graph-tool),
I got an error when I tried to execute from graph_tool.all import *
Traceback (most recent call last): File "graph.py", line 1, in <module> from graph_tool.all import * File "/usr/local/lib/python2.7/site-packages/graph_tool/__init__.py", line 106, in <module> File "/usr/local/lib/python2.7/site-packages/graph_tool/dl_import.py", line 57, in dl_import File "<string>", line 1, in <module> ImportError: cannot import name libgraph_tool_core
Python 2.7.10
Change History (11)
comment:1 Changed 8 years ago by mf2k (Frank Schima)
Priority: | High → Normal |
---|
comment:2 Changed 8 years ago by mf2k (Frank Schima)
Cc: | mmoll@… added |
---|---|
Owner: | changed from macports-tickets@… to tiago@… |
In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers py-graph-tool
), if any.
comment:3 Changed 8 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|
comment:4 Changed 8 years ago by mamoll (Mark Moll)
What is the output of port contents py35-graph-tool |grep libgraph_tool_core
? I have py35-graph-tool installed and the command you mention works for me.
Normally, MacPorts installs in the /opt/local/ prefix. Did you change this to /usr/local/? If not, then you have some other incompatible version of py-graph-tool installed in /usr/local. Either uninstall that version or change your PYTHONPATH.
comment:5 Changed 8 years ago by thomas.faure@…
port contents py35-graph-tool gives Port py35-graph-tool is not installed.
comment:6 Changed 8 years ago by mamoll (Mark Moll)
Sorry, I meant: port contents py27-graph-tool |grep libgraph_tool_core
comment:7 Changed 8 years ago by thomas.faure@…
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.0.so
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so
comment:8 Changed 8 years ago by mamoll (Mark Moll)
Yes, so the real problem is that you have another version of graph-tool installed in /usr/local.
comment:10 Changed 8 years ago by mamoll (Mark Moll)
Either uninstall that version or change your PYTHONPATH.
comment:11 Changed 8 years ago by mamoll (Mark Moll)
Resolution: | → fixed |
---|---|
Status: | new → closed |
The Priority field is for use by Macports team members only.