There are some commands I’ve write on debian:
(myenv) debian@debian:~/__pycache__$ pydisasm --format xasm print-teste.cpython-39.pyc > result_v2.pyasm
(myenv) debian@debian:~/__pycache__$ pyc-xasm result_v2.pyasm
Traceback (most recent call last):
File "/home/debian/myenv/bin/pyc-xasm", line 8, in <module>
sys.exit(main())
File "/home/debian/myenv/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/home/debian/myenv/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/debian/myenv/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/debian/myenv/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/debian/myenv/lib/python3.9/site-packages/xasm/xasm_cli.py", line 28, in main
asm = asm_file(asm_path)
File "/home/debian/myenv/lib/python3.9/site-packages/xasm/assemble.py", line 158, in asm_file
python_version_pair = version_str_to_tuple(python_version, len=2)
TypeError: version_str_to_tuple() got an unexpected keyword argument 'len'
There is the –asm option but I can’t make it work.
I’ve used the py_compile to compile print("hello world")
into the pyc file.
So can anyone tell me how to work with pydisasm and pyc-xasm on python3.9?
Steps:
python -m py_compyle print-teste.cpython-39.pyc
pydisasm –format xasm print-teste.cpython-39.pyc > result_v2.pyasm
pyc-xasm result_v2.pyasm
Then the error:
TypeError: version_str_to_tuple() got an unexpected keyword argument 'len'
Tech21 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.