Hi Jason, Even though I remove the ' . ' before Benchmarks at line 48 in "configs/common/Options.py", I still get error. This time it is an Import Error. """ Traceback (most recent call last): File "<string>", line 1, in <module> File "build/NULL/python/m5/main.py", line 438, in main exec(filecode, scope) File "configs/example/garnet_synth_traffic.py", line 40, in <module> from common import Options File "/home/muts/Downloads/gem5/configs/common/Options.py", line 48, in <module> from Benchmarks import * ImportError: No module named Benchmarks """
It's weird, as file Benchmarks.py is present in common only. Can you check from your side? or am I missing something? On Thu, Mar 21, 2019 at 10:05 PM Jason Lowe-Power <ja...@lowepower.com> wrote: > I think the solution is to remove the "." before Benchmarks in line 48. > However, it seems surprising that this hasn't been caught before. Are you > using Python 2.7? > > Jason > > On Tue, Mar 19, 2019 at 10:33 AM Rishabh Jain <rishucod...@gmail.com> > wrote: > >> I forgot to add the network flag: >> $ ./build/NULL/gem5.debug configs/example/garnet_synth_traffic.py >> --network=garnet2.0 --topology=Mesh_XY --num-cpus=16 --num-dirs=16 >> --mesh-rows=4 >> But still the same *ValueError* persists. >> >> >> On Tue, Mar 19, 2019 at 10:50 PM Rishabh Jain <rishucod...@gmail.com> >> wrote: >> >>> Hello everyone, >>> >>> I have build the garnet standalone model using: >>> $scons build/NULL/gem5.debug PROTOCOL=Garnet_standalone -j9 >>> >>> While running command: >>> $ ./build/NULL/gem5.debug configs/example/garnet_synth_traffic.py >>> --topology=Mesh_XY --num-cpus=16 --num-dirs=16 --mesh-rows=4 >>> >>> I get a ValueError: " ValueError: Attempted relative import in >>> non-package" >>> >>> The console log is : >>> ****** >>> gem5 Simulator System. http://gem5.org >>> gem5 is copyrighted software; use the --copyright option for details. >>> >>> gem5 compiled Mar 19 2019 22:22:28 >>> gem5 started Mar 19 2019 22:40:18 >>> gem5 executing on redbull, pid 29669 >>> command line: ./build/NULL/gem5.debug >>> configs/example/garnet_synth_traffic.py --topology=Mesh_XY --num-cpus=16 >>> --num-dirs=16 --mesh-rows=4 >>> >>> Traceback (most recent call last): >>> File "<string>", line 1, in <module> >>> File "build/NULL/python/m5/main.py", line 438, in main >>> exec(filecode, scope) >>> File "configs/example/garnet_synth_traffic.py", line 92, in <module> >>> os.path.join(config_root, "common", "Options.py"), 'exec')) >>> File "/home/rishu/rishu/gem5/configs/common/Options.py", line 48, in >>> <module> >>> from .Benchmarks import * >>> ValueError: Attempted relative import in non-package >>> ***** >>> >>> But, when I use the mercurial repository of gem5 (I know its outdated), >>> the above command works just fine. >>> Can somebody help me in debugging the error? >>> >>> Best, >>> Rishabh Jain >>> >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users