Closed MPX4132 closed 6 years ago
I worked around it by using the python 3 equivalent, and making the following changes:
apt install python3-pip
pip3 install bna
python-bna/bin/bna
's interpreter to python3:
#!/usr/bin/python3
And copied it to the executable path:
cp python-bna/bin/bna /usr/local/bin/
Did you guys fix it, or we gonna pretend it’s fixed?
It's not compatible with python 2.7, and that's intended. You need python 3 to run it.
What’s the point in making the interpreter ambiguous?
#!/usr/bin/env python
Why not explicitly say python3? I reported the issue because the script crashed when I tried executing it. Why did it crash? That’s easy, my environment points python to python 2.7, not python 3.x, which is clearly what’s expected here. I think this is a bug, not a configuration issue.
Specifically, it crashes when an attempt is made to xor strings in the function
decrypt(response, opt)
:It'll probably also crash anywhere it uses the
bytes(...)
function.