douglascrockford / JSMin

JavaScript Minification Filter
http://javascript.crockford.com/jsmin.html
695 stars 151 forks source link

use_2to3 is invalid #24

Closed spanktar closed 3 years ago

spanktar commented 3 years ago

We're experiencing a new issue installing jsmin as a dependency for azure-cli:

#11 130.2 Collecting jsmin==2.2.2
#11 130.2   Downloading jsmin-2.2.2.tar.gz (12 kB)
#11 130.4     ERROR: Command errored out with exit status 1:
#11 130.4      command: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-poyif1fk/jsmin_cbd1c10d3c314dd28f81bc98eb1cc7c2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-poyif1fk/jsmin_cbd1c10d3c314dd28f81bc98eb1cc7c2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-i4jrcuyg
#11 130.4          cwd: /tmp/pip-install-poyif1fk/jsmin_cbd1c10d3c314dd28f81bc98eb1cc7c2/
#11 130.4     Complete output (1 lines):
#11 130.4     error in jsmin setup command: use_2to3 is invalid.
#11 130.4     ----------------------------------------

I've tried explicitly installing 2to3 and explicitly invoking pip and python with 3, but no dice. Any help would be appreciated!

spanktar commented 3 years ago

Wrong project, if you come across this please refer to: https://github.com/tikitu/jsmin/issues/33

jiasli commented 3 years ago

azure-cli has fixed this issue: https://github.com/Azure/azure-cli/issues/19468.