On 02/23/2010 03:31 PM, Claudio Martella wrote:
I managed to compile graph-tool 2.2.5 and to solve linking problems with libcgal (thanks to tcb).
Could you please share what kind of problem you had with linking to cgal, and how you resolved it, so that I can incorporate the fix?
When I try to import the graph_tool module i got this error:
In [1]: import graph_tool.all as gt ------------------------------------------------------------ File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/graph_tool/topology/__init__.py", line 138 SyntaxError: Non-ASCII character '\xe2' in file /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/graph_tool/topology/__init__.py on line 139, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (__init__.py, line 138)
do you have any idea?
This is very strange... The error seems to say that there is some UTF-8 character in the file shown. However I see nothing of the sort, when I inspect the file myself (and I don't get this error). Can you look at the line 138 in the file to see if you find anything wrong? This line is part of a docstring, so you can try removing it to see what happens. What python version are you using? Cheers, Tiago -- Tiago de Paula Peixoto <tiago@forked.de>