> I tried reading > http://m5sim.org/wiki/index.php/Using_a_non-default_Python_installation > but since this page has last been updated on 29 August 2006, at 18:26, i > was wondering whether anyone has tried running M5 with $HOME-installed > Python recently. Preferably on Scientific Linux SL release 4.5 :-)
I do this all the time. The easiest thing to do is build and install python in your home directory and just make sure that the directory with the python binary is in your path ahead of the system directories. Something like "export PATH=$HOME/local/bin:$PATH" Honestly, the error below looks like a python problem, not an m5 problem. What happens if you fire up python and just do "import inspect". Do you get the same error? I'm also not sure if anyone has used 2.7 with M5 yet, but I'd not expect that to be a problem. Nate > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/home/bartek/m5/src/python/importer.py", line 73, in load_module > exec code in mod.__dict__ > File "/home/bartek/m5/src/python/m5/__init__.py", line 39, in <module> > import SimObject > File "/home/bartek/m5/src/python/importer.py", line 73, in load_module > exec code in mod.__dict__ > File "/home/bartek/m5/src/python/m5/SimObject.py", line 40, in > <module> > from m5.util import * > File "/home/bartek/m5/src/python/importer.py", line 73, in load_module > exec code in mod.__dict__ > File "/home/bartek/m5/src/python/m5/util/__init__.py", line 38, in > <module> > from code_formatter import code_formatter > File "/home/bartek/m5/src/python/importer.py", line 73, in load_module > exec code in mod.__dict__ > File "/home/bartek/m5/src/python/m5/util/code_formatter.py", line 28, > in <module> > import inspect > File "/home/bartek/lib/python2.7/inspect.py", line 41, in <module> > from operator import attrgetter > ImportError: /home/bartek/lib/python2.7/lib-dynload/operator.so: > undefined symbol: _Py_TrueStruct > _______________________________________________ m5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
