Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install chumpy------> ERROR mesage #50

Open
flydragon2018 opened this issue Apr 16, 2023 · 5 comments
Open

pip install chumpy------> ERROR mesage #50

flydragon2018 opened this issue Apr 16, 2023 · 5 comments

Comments

@flydragon2018
Copy link

ModuleNotFoundError: No module named 'pip'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

@flydragon2018
Copy link
Author

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

@Mwni
Copy link

Mwni commented Jul 24, 2023

pip install wheel

solves this

@matthewfranglen
Copy link

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)"'.

@4d30
Copy link

4d30 commented Mar 1, 2024

Would be nice to add wheel to requirements

@elisa-aleman
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants