This worked for me:

$./configure --enable-openmp --with-boost-python=py34
                                                  ⏎

fit_view works to now, thanks!


On Sun, Jun 21, 2015 at 4:44 PM, Tiago de Paula Peixoto <[email protected]>
wrote:

> On 21.06.2015 22:22, Ryan Compton wrote:
> > Any advice on building from the git repo for python 3? Here's what I get
> (ubuntu 14.04):
> >
> > $ export PYTHON=/usr/bin/python3
> > $ export PYTHON_VERSION=3.4
> > $ make clean
> > $ ./configure --enable-openmp
> > $ make
> > $ sudo make install
> > $ ipython
> >
> > Python 3.4.0 (default, Apr 11 2014, 13:05:11)
> > Type "copyright", "credits" or "license" for more information.
> >
> > IPython 3.1.0 -- An enhanced Interactive Python.
> > ?         -> Introduction and overview of IPython's features.
> > %quickref -> Quick reference.
> > help      -> Python's own help system.
> > object?   -> Details about 'object', use 'object??' for extra details.
> >
> > In [1]: import graph_tool
> >
> ---------------------------------------------------------------------------
> > ImportError                               Traceback (most recent call
> last)
> > <ipython-input-1-233a11917947> in <module>()
> > ----> 1 import graph_tool
> >
> > /usr/lib/python3/dist-packages/graph_tool/__init__.py in <module>()
> >     100
> >     101 from .dl_import import *
> > --> 102 dl_import("from . import libgraph_tool_core as libcore")
> >     103 __version__ = libcore.mod_info().version
> >     104
> >
> > /usr/lib/python3/dist-packages/graph_tool/dl_import.py in
> dl_import(import_expr)
> >      55
> >      56     try:
> > ---> 57         exec(import_expr, local_dict, global_dict)
> >      58     finally:
> >      59         sys.setdlopenflags(orig_dlopen_flags)  # reset it to
> normal case to
> >
> > /usr/lib/python3/dist-packages/graph_tool/__init__.py in <module>()
> >
> > ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.54.0:
> undefined symbol: PyClass_Type
>
> As you can see from the shared library name, the boost::python that is
> being used was compiled with python 2.7, while graph-tool was compiled
> with 3.4. Do you have a python 3 version of boost::python installed? If
> yes, try passing the correct suffix value to --with-boost-python.
>
> Best,
> Tiago
>
> --
> Tiago de Paula Peixoto <[email protected]>
>
>
> _______________________________________________
> graph-tool mailing list
> [email protected]
> http://lists.skewed.de/mailman/listinfo/graph-tool
>
>
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to