It may be moot at this point, but there actually is some related documentation on the wiki: http://gem5.org/Using_a_non-default_Python_installation
Steve On Fri, Jan 9, 2015 at 11:18 AM, Ali Saidi via gem5-dev <gem5-dev@gem5.org> wrote: > It should probably be /usr/bin/env python > Ali > > > On 1/9/15, 1:12 PM, "mike upton via gem5-dev" <gem5-dev@gem5.org> wrote: > > >OK, thanks. > > > >I don't understand what is going on, but blindly following the suggestion > >made it work. > > > >I needed to do: > > > >python /usr/bin/scons <gem5 options> > > > > > >Oh, I see what is going on. > >/usr/bin/scons has > >#! /usr/bin/python > > > >that is the wrong version... > > > > > > > > > >On Fri, Jan 9, 2015 at 10:48 AM, Jason Power via gem5-dev > ><gem5-dev@gem5.org > >> wrote: > > > >> Hi Mike, > >> > >> The problem is that the python version your scons is using is different > >> from your default python version (specified by environment variables > >>e.g. > >> PATH). Try "python scons <gem5 options>". > >> > >> Cheers, > >> Jason > >> > >> On Fri Jan 09 2015 at 12:46:23 PM mike upton via gem5-dev < > >> gem5-dev@gem5.org> > >> wrote: > >> > >> > I have gem5 working fine on a redhat5 pool. > >> > I was asked by our computing folks to move to redhat6. > >> > > >> > The compile goes fine. But when I try to run I get: > >> > > >> > ./build/X86/gem5.opt ./configs/example/se.py -c > >> > ./tests/test-progs/hello/bin/x86/linux/hello > >> > Traceback (most recent call last): > >> > File "/home/mupton/gem5/src/python/importer.py", line 93, in > >><module> > >> > sys.meta_path.append(importer) > >> > TypeError: 'dict' object is not callable > >> > > >> > > >> > I poked around some, but I don't understand what is going on. > >> > > >> > gcc=4.7 > >> > python=2.7.3 > >> > _______________________________________________ > >> > gem5-dev mailing list > >> > gem5-dev@gem5.org > >> > http://m5sim.org/mailman/listinfo/gem5-dev > >> > > >> _______________________________________________ > >> gem5-dev mailing list > >> gem5-dev@gem5.org > >> http://m5sim.org/mailman/listinfo/gem5-dev > >> > >_______________________________________________ > >gem5-dev mailing list > >gem5-dev@gem5.org > >http://m5sim.org/mailman/listinfo/gem5-dev > > > > > -- IMPORTANT NOTICE: The contents of this email and any attachments are > confidential and may also be privileged. If you are not the intended > recipient, please notify the sender immediately and do not disclose the > contents to any other person, use it for any purpose, or store or copy the > information in any medium. Thank you. > > ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, > Registered in England & Wales, Company No: 2557590 > ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, > Registered in England & Wales, Company No: 2548782 > > _______________________________________________ > gem5-dev mailing list > gem5-dev@gem5.org > http://m5sim.org/mailman/listinfo/gem5-dev > _______________________________________________ gem5-dev mailing list gem5-dev@gem5.org http://m5sim.org/mailman/listinfo/gem5-dev