Hi all,

My computer messed up and I had to re-install gem5. I have been performing
the same steps. I could build the system but for some reason I cannot run
the simplest example. I am using ubuntu. Here is my command line;

build/X86/gem5.opt configs/example/se.py
--cmd="tests/test-progs/hello/bin/x86/linux/hello"

And the output I get;

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/matara/gem5/src/python/importer.py", line 73, in load_module
    exec code in mod.__dict__
  File "/home/matara/gem5/src/python/m5/__init__.py", line 35, in <module>
    import internal
  File "/home/matara/gem5/src/python/importer.py", line 73, in load_module
    exec code in mod.__dict__
  File "/home/matara/gem5/src/python/m5/internal/__init__.py", line 31, in
<module>
    import event
  File "/home/matara/gem5/src/python/importer.py", line 73, in load_module
    exec code in mod.__dict__
  File "/home/matara/gem5/build/X86/python/swig/event.py", line 107, in
<module>
    class Event(m5.internal.serialize.Serializable):
AttributeError: 'module' object has no attribute 'internal'

I added new environment variables in .bashrc file as follows;

export JAVA_HOME="/home/matara/Tools/jdk1.7.0"
export PYTHONPATH="/home/matara/Tools/Python-2.7.3"
export SWIG="/home/matara/Tools/swig-2.0.9"
export BZ2="/home/matara/Tools/bzip2-1.0.6"
export MYSCONS="/home/matara/Tools/scons-src-2.2.0"
export LD_LIBRARY_PATH=$BZ2:$PYTHONPATH
export LIBRARY_PATH=$BZ2:$PYTHONPATH
export
PATH="$PATH:$PYTHONPATH:$PYTHONPATH/scripts:SWIG:$BZ2:$JAVA_HOME/jre/bin"

------------------------------------------------------------------------------------------------------------------------------------------------

My first reaction was to install modules that come as missing in normal
python. But that didn't work.
I tried to run scons-local, in case it is using a built-in python. Didn't
work either.
I have tried re-installing stable and dev versions but still no progress.
Other than that I have tried reinstalling countless times on both 32bit and
64bit machines, but got the same result.

And so passed 1 week. Don't know what is the problem but I successfully
installed gem5 once without this much effort. I have also seen a ticket on
gem5-dev maillist about python2.7 compatibility. But have no idea if this
is it.

Any help, pointers, questions are welcome as usual. Thanks in advance.
Mehmet
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to