pysmali icon indicating copy to clipboard operation
pysmali copied to clipboard

VERSION is not found - not present in pip

Open cryptax opened this issue 3 years ago • 3 comments

I install with pip3 install smali in a virtual environment, and I can't use it:

[!576]$ python3
Python 3.10.4 (main, May  2 2022, 10:55:50) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from smali import SmaliFile
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/axelle/softs/myvirtualenvs/pysmali-venv/lib/python3.10/site-packages/smali/__init__.py", line 7, in <module>
    with open(os.path.join(os.path.dirname(__file__), '..', 'VERSION'), 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/axelle/softs/myvirtualenvs/pysmali-venv/lib/python3.10/site-packages/smali/../VERSION'

VERSION is missing. If you add it manually, it works.

cryptax avatar Jun 24 '22 13:06 cryptax

second.

robertsmd avatar Nov 16 '22 17:11 robertsmd

also needs to add lines:

smali/lib/peekable.py
smali/lib/smali_compare.py

to the SOURCES.txt for the egg.

robertsmd avatar Nov 16 '22 18:11 robertsmd

I also have the same problem, is there any solution for this error?

fan-14 avatar Mar 21 '24 02:03 fan-14