You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command ['/home/miguel/electricitymap-contrib/.venv/bin/pip', 'install', '--no-deps', '-r', '/tmp/demjson-2.2.4hatm0_e2reqs.txt'] errored with the following return code 1, and output:
Collecting demjson==2.2.4
Using cached demjson-2.2.4.tar.gz (131 kB)
ERROR: Command errored out with exit status 1:
command: /home/miguel/electricitymap-contrib/.venv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t7gf13w_/demjson_c9e27dba7b58443e95237a0b74a5b4c1/setup.py'"'"'; file='"'"'/tmp/pip-install-t7gf13w_/demjson_c9e27dba7b58443e95237a0b74a5b4c1/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-w60ze67z
cwd: /tmp/pip-install-t7gf13w_/demjson_c9e27dba7b58443e95237a0b74a5b4c1/
Complete output (1 lines): error in demjson setup command: use_2to3 is invalid.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/96/67/6db789e2533158963d4af689f961b644ddd9200615b8ce92d6cad695c65a/demjson-2.2.4.tar.gz#sha256=31de2038a0fdd9c4c11f8bf3b13fe77bc2a128307f965c8d5fb4dc6d6f6beb79 (from https://pypi.org/simple/demjson/). 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 demjson==2.2.4 (from versions: 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.0.1, 2.2, 2.2.1, 2.2.2, 2.2.3, 2.2.4)
ERROR: No matching distribution found for demjson==2.2.4
at ~/.local/lib/python3.7/site-packages/poetry/utils/env.py:1180 in run
1176│ output = subprocess.check_output(
1177│ cmd, stderr=subprocess.STDOUT, **kwargs
1178│ )
1179│ except CalledProcessError as e:
→ 1180│ raise EnvCommandError(e, input=input)
1181│
1182│ return decode(output)
1183│
1184│ def execute(self, bin, *args, **kwargs):
`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
Using debian 10 and thus python 3.7 I encounter the following issue when running
`~/electricitymap-contrib$ poetry install -E parsers
Installing dependencies from lock file
Package operations: 1 install, 0 updates, 0 removals
EnvCommandError
Command ['/home/miguel/electricitymap-contrib/.venv/bin/pip', 'install', '--no-deps', '-r', '/tmp/demjson-2.2.4hatm0_e2reqs.txt'] errored with the following return code 1, and output:
Collecting demjson==2.2.4
Using cached demjson-2.2.4.tar.gz (131 kB)
ERROR: Command errored out with exit status 1:
command: /home/miguel/electricitymap-contrib/.venv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t7gf13w_/demjson_c9e27dba7b58443e95237a0b74a5b4c1/setup.py'"'"'; file='"'"'/tmp/pip-install-t7gf13w_/demjson_c9e27dba7b58443e95237a0b74a5b4c1/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-w60ze67z
cwd: /tmp/pip-install-t7gf13w_/demjson_c9e27dba7b58443e95237a0b74a5b4c1/
Complete output (1 lines):
error in demjson setup command: use_2to3 is invalid.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/96/67/6db789e2533158963d4af689f961b644ddd9200615b8ce92d6cad695c65a/demjson-2.2.4.tar.gz#sha256=31de2038a0fdd9c4c11f8bf3b13fe77bc2a128307f965c8d5fb4dc6d6f6beb79 (from https://pypi.org/simple/demjson/). 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 demjson==2.2.4 (from versions: 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.0.1, 2.2, 2.2.1, 2.2.2, 2.2.3, 2.2.4)
ERROR: No matching distribution found for demjson==2.2.4
at ~/.local/lib/python3.7/site-packages/poetry/utils/env.py:1180 in run
1176│ output = subprocess.check_output(
1177│ cmd, stderr=subprocess.STDOUT, **kwargs
1178│ )
1179│ except CalledProcessError as e:
→ 1180│ raise EnvCommandError(e, input=input)
1181│
1182│ return decode(output)
1183│
1184│ def execute(self, bin, *args, **kwargs):
`
What am I doing wrong or how could I solve this ?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions