Closed yhlee-tw closed 1 year ago
Fixes install error on setuptools 58.5.0-58.5.2
python -m venv /tmp/testvenv && source /tmp/testvenv/bin/activate && pip install --no-cache -U pip setuptools wheel && pip install --no-cache ws4py==0.5.1
https://github.com/pypa/setuptools/issues/2849
Fixes install error on setuptools 58.5.0-58.5.2
Error logs
``` yhlee@yhlee-mbp:/tmp$ python -V Python 3.8.12 yhlee@yhlee-mbp:/tmp$ python -m venv /tmp/testvenv && source /tmp/testvenv/bin/activate && pip install --no-cache -U pip setuptools wheel && pip install --no-cache ws4py==0.5.1 Requirement already satisfied: pip in ./testvenv/lib/python3.8/site-packages (21.1.1) Collecting pip Downloading pip-21.3.1-py3-none-any.whl (1.7 MB) |████████████████████████████████| 1.7 MB 4.0 MB/s Requirement already satisfied: setuptools in ./testvenv/lib/python3.8/site-packages (56.0.0) Collecting setuptools Downloading setuptools-58.5.2-py3-none-any.whl (946 kB) |████████████████████████████████| 946 kB 12.6 MB/s Collecting wheel Downloading wheel-0.37.0-py2.py3-none-any.whl (35 kB) Installing collected packages: wheel, setuptools, pip Attempting uninstall: setuptools Found existing installation: setuptools 56.0.0 Uninstalling setuptools-56.0.0: Successfully uninstalled setuptools-56.0.0 Attempting uninstall: pip Found existing installation: pip 21.1.1 Uninstalling pip-21.1.1: Successfully uninstalled pip-21.1.1 Successfully installed pip-21.3.1 setuptools-58.5.2 wheel-0.37.0 Collecting ws4py==0.5.1 Downloading ws4py-0.5.1.tar.gz (51 kB) |████████████████████████████████| 51 kB 2.5 MB/s Preparing metadata (setup.py) ... error ERROR: Command errored out with exit status 1: command: /tmp/testvenv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/8c/rsppgx390x57zffhvy_l3xb00000gp/T/pip-install-b6sdpikr/ws4py_e36c74e13772460bab6343418581baea/setup.py'"'"'; __file__='"'"'/private/var/folders/8c/rsppgx390x57zffhvy_l3xb00000gp/T/pip-install-b6sdpikr/ws4py_e36c74e13772460bab6343418581baea/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 /private/var/folders/8c/rsppgx390x57zffhvy_l3xb00000gp/T/pip-pip-egg-info-krc4wx4w cwd: /private/var/folders/8c/rsppgx390x57zffhvy_l3xb00000gp/T/pip-install-b6sdpikr/ws4py_e36c74e13772460bab6343418581baea/ Complete output (35 lines): running egg_info creating /private/var/folders/8c/rsppgx390x57zffhvy_l3xb00000gp/T/pip-pip-egg-info-krc4wx4w/ws4py.egg-info writing /private/var/folders/8c/rsppgx390x57zffhvy_l3xb00000gp/T/pip-pip-egg-info-krc4wx4w/ws4py.egg-info/PKG-INFO writing dependency_links to /private/var/folders/8c/rsppgx390x57zffhvy_l3xb00000gp/T/pip-pip-egg-info-krc4wx4w/ws4py.egg-info/dependency_links.txt writing top-level names to /private/var/folders/8c/rsppgx390x57zffhvy_l3xb00000gp/T/pip-pip-egg-info-krc4wx4w/ws4py.egg-info/top_level.txt writing manifest file '/private/var/folders/8c/rsppgx390x57zffhvy_l3xb00000gp/T/pip-pip-egg-info-krc4wx4w/ws4py.egg-info/SOURCES.txt' Traceback (most recent call last): File "https://github.com/pypa/setuptools/issues/2849