Install fasttext

I want to deploy a simple web app in streamlit.
I want to install fasttext, but I get the following error
Please let me know how to deal with it.
error log:
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
╰─> [25 lines of output]
/opt/render/project/src/.venv/bin/python: No module named pip
Traceback (most recent call last):
File “”, line 38, in init
ModuleNotFoundError: No module named ‘pybind11’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/render/project/src/.venv/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
    main()
  File "/opt/render/project/src/.venv/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
  File "/opt/render/project/src/.venv/lib/python3.7/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
    return hook(config_settings)
  File "/tmp/pip-build-env-p2wus9af/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=['wheel'])
  File "/tmp/pip-build-env-p2wus9af/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
    self.run_setup()
  File "/tmp/pip-build-env-p2wus9af/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 488, in run_setup
    self).run_setup(setup_script=setup_script)
  File "/tmp/pip-build-env-p2wus9af/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 338, in run_setup
    exec(code, locals())
  File "<string>", line 72, in <module>
  File "<string>", line 41, in __init__
RuntimeError: pybind11 install failed.
[end of output]

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

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
==> Build failed :disappointed:

Hi,

The issue in those logs seems to be No module named ‘pybind11'

Is that defined in your requirements.txt?

Also, it may be worth checking you’re specifying a Python version to match the one you developed/tested on.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.