Any ideas on how to fix this without using apt-get? The email you sent
didn't really solve the problem.

Thanks in advance!

I have gcc 4.7.1
python 2.7.3
Scons 2.2.0
Swig 2.0.9

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'


On Tue, Feb 26, 2013 at 7:35 AM, mehmet basaran
<[email protected]>wrote:

> Hi all,
>
> I have found the problem. I was trying to install all dependencies from
> the source code. Unfortunately I had either one or more of the following
> cases;
>
> 1. my python was not compatible with libc
> 2. my gcc was incompatible with swig
> 3. or any combination of those 4...
>
> source: http://www.mail-archive.com/[email protected]/msg06380.html
>
> So, I have reinstalled using sudo apt-get install ... with the help of
> another gem5 struggler and it worked.
>
> Thanks for the... oh wait a minute...
>
> take care
>
>
> 2013/2/25 mehmet basaran <[email protected]>
>
>> 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
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to