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

Installation error ModuleNotFoundError: No module named 'pybind11' #12

Open
DominikAgejev opened this issue May 1, 2024 · 1 comment

Comments

@DominikAgejev
Copy link

Hi, trying to install fastwer.

I successfully installed pybing11, but not fastwer, not on python 3.7 nor 3.10.

I tried cloning the repository and running setup.py but it wouldn't let me.

Here's the error:

!pip install --use-pep517 fastwer

Collecting fastwer
  Using cached fastwer-0.1.3.tar.gz (4.6 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      Traceback (most recent call last):
        File "C:\Users\domin\anaconda3\envs\OCR\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\domin\anaconda3\envs\OCR\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\domin\anaconda3\envs\OCR\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\domin\AppData\Local\Temp\pip-build-env-ghfpmuls\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "C:\Users\domin\AppData\Local\Temp\pip-build-env-ghfpmuls\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "C:\Users\domin\AppData\Local\Temp\pip-build-env-ghfpmuls\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:\Users\domin\AppData\Local\Temp\pip-build-env-ghfpmuls\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 27, in <module>
        File "<string>", line 19, in get_include
      ModuleNotFoundError: No module named 'pybind11'
      [end of output]
  
...
│ exit code: 1
╰─> See above for output.

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

The installation works no problem on Google Colab.
Any help would be appreciated.

@DominikAgejev
Copy link
Author

I managed to resolve the issue by installing the open pull request. Please merge this: #8

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

1 participant