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
I'm using wsl 22.04, and run "python3 main.py --ifile=main.pyc --ofile=mainfixed.pyc", then get this error:
INFO:main:Opening file main.pyc
Traceback (most recent call last):
File "/home/user/bytecode_simplifier/main.py", line 72, in
process(args.ifile, args.ofile)
File "/home/user/bytecode_simplifier/main.py", line 52, in process
if not header.startswith('\x03\xF3\x0D\x0A'):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
I'm using python3, is this a python2 project?
The text was updated successfully, but these errors were encountered:
I'm using wsl 22.04, and run "python3 main.py --ifile=main.pyc --ofile=mainfixed.pyc", then get this error:
INFO:main:Opening file main.pyc
Traceback (most recent call last):
File "/home/user/bytecode_simplifier/main.py", line 72, in
process(args.ifile, args.ofile)
File "/home/user/bytecode_simplifier/main.py", line 52, in process
if not header.startswith('\x03\xF3\x0D\x0A'):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
I'm using python3, is this a python2 project?
The text was updated successfully, but these errors were encountered: