searxng / fasttext-predict

fasttext with wheels and no external dependency, but only the predict method (<1MB)
MIT License
11 stars 5 forks source link

Build wheels for arm/v7 in CI: #8

Open vojkovic opened 1 month ago

vojkovic commented 1 month ago

From the SearXNG matrix:

  |searxng|   Downloading fasttext-predict-0.9.2.2.tar.gz (16 kB)
  |searxng|   Preparing metadata (pyproject.toml): started
  |searxng|   Preparing metadata (pyproject.toml): finished with status 'error'
  |searxng|   error: subprocess-exited-with-error
  |searxng|   
  |searxng|   × Preparing metadata (pyproject.toml) did not run successfully.
  |searxng|   │ exit code: 1
  |searxng|   ╰─> [13 lines of output]
  |searxng|       Traceback (most recent call last):
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
  |searxng|           main()
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
  |searxng|           json_out['return_val'] = hook(**hook_input['kwargs'])
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
  |searxng|           return hook(metadata_directory, config_settings)
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/build_meta.py", line 373, in prepare_metadata_for_build_wheel
  |searxng|           self.run_setup()
  |searxng|         File "/usr/local/searxng/searx-pyenv/lib/python3.9/site-packages/setuptools/build_meta.py", line 318, in run_setup
  |searxng|           exec(code, locals())
  |searxng|         File "<string>", line 15, in <module>
  |searxng|       ModuleNotFoundError: No module named 'pybind11'
  |searxng|       [end of output]
  |searxng|   
  |searxng|   note: This error originates from a subprocess, and is likely not a problem with pip.
  |searxng| error: metadata-generation-failed
  |searxng| 
  |searxng| × Encountered error while generating package metadata.
  |searxng| ╰─> See above for output.
  |searxng| 
  |searxng| note: This is an issue with the package mentioned above, not pip.
  |searxng| hint: See above for details.

Please update https://github.com/searxng/fasttext-predict/blob/main/.github/workflows/wheels.yml to build for armv7.

dalf commented 4 days ago

can you try the last version : v0.9.2.3

dalf commented 3 days ago

So v0.9.2.3 is missing manylinux armv7l wheels (it includes the musllinux armv7l but most probably this is not what you are looking for).

I changed the GitHub workflow on dalf/fasttext-predict to use cibuildwheel.

See this release: https://github.com/dalf/fasttext-predict/releases/tag/v0.0.0.1

If this works as expected, I will release a v0.9.2.4 version based on this GH workflow.