Skip to content

Unable to pip install 1.8.7 -- ModuleNotFoundError: No module named 'numpy' #1064

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

Open
bfrandeen opened this issue Mar 31, 2025 · 1 comment

Comments

@bfrandeen
Copy link
Contributor

Seems like a regression may have been introduced over the last version. This error happens even if I have numpy installed in the venv.

(tofu_sparc) ~\py\tofu_sparc: uv pip install tofu==1.8.6
Resolved 32 packages in 33ms
Installed 1 package in 285ms
 + tofu==1.8.6
(tofu_sparc) ~\py\tofu_sparc: uv pip install tofu --upgrade
  × Failed to build `tofu==1.8.7`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit code: 1)

      [stderr]
      Traceback (most recent call last):
        File "<string>", line 14, in <module>
        File
      "C:\Users\bfrandeen\AppData\Local\uv\cache\builds-v0\.tmpri5C1R\Lib\site-packages\setuptools\build_meta.py",
      line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File
      "C:\Users\bfrandeen\AppData\Local\uv\cache\builds-v0\.tmpri5C1R\Lib\site-packages\setuptools\build_meta.py",
      line 304, in _get_build_requires
          self.run_setup()
        File
      "C:\Users\bfrandeen\AppData\Local\uv\cache\builds-v0\.tmpri5C1R\Lib\site-packages\setuptools\build_meta.py",
      line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File
      "C:\Users\bfrandeen\AppData\Local\uv\cache\builds-v0\.tmpri5C1R\Lib\site-packages\setuptools\build_meta.py",
      line 320, in run_setup
          exec(code, locals())
        File "<string>", line 22, in <module>
      ModuleNotFoundError: No module named 'numpy'

      hint: This usually indicates a problem with the package or the build environment.
@Didou09
Copy link
Member

Didou09 commented Mar 31, 2025

Yes, another user noticed that this morning too, I've started migrating to a cleaner pyproject.toml packaging, but since tofu has compiled code it's not trivial, and I'm still in my learning curve, so I let something slip clearly
I'll reverse shortly, should be fix over the course of the week or so, thanks for the feedback and tracability 👍

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

2 participants