Error in sqlparse setup command: use_2to3 is invalid.
Created by: mko-x
Hi wechange-eg @saschan !
I'm trying to setup cosinnus locally by following option B of the Readme.
I keep getting errors for sqlparse like e.g. for cosinnus-poll:
running egg_info
creating cosinnus_poll.egg-info
writing cosinnus_poll.egg-info/PKG-INFO
writing dependency_links to cosinnus_poll.egg-info/dependency_links.txt
writing requirements to cosinnus_poll.egg-info/requires.txt
writing top-level names to cosinnus_poll.egg-info/top_level.txt
writing manifest file 'cosinnus_poll.egg-info/SOURCES.txt'
reading manifest file 'cosinnus_poll.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'cosinnus_event/locale'
warning: no files found matching '*' under directory 'cosinnus_event/migrations'
warning: no files found matching '*' under directory 'cosinnus_event/static'
warning: no files found matching '*' under directory 'cosinnus_event/templates'
adding license file 'LICENSE'
adding license file 'AUTHORS'
writing manifest file 'cosinnus_poll.egg-info/SOURCES.txt'
running build_ext
Creating /Users/muka/Documents/repos/wechangeenv/lib/python3.9/site-packages/cosinnus-poll.egg-link (link to .)
Adding cosinnus-poll 0.1.dev20190707122435 to easy-install.pth file
Installed /Users/muka/Documents/repos/cosinnus-devops/cosinnus-poll
Processing dependencies for cosinnus-poll==0.1.dev20190707122435
Searching for sqlparse==0.1.10
Reading https://pypi.org/simple/sqlparse/
Downloading https://files.pythonhosted.org/packages/53/4f/5874394af1d54a8e7bd5563815c5439cb11b87e033019653b875f1a16c10/sqlparse-0.1.10.tar.gz#sha256=d159e104fbf1710bba2e4d410fe0371dcbff80457d4752a0bd414d88ddbdd476
Best match: sqlparse 0.1.10
Processing sqlparse-0.1.10.tar.gz
Writing /var/folders/gw/gf_0ld_54432v3d2zrddw_gw0000gn/T/easy_install-1jt8kzi4/sqlparse-0.1.10/setup.cfg
Running sqlparse-0.1.10/setup.py -q bdist_egg --dist-dir /var/folders/gw/gf_0ld_54432v3d2zrddw_gw0000gn/T/easy_install-1jt8kzi4/sqlparse-0.1.10/egg-dist-tmp-eczn7zf2
error: Setup script exited with error in sqlparse setup command: use_2to3 is invalid.
If I try to run the local setup the error reoccurs:
Collecting sqlparse==0.1.10
Downloading sqlparse-0.1.10.tar.gz (53 kB)
|████████████████████████████████| 53 kB 2.5 MB/s
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/muka/Documents/repos/wechangeenv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/gw/gf_0ld_54432v3d2zrddw_gw0000gn/T/pip-install-ysc_vam3/sqlparse_544a043442d24c31bfb7c09f23b394cd/setup.py'"'"'; __file__='"'"'/private/var/folders/gw/gf_0ld_54432v3d2zrddw_gw0000gn/T/pip-install-ysc_vam3/sqlparse_544a043442d24c31bfb7c09f23b394cd/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/gw/gf_0ld_54432v3d2zrddw_gw0000gn/T/pip-pip-egg-info-nonn844i
cwd: /private/var/folders/gw/gf_0ld_54432v3d2zrddw_gw0000gn/T/pip-install-ysc_vam3/sqlparse_544a043442d24c31bfb7c09f23b394cd/
Complete output (1 lines):
error in sqlparse setup command: use_2to3 is invalid.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/53/4f/5874394af1d54a8e7bd5563815c5439cb11b87e033019653b875f1a16c10/sqlparse-0.1.10.tar.gz#sha256=d159e104fbf1710bba2e4d410fe0371dcbff80457d4752a0bd414d88ddbdd476 (from https://pypi.org/simple/sqlparse/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement sqlparse==0.1.10 (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.15, 0.1.16, 0.1.17, 0.1.18, 0.1.19, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2)
ERROR: No matching distribution found for sqlparse==0.1.10
Do you have any recommendation for handling that? Seems like some issue with the setup tools version but I'm not sure.