AttributeError when trying to run the calculator against a file
ioistired opened this issue · 2 comments
ioistired commented
➤ python -m calculator tmp/script.c5
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/user/code/vcs/git/com/github/@/DXsmiley/mathbot/mathbot/calculator/__main__.py", line 79, in <module>
main()
File "/home/user/code/vcs/git/com/github/@/DXsmiley/mathbot/mathbot/calculator/__main__.py", line 27, in main
btc = prepare_runtime(bytecode.CodeBuilder(), ast, exportable = args.compile)
AttributeError: module 'calculator.bytecode' has no attribute 'CodeBuilder'
I'm on commit a6b8fea. I tried with the --compile / --trace flags, and got the same error.
DXsmiley commented
I think I fixed this. Can you pull master and see if it works for you?
ioistired commented
Confirmed working