there is something wrong with your indentations. at line 47, you have pressed enter (and there is no 'space'). However at line 52, you have 'space'. Try removing the spaces. Python interpreter is sensitive to <tab> and <space> indentations.
On 1/3/12, Hamid Reza Khaleghzadeh <[email protected]> wrote: > # Checking Assertion > assert(options.num_rows <= options.num_cpus) > assert(options.num_cpus == options.num_rows*num_routers) > > # Create the mesh object > *clovertown = Clovertown()* > # Create a router for each package. > clovertown.routers = [Router(router_id=i) for i in range(num_packs))] > > # link counter to set unique link ids > link_count = 0 > > On Tue, Jan 3, 2012 at 4:58 PM, Mahmood Naderan <[email protected]>wrote: > >> please paste line 49 (with some line before and after) exactly from your >> file >> >> On 1/3/12, Hamid Reza Khaleghzadeh <[email protected]> wrote: >> > I do it, but there is still the problem. >> > >> > On Tue, Jan 3, 2012 at 4:48 PM, Mahmood Naderan <[email protected] >> >wrote: >> > >> >> After this line >> >> clover = Clovertown() >> >> >> >> ensure there is no <space> >> >> >> >> On 1/3/12, Hamid Reza Khaleghzadeh <[email protected]> wrote: >> >> > I have added my topology to Sconscript but when I want to recompile >> >> Gem5, I >> >> > have encountered with following Error: >> >> > >> >> > scons: *** >> [/home/hamidreza/build/ALPHA_FS/mem/ruby/network/topologies/ >> >> > Clovertown.py.cc] IndentationError : unindent does not match any >> outer >> >> > indentation level (Clovertown.py, line 49) >> >> > Traceback (most recent call last): >> >> > File "/usr/lib/scons/SCons/Action.py", line 1046, in execute >> >> > result = self.execfunction(target=target, source=rsources, >> env=env) >> >> > File "/home/hamidreza/build/ALPHA_FS/SConscript", line 782, in >> >> embedPyFile >> >> > compiled = compile(src, pysource.abspath, 'exec') >> >> > File >> >> > "/home/hamidreza/gem5/src/mem/ruby/network/topologies/Clovertown.py", >> >> line >> >> > 49 >> >> > clover = Clovertown() >> >> > ^ >> >> > IndentationError: unindent does not match any outer indentation level >> >> > scons: building terminated because of errors. >> >> > >> >> > Could you help me? >> >> > >> >> > On Tue, Jan 3, 2012 at 3:28 PM, Nilay Vaish <[email protected]> >> wrote: >> >> > >> >> >> On Tue, 3 Jan 2012, Hamid Reza Khaleghzadeh wrote: >> >> >> >> >> >> Hello Gem5, >> >> >>> >> >> >>> I have implemented a network topology and then copy its python file >> >> into >> >> >>> "~/gem5/src/mem/ruby/network/**topologies/MyTopology.py". When gem5 >> is >> >> >>> executed, I encounter with this error: >> >> >>> >> >> >>> ImportError: No module named MyTopology >> >> >>> >> >> >>> Could you help me? >> >> >>> >> >> >>> Thanks >> >> >>> >> >> >>> >> >> >> Two things that you may not have done -- >> >> >> * add your topology to src/mem/ruby/network/**topologies/SConscript >> >> >> * recompile gem5 >> >> >> >> >> >> -- >> >> >> Nilay >> >> >> ______________________________**_________________ >> >> >> gem5-users mailing list >> >> >> [email protected] >> >> >> http://m5sim.org/cgi-bin/**mailman/listinfo/gem5-users< >> >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users> >> >> >> >> >> > >> >> > >> >> > >> >> > -- >> >> > Hamid Reza Khaleghzadeh >> >> > >> >> >> >> >> >> -- >> >> -- >> >> // Naderan *Mahmood; >> >> _______________________________________________ >> >> gem5-users mailing list >> >> [email protected] >> >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> >> >> > >> > >> > >> > -- >> > Hamid Reza Khaleghzadeh >> > >> >> >> -- >> -- >> // Naderan *Mahmood; >> _______________________________________________ >> gem5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > > > -- > Hamid Reza Khaleghzadeh > -- -- // Naderan *Mahmood; _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
