Hi Tiago, thank you very much for the very quick reply!
Tiago Peixoto wrote > >> 4 - python first.py >> Here I get the following error: >> /Traceback (most recent call last): >> File "first.py", line 10, in <module> >> from graph_tool.all import * >> ImportError: No module named graph_tool.all/ > > Is the trailing slash "/" really in the error message? > No, I'm sorry, it's just a typo... no slash :D Tiago Peixoto wrote > > Try the following to see if graph-tool was properly installed: 1. Type > "python"; 2. inside the python prompt, type "import graph_tool". If not > error is given, then graph-tool was properly installed. > It says: /Python 2.7.2+ (default, Oct 4 2011, 20:03:08) [GCC 4.6.1] on linux2/ etc etc... and at import graph_tool it says /Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named graph_tool/ Tiago Peixoto wrote > >> 6: If I look for python on the computer, I see there is both python2.6 >> and python2.7 and python3 under usr/lib > > Try the same command as before, but with "python2.6" instead of "python". > It says: /Python 2.6.7 (r267:88850, Aug 11 2011, 12:16:10) [GCC 4.6.1] on linux2/ etc etc... and at import graph_tool it seems to work, meaning that no error appears, and the prompt is ready for another command! So I tried the following command: python2.6 first.py and it worked! It created the PDF graph, as expected! So, the error is that graph_tool is installed in a python version that is not the default one, is that right? Which version should graph_tool be installed on? 2.6 or 2.7? Thank you very much! Fabio -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Ubuntu-first-configuration-Price-Network-example-tp3736087p3738031.html Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com. _______________________________________________ graph-tool mailing list [email protected] http://lists.skewed.de/mailman/listinfo/graph-tool
