You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issues with imports when trying to run run-tests.py #17
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'
Activity
Ray-Eldath commentedon Mar 24, 2023
Same on my machine. The following patch should fix this: