Hi, I got the error
ModuleNotFoundError: No mdule named 'gem5' After I followed the steps to build and run a test for gem5. ####### downloaded gem5 and created gem5.opt based upon v21.1.02 version git clone --recursive -b v21.1.0.2 https://gem5.googlesource.com/public/gem5/ virtualenv -p python3 venv source venv/bin/activate ######### and build m5 cd gem5/util/m5/ scons build/x86/out/m5 cd ../../ scons build/X86/gem5.opt ########### and other disk image steps cd disk-image/npb git clone https://github.com/darchr/npb-hooks.git cd ../disk-image/ wget https://releases.hashicorp.com/packer/1.4.3/packer_1.4.3_linux_amd64.zip unzip packer_1.4.3_linux_amd64.zip ./packer validate npb/npb.json ./packer build npb/npb.json ######### and built the kernel cd ~/work/ext_ips git clone --branch v4.19.83 --depth 1 https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git mv linux linux-stable cd linux-stable cp -p ../config.4.19.83 .config make -j8 cp vmlinux vmlinux-4.19.83 ####### run simple test cd gem5 ./build/X86/gem5.opt configs/example/x86-npb-benchmarks.py --benchmark ep --size A gem5 Simulator System. http://gem5.org gem5 is copyrighted software; use the --copyright option for details. gem5 version 21.1.0.2 gem5 compiled Feb 18 2022 14:14:39 gem5 started Feb 18 2022 14:18:54 gem5 executing on sundial.chronostech.com, pid 29766 command line: ./build/X86/gem5.opt configs/example/x86-npb-benchmarks.py --benchmark ep --size A Traceback (most recent call last): File "<string>", line 1, in <module> File "build/X86/python/m5/main.py", line 455, in main exec(filecode, scope) File "configs/example/x86-npb-benchmarks.py", line 47, in <module> from gem5.utils.requires import requires ModuleNotFoundError: No module named 'gem5' I'm getting error message above. Did I miss a compilation step or didn't download a good version or something else ? Thanks, David
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s