Comments (5)
pip install wheel
solves this
from chumpy.
I have this issue when installing chumpy in a poetry virtual environment. It occurs for versions 0.70, 0.69, 0.68, 0.67.7. I was able to install 0.66.
➜ PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring poetry add 'chumpy<0.68' Updating dependencies Resolving dependencies... (6.3s) Package operations: 1 install, 0 updates, 0 removals • Installing chumpy (0.67.7): Failed ChefBuildError Backend subprocess exited when trying to invoke get_requires_for_build_wheel Traceback (most recent call last): File "<string>", line 9, in <module> ModuleNotFoundError: No module named 'pip' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/matthew/.local/pipx/venvs/poetry/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module> main() File "/home/matthew/.local/pipx/venvs/poetry/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/home/matthew/.local/pipx/venvs/poetry/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "/tmp/tmpj1kw8j7d/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) File "/tmp/tmpj1kw8j7d/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires self.run_setup() File "/tmp/tmpj1kw8j7d/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 507, in run_setup super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script) File "/tmp/tmpj1kw8j7d/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup exec(code, locals()) File "<string>", line 11, in <module> ModuleNotFoundError: No module named 'pip' at ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/poetry/installation/chef.py:147 in _prepare 143│ 144│ error = ChefBuildError("\n\n".join(message_parts)) 145│ 146│ if error is not None: → 147│ raise error from None 148│ 149│ return path 150│ 151│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path: Note: This error originates from the build backend, and is likely not a problem with poetry but with chumpy (0.67.7) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "chumpy (==0.67.7)"'.
I also had this issue and this this as a workaround #56 (comment)
from chumpy.
I need to install chumpy again recently.
so I delete pip first from the site-packages,
then
python -m ensurepip --upgrade
the pip version is 20.0.2
chumpy 0.69 was installed early,
pip install chumpy==0.70 --ignore-installed requests
from chumpy.
I have this issue when installing chumpy in a poetry virtual environment. It occurs for versions 0.70, 0.69, 0.68, 0.67.7. I was able to install 0.66.
➜ PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring poetry add 'chumpy<0.68'
Updating dependencies
Resolving dependencies... (6.3s)
Package operations: 1 install, 0 updates, 0 removals
• Installing chumpy (0.67.7): Failed
ChefBuildError
Backend subprocess exited when trying to invoke get_requires_for_build_wheel
Traceback (most recent call last):
File "<string>", line 9, in <module>
ModuleNotFoundError: No module named 'pip'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/matthew/.local/pipx/venvs/poetry/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/matthew/.local/pipx/venvs/poetry/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/matthew/.local/pipx/venvs/poetry/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/tmpj1kw8j7d/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/tmpj1kw8j7d/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
self.run_setup()
File "/tmp/tmpj1kw8j7d/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 507, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "/tmp/tmpj1kw8j7d/.venv/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 11, in <module>
ModuleNotFoundError: No module named 'pip'
at ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/poetry/installation/chef.py:147 in _prepare
143│
144│ error = ChefBuildError("\n\n".join(message_parts))
145│
146│ if error is not None:
→ 147│ raise error from None
148│
149│ return path
150│
151│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with chumpy (0.67.7) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "chumpy (==0.67.7)"'.
from chumpy.
Would be nice to add wheel to requirements
from chumpy.
Related Issues (20)
- Meet a error during installation, I use "python setup.py" to install chumpy, is it right?
- Confusion about beta_multiplier function in the dogleg implementation.
- Error in ptyhon3
- Cannot try demo 'show_tree' HOT 1
- show_tree does not work even after DEBUG = True
- Set specific stopping condition.
- What does `r` in `compute_r` refer to? HOT 1
- Setup.py fails for pip>=20.1 HOT 9
- Build fails with setuptools 50.0.0 HOT 2
- Optimizing for GPU HOT 2
- The nondeterministic computation order of Jacobian
- can not find 0.69 version
- New PyPI release without numpy imports HOT 2
- AttributeError: module 'inspect' has no attribute 'getargspec'. Did you mean: 'getargs'? HOT 2
- The explicit call of gc.collect()
- Python 3.10 install error
- 'import chumpy' fails: ImportError: cannot import name 'bool' from 'numpy' HOT 4
- chumpy `setup.py` improperly imports pip causing installation failure when using PEP 517 HOT 2
- import Chumpy error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chumpy.