Crissium / SilverDict-mobile

Mobile client of SilverDict
https://silverdict.lecoteauverdoyant.co.uk
GNU General Public License v3.0
32 stars 0 forks source link

Can't install pip packages in terminal #7

Open Stu75e opened 9 months ago

Stu75e commented 9 months ago

Can't install packages in terminall like hunspell I think need some library


Collecting hunspell                             Using cached hunspell-0.5.5.tar.gz (34 kB)    Preparing metadata (setup.py) ... done      Building wheels for collected packages: hunspell                                              Building wheel for hunspell (setup.py) ...error                                             error: subprocess-exited-with-error                                                         × python setup.py bdist_wheel did not run successfully.                                     │ exit code: 1                                ╰─> [12 lines of output]                          running bdist_wheel                           running build                                 running build_ext                             building 'hunspell' extension                 creating build                                creating build/temp.linux-aarch64-cpython-311                                               aarch64-linux-android-clang -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-strong -O3 -fstack-protector-strong -O3 -fPIC -D_LINUX -I/usr/include/hunspell -I/data/data/com.termux/files/usr/include/python3.11 -c hunspell.cpp -o build/temp.linux-aarch64-cpython-311/hunspell.o -Wall                                          hunspell.cpp:20:10: fatal error: 'hunspell.hxx' file not found                                 20 | #include <hunspell.hxx>                     |          ^~~~~~~~~~~~~~               1 error generated.                            error: command '/data/data/com.termux/files/usr/bin/aarch64-linux-android-clang' failed with exit code 1                                  [end of output]                                                                         note: This error originates from a subprocess, and is likely not a problem with pip.        ERROR: Failed building wheel for hunspell     Running setup.py clean for hunspell         Failed to build hunspell                      ERROR: Could not build wheels for hunspell, which is required to install pyproject.toml-based projects
Crissium commented 9 months ago

Could you try the supplied script termux_setup.sh? The Python package expects the headers in the top level directory (/usr/include). You could just paste the relevant lines of the script to see if it helps.