Hi, Python 3 has a package called M5 ( i think it is related with 
html). If that is installed in your python environment might be included before 
the gem5 m5 package. You can open a python3 console and   import m5   Print ( 
m5.__dict__)That might give you a hint of what module is being imported. Try 
uninstalling M5 from your python environmentJordi vaquero---- On Thu, 11 Feb 
2021 19:50:26 +0100  Alain D D Williams via gem5-users<[email protected]> 
wrote ----Hi,  I am new to gem5 and am following:  
http://www.gem5.org/documentation/learning_gem5/part1/simple_config/  When I 
run:  $ build/X86/gem5.opt configs/learning_gem5/part1/caches.py  I am told:  
Traceback (most recent call last):   File "<string>", line 1, in <module> 
AttributeError: module 'm5' has no attribute 'main'  How do I fix this, please. 
  I built gem5 thus:     scons build/X86/gem5.opt -j 1   I needed to fix the 
following as they used python2 syntax for print  
/usr/local/lib/python3.7/dist-packages/m5/server.py 
/usr/local/lib/python3.7/dist-packages/m5/compiler.py  I am running on a Debian 
10 machine (x86_64)  Using Python 3.7.3  --  Alain Williams Linux/GNU 
Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 
(0) 787 668 0256  https://www.phcomp.co.uk/ Parliament Hill Computers Ltd. 
Registration Information: https://www.phcomp.co.uk/Contact.html #include 
<std_disclaimer.h> _______________________________________________ gem5-users 
mailing list -- [email protected] To unsubscribe send an email to 
[email protected] %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s 
        
        

    
    

_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to