liftoff / pyminifier

Pyminifier is a Python code minifier, obfuscator, and compressor.
GNU General Public License v3.0
1.47k stars 224 forks source link

Cant install pyminifier #136

Open ghost opened 2 years ago

ghost commented 2 years ago

root@kali-linux:/tmp/pyminifier# python3 setup.py install

Traceback (most recent call last):
  File "/tmp/pyminifier/setup.py", line 2, in <module>
    import pyminifier
  File "/tmp/pyminifier/pyminifier/__init__.py", line 71, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
ghost commented 2 years ago

I cloned and ran python3 setup.py install

ghost commented 2 years ago
python3.9 setup.py install
error in pyminifier setup command: use_2to3 is invalid.

Python3.9 instead of Python3.10 gives this

moimart1 commented 1 year ago

Not the best solution but this works for me with Python 3.10

pip install "setuptools<58.0.0"