Skip to content

Issues with imports when trying to run run-tests.py #17

Open
@waynee95

Description

@waynee95

Running python3.11 run-tests.py leads to the following error:

Traceback (most recent call last):
  File "/home/waynee95/Documents/python-student-support-code/run-tests.py", line 6, in <module>
    from interp_x86.eval_x86 import interp_x86
  File "/home/waynee95/Documents/python-student-support-code/interp_x86/eval_x86.py", line 9, in <module>
    from convert_x86 import convert_program
ModuleNotFoundError: No module named 'convert_x86'

I am not too familiar with the module system of python but I tried to add a dot in the import, i.e. from .convert_x86 import convert_program, but this will then lead to another error:

Traceback (most recent call last):
  File "/home/waynee95/Documents/python-student-support-code/run-tests.py", line 6, in <module>
    from interp_x86.eval_x86 import interp_x86
  File "/home/waynee95/Documents/python-student-support-code/interp_x86/eval_x86.py", line 10, in <module>
    from parser_x86 import x86_parser, x86_parser_instrs
ModuleNotFoundError: No module named 'parser_x86'

This will continue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions