chipsalliance / riscv-dv

Random instruction generator for RISC-V processor verification
Apache License 2.0
1.02k stars 328 forks source link

Unable to run `run --help` straight out of the box #905

Open erictaur opened 2 years ago

erictaur commented 2 years ago

Hi,

I've encountered the following error after cloning and pip3 installing risc-dv:

(base) -bash-4.1$ run --help
Traceback (most recent call last):
  File "/n/gaylord/v/khtaur/.local/bin/run", line 33, in <module>
    sys.exit(load_entry_point('riscv-dv', 'console_scripts', 'run')())
  File "/n/gaylord/v/khtaur/.local/bin/run", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/afs/eecs.umich.edu/cadre/software/anaconda3-2018.12/lib/python3.7/site-packages/importlib_metadata/__init__.py", line 178, in load
    module = import_module(match.group('module'))
  File "/afs/eecs.umich.edu/cadre/software/anaconda3-2018.12/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/afs/eecs.umich.edu/vlsida/projects/restricted/google/khtaur/riscv-dv/run.py", line 28, in <module>
    from scripts.lib import *
ModuleNotFoundError: No module named 'scripts.lib'

My pip3 installation of riscv-dv seemed fine, as shown in the following installation log:

(base) -bash-4.1$ pip3 install --user -e .
/afs/eecs.umich.edu/cadre/software/anaconda3-2018.12/lib/python3.7/site-packages/secretstorage/dhcrypto.py:16: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
/afs/eecs.umich.edu/cadre/software/anaconda3-2018.12/lib/python3.7/site-packages/secretstorage/util.py:25: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
Obtaining file:///afs/eecs.umich.edu/vlsida/projects/restricted/google/khtaur/riscv-dv
Requirement already satisfied: PyYAML in /afs/eecs.umich.edu/cadre/software/anaconda3-2018.12/lib/python3.7/site-packages (from riscv-dv==1.0) (5.4.1)
Requirement already satisfied: bitstring in /afs/eecs.umich.edu/cadre/software/anaconda3-2018.12/lib/python3.7/site-packages (from riscv-dv==1.0) (3.1.7)
Installing collected packages: riscv-dv
  Attempting uninstall: riscv-dv
    Found existing installation: riscv-dv 1.0
    Uninstalling riscv-dv-1.0:
      Successfully uninstalled riscv-dv-1.0
  Running setup.py develop for riscv-dv
Successfully installed riscv-dv

Is it a Python setup that might result in this error?

Thanks!