Hi!

I am also trying to get things working at moment under Lion without success so 
far. At the moment I suspect that threading is an issue. How can I explicitly 
prevent graph-tool from being built against threaded libs? Is boost maybe 
responsible for that?

Cheers,

Sebastian

Am 30.12.2011 um 17:17 schrieb Tiago de Paula Peixoto:

> On 12/30/2011 11:02 AM, Martella, C. wrote:
>> Hi Tiago,
>> 
>> thanks for the quick fix. I've been able to configure and build it
>> successfully. the import now works but I get the same interpreter
>> mismatch error as before. I'm using homebrew for building both python,
>> cgal, graphviz, boost, numpy and scipy and they are all built with
>> apple gcc 4.2 and linked to the homebrewed python in /usr/local/.
>> 
>> Here's the error by the interpreter:
>> Fatal Python error: Interpreter not initialized (version mismatch?)
>> Abort trap: 6
>> 
>> I've checked for the configure output of graph_tool, and there's
>> something which it might be creating problems:
>> 
> 
> [...]
> 
>> For what I can see the python libs are correctly found in /usr/local/ except 
>> for these lines:
>> 
>> checking for python2.7/Python.h... yes
>>  results of the Python check:
>>    Binary:      python2.7
>>    Library:     python2.7
>>    Include Dir: 
>> /Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
>> 
>> 
>> where apparently the original Xcode python is found. why's that? do
>> you have any suggestions on configure options for it to stick it to
>> the correct versions? i've tried some options based on python-config
>> but unsuccessfully.
>> By looking at the way graph_tool is built, i don't really get what's
>> going on, because both -I and -L options are /usr/local/ paths.  I
>> attach here the config.log, hoping it can help.
> 
> By looking at your config.h, it seems that the paths are in order:
> 
> #define PYTHON_DIR 
> "/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages"
> #define CXXFLAGS " -Wall -ftemplate-depth-150 -Wno-deprecated 
> -Wno-unknown-pragmas -O99 -fvisibility=default -fvisibility-inlines-hidden 
> -Wno-unknown-pragmas"
> #define CPPFLAGS " 
> -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/include/python2.7
>  -I/usr/local/include 
> -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include/numpy
>  
> -I/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy"
> #define LDFLAGS " 
> -L/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7
>  -lpython2.7"
> 
> You should check if the compiled binary is indeed linked with the
> correct python library. You should do the same check with your
> boost-python library.
> 
> Cheers,
> Tiago
> 
> --
> Tiago de Paula Peixoto <[email protected]>
> 
> _______________________________________________
> graph-tool mailing list
> [email protected]
> http://lists.skewed.de/mailman/listinfo/graph-tool

-- 
Sebastian Weber
Group of Cell Communication and Control
Freiburg Institute for Advanced Studies - FRIAS
School of Life Sciences - LIFENET
Albert-Ludwigs-Universität Freiburg
Albertstr. 19
79104 Freiburg
T.: +49-761-203-97237
Fax:+49-761-203-97334

_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to