Received from John Reid on Fri, Mar 28, 2014 at 11:04:54AM EDT:
> On 28/03/14 14:56, Lev Givon wrote:
>
> > I've installed the 2.2.31-1 graph-tool package for Ubuntu 13.10 x86_64 on my
> > system. Although I can import it from within a regular Python 2.7.5 session
> > without any problems, I can't seem to import it successfully from within a
> > virtualenv in which I've
> > installed a range of other packages (the virtualenv is configured to also
> > access
> > globally installed Python packages):
> >
> >>>> import graph_tool
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > File "/usr/lib/python2.7/dist-packages/graph_tool/__init__.py", line 100,
> > in <module>
> > dl_import("from . import libgraph_tool_core as libcore")
> > File "/usr/lib/python2.7/dist-packages/graph_tool/dl_import.py", line 57,
> > in
> > dl_import exec(import_expr, local_dict, global_dict)
> > File "<string>", line 1, in <module>
> > ImportError:
> > /usr/lib/python2.7/dist-packages/graph_tool/libgraph_tool_core.so: invalid
> > mode for dlopen(): Invalid argument
> >
> > Before I manually go through all of the packages installed in the
> > virtualenv,
> > does anyone have any ideas as to what sort of things might be causing
> > the above import problem?
>
> I've had some problems with this in the past with other boost.python
> modules (see:
> http://stackoverflow.com/questions/19663366/dlopen-fails-in-boost-python-module).
> Here are some context managers I use to import modules that are causing
> me problems:
Thanks, John - this fixed the problem.
--
Lev Givon
Bionet Group
http://www.columbia.edu/~lev/
http://lebedov.github.io/
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool