Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named 'vunit.parsing' #76

Closed
vermaete opened this issue Sep 22, 2015 · 4 comments
Closed

ImportError: No module named 'vunit.parsing' #76

vermaete opened this issue Sep 22, 2015 · 4 comments

Comments

@vermaete
Copy link
Contributor

after a 'git pull' (commit c7bcae2) I got the following error when running the 'run.py' script.

python run.py --compile
Traceback (most recent call last):
  File "run.py", line 3, in <module>
    from vunit import VUnit
  File "C:\Python34\lib\site-packages\vunit\__init__.py", line 11, in <module>
    from vunit.ui import VUnit
  File "C:\Python34\lib\site-packages\vunit\ui.py", line 28, in <module>
    from vunit.project import Project, file_type_of
  File "C:\Python34\lib\site-packages\vunit\project.py", line 22, in <module>
    from vunit.parsing.verilog.parser import VerilogParser
ImportError: No module named 'vunit.parsing'

It did not update for a few days/weeks. So I don't know when this happened.

Grepping in the Python installation path for VerilogParser is giving me:

Binary file __pycache__/project.cpython-34.pyc matches
project.py:from vunit.parsing.verilog.parser import VerilogParser
project.py:                 verilog_parser=VerilogParser()):
test/unit/test_verilog_parser.py:class TestVerilogParser(TestCase):  # pylint: disable=too-many-public-methods
Binary file test/unit/__pycache__/test_verilog_parser.cpython-34.pyc matches

My guess is something is missing the the config.py script. Or I did something stupid....

@kraigher
Copy link
Collaborator

Very likely just an omission in setup.py.

@vermaete
Copy link
Contributor Author

directory 'vunit/parser' is missing in setup.py ?

@vermaete
Copy link
Contributor Author

Removing the vunit from the Python installation path (c:\Python34\Lib\site-packages) and setting the PYTHONPATH to the git clone directory did the trick. So: yes, it is the setup.py script.

@kraigher
Copy link
Collaborator

Yes I was immediately convinced it was the setup.py file. Neither me nor Lars really use the setup.py file and we perform quite exhaustive testing so such an error could not come from anywhere else. We should do some testing also with the setup.py file when adding new modules in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants