When I made that change, I get a new error:

gem5 compiled Apr 10 2012 12:46:06
gem5 started Apr 11 2012 07:32:10
gem5 executing on cluster.csl.cornell.edu
command line: build/ARM_SE/gem5.opt configs/example/cmp.py
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File
"/ufs/cluster/amber/Gem5_Stuff/gem5-stable-b9ba22cb23f2/src/python/m5/main.py",
line 356, in main
    exec filecode in scope
  File "configs/example/cmp.py", line 9, in <module>
    import Simulation
ImportError: No module named Simulation

Any ideas?

Thanks,
Amber


On Wed, Apr 11, 2012 at 1:18 AM, Mahmood Naderan <[email protected]>wrote:

> Try this:
>
> from m5.util import *
> addToPath('./configs')
>
> On 4/10/12, Amber Sami Kubesch <[email protected]> wrote:
> > When I run
> >
> > % build/ARM_SE/m5.opt configs/example/cmp.py
> >
> > I get the messages that:
> >
> > gem5 compiled Apr 10 2012 12:46:06
> >
> > gem5 started Apr 10 2012 14:18:46
> >
> > gem5 executing on cluster.csl.cornell.edu
> >
> > command line: build/ARM_SE/m5.opt configs/example/cmp.py
> >
> > Traceback (most recent call last):
> >
> >     File "<string>", line 1, in <module>
> >
> >     File
> >
> "/ufs/cluster/amber/Gem5_Stuff/gem5-stable-b9ba22cb23f2/src/python/m5/main.py",
> > line 356, in main
> >
> >         exec filecode in scope
> >
> >     File "configs/example/cmp.py", line 8, in <module>
> >
> >         m5.addToPath('./configs')
> >
> > AttributeError: 'module' object has no attribute 'addToPath'
> >
> > From the original cmp.py script, I made the modifications discussed in
> > http://comments.gmane.org/gmane.comp.emulators.m5.users/8066, changing
> the
> > line
> >
> > m5.AddToPath('./configs')
> >
> > to
> >
> > from m5.util import addToPath
> >
> > m5.addToPath('./configs')
> >
> >
> > Any ideas on how to fix the error?
> >
> >
> > Thanks,
> >
> > Amber
> >
>
>
> --
> --
> // Naderan *Mahmood;
> _______________________________________________
> 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