pyminifier icon indicating copy to clipboard operation
pyminifier copied to clipboard

Cant install pyminifier

Open ghost opened this issue 3 years ago • 3 comments

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 avatar Jun 15 '22 12:06 ghost

I cloned and ran python3 setup.py install

ghost avatar Jun 15 '22 12:06 ghost

python3.9 setup.py install
error in pyminifier setup command: use_2to3 is invalid.

Python3.9 instead of Python3.10 gives this

ghost avatar Jun 15 '22 12:06 ghost

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

pip install "setuptools<58.0.0"

moimart1 avatar Feb 20 '23 19:02 moimart1