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
Collecting glumpy==1.2.1 (from -r /tmp/tmp_5ub3mbj (line 3))
Using cached glumpy-1.2.1.tar.gz (517 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [50 lines of output]
/workspaces/project/test/.venv/bin/python: No module named pip
Traceback (most recent call last):
File "/tmp/pip-build-env-2_puzhxy/overlay/lib/python3.12/site-packages/setuptools/installer.py", line 101, in _fetch_build_egg_no_warn
subprocess.check_call(cmd)
File "/home/vscode/.rye/py/cpython@3.12.2/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/workspaces/project/test/.venv/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpp3daoh9b', '--quiet', 'numpy>=1.20']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/tmp/.tmp51xgNh/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/tmp/.tmp51xgNh/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/.tmp51xgNh/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-2_puzhxy/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-2_puzhxy/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-2_puzhxy/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-2_puzhxy/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 10, in <module>
File "/tmp/pip-build-env-2_puzhxy/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 640, in fetch_build_eggs
return _fetch_build_eggs(self, requires)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-2_puzhxy/overlay/lib/python3.12/site-packages/setuptools/installer.py", line 38, in _fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-2_puzhxy/overlay/lib/python3.12/site-packages/pkg_resources/__init__.py", line 798, in resolve
dist = self._resolve_dist(
^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-2_puzhxy/overlay/lib/python3.12/site-packages/pkg_resources/__init__.py", line 834, in _resolve_dist
dist = best[req.key] = env.best_match(
^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-2_puzhxy/overlay/lib/python3.12/site-packages/pkg_resources/__init__.py", line 1104, in best_match
return self.obtain(req, installer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-2_puzhxy/overlay/lib/python3.12/site-packages/pkg_resources/__init__.py", line 1115, in obtain
return installer(requirement) if installer else None
^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-2_puzhxy/overlay/lib/python3.12/site-packages/setuptools/installer.py", line 103, in _fetch_build_egg_no_warn
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/workspaces/project/test/.venv/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpp3daoh9b', '--quiet', 'numpy>=1.20']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Traceback (most recent call last):
File "/home/vscode/.rye/pip-tools/cpython@3.12/bin/pip-sync", line 8, in <module>
sys.exit(cli())
^^^^^
File "/home/vscode/.rye/pip-tools/cpython@3.12/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vscode/.rye/pip-tools/cpython@3.12/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/vscode/.rye/pip-tools/cpython@3.12/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vscode/.rye/pip-tools/cpython@3.12/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vscode/.rye/pip-tools/cpython@3.12/lib/python3.12/site-packages/piptools/scripts/sync.py", line 205, in cli
sync.sync(
File "/home/vscode/.rye/pip-tools/cpython@3.12/lib/python3.12/site-packages/piptools/sync.py", line 263, in sync
run( # nosec
File "/home/vscode/.rye/py/cpython@3.12.2/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/workspaces/project/test/.venv/bin/python', '-m', 'pip', 'install', '-r', '/tmp/tmp_5ub3mbj', '--index-url', 'https://pypi.org/simple/', '--no-deps']' returned non-zero exit status 1.
error: Installation of dependencies failed
Looks like there is a nested invocation of pip and it fails at some point. I tried adding pip as a dependency but that doesn't help.
I'm not sure whether this is a bug in rye or glumpy is doing something weird. Is there any workaround for this?
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
-
Basically I'm doing this:
This results in error:
Looks like there is a nested invocation of pip and it fails at some point. I tried adding pip as a dependency but that doesn't help.
I'm not sure whether this is a bug in rye or glumpy is doing something weird. Is there any workaround for this?
Beta Was this translation helpful? Give feedback.
All reactions