UnknownCollections / pysmali

Python library for parsing and unparsing smali files for programatic modification
https://pypi.org/project/smali/
The Unlicense
19 stars 4 forks source link

VERSION is not found - not present in pip #1

Open cryptax opened 2 years ago

cryptax commented 2 years ago

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.

robertsmd commented 1 year ago

second.

robertsmd commented 1 year ago

also needs to add lines:

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

to the SOURCES.txt for the egg.

fan-14 commented 5 months ago

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