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

No module named 'setuptools_rust' on Win 11 x64 #909

Open
navix14 opened this issue May 6, 2023 · 1 comment
Open

No module named 'setuptools_rust' on Win 11 x64 #909

navix14 opened this issue May 6, 2023 · 1 comment
Labels

Comments

@navix14
Copy link

navix14 commented May 6, 2023

Question
I am trying to install the snips-nlu package on a Windows 11 machine. After executing pip install snips-nlu it fails with the following error:

× Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      Traceback (most recent call last):
        File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-i_5j4f12\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-i_5j4f12\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-i_5j4f12\overlay\Lib\site-packages\setuptools\build_meta.py", line 488, in run_setup
          self).run_setup(setup_script=setup_script)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-i_5j4f12\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 8, in <module>
      ModuleNotFoundError: No module named 'setuptools_rust'
      [end of output]

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

Specs

  • Windows 11 x64 21H2 (Build 22000.1817)
  • Python 3.11.3
  • pip 23.1.2
  • rustc 1.69.0
  • cargo 1.69.0

Steps to reproduce

  1. python -m venv example
  2. .\example\Scripts\activate.bat
  3. pip install --upgrade pip
  4. pip install setuptools_rust
(example) λ pip list
Package           Version
----------------- -------
pip               23.1.2
semantic-version  2.10.0
setuptools        65.5.0
setuptools-rust   1.6.0
typing_extensions 4.5.0
  1. pip install snips-nlu

I tried the same steps without using a virtual environment with a clean Python 3.11.3, Python 3.9 & Python 3.8.9 installation. Unfortunately, same result :(

@navix14 navix14 changed the title No module named 'setuptools_rust' No module named 'setuptools_rust' on Win 11 x64 May 6, 2023
@tazz4843
Copy link

tazz4843 commented Aug 24, 2023

Getting this on Arch Linux using Python 3.11.3 as well. Ran python3 -m pip install setuptools-rust after which I got a unrelated error. Hopefully this helps someone in the future. Do keep in mind this repo looks abandoned now, so that might be another issue for the future.

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

No branches or pull requests

2 participants