openassistant / oa-core

Open Assistant Core
http://openassistant.org
GNU General Public License v3.0
292 stars 77 forks source link

pip install -r requirements.txt fails on Windows #25

Closed FranckDemanou closed 4 years ago

FranckDemanou commented 4 years ago

I've become this error:

Running setup.py install for pocketsphinx ... error ERROR: Command errored out with exit status 1: command: 'c:\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\franc\AppData\Local\Temp\pip-install-7p1u8a4n\pocketsphinx\setup.py'"'"'; file='"'"'C:\Users\franc\AppData\Local\Temp\pip-install-7p1u8a4n\pocketsphinx\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\franc\AppData\Local\Temp\pip-record-j0tp8_pa\install-record.txt' --single-version-externally-managed --compile cwd: C:\Users\franc\AppData\Local\Temp\pip-install-7p1u8a4n\pocketsphinx\ Complete output (6 lines): running install running build_ext building 'sphinxbase._sphinxbase' extension swigging deps/sphinxbase/swig/sphinxbase.i to deps/sphinxbase/swig/sphinxbase_wrap.c swig.exe -python -modern -threads -Ideps/sphinxbase/include -Ideps/sphinxbase/include/sphinxbase -Ideps/sphinxbase/include/win32 -Ideps/sphinxbase/swig -outdir sphinxbase -o deps/sphinxbase/swig/sphinxbase_wrap.c deps/sphinxbase/swig/sphinxbase.i error: command 'swig.exe' failed: No such file or directory

ERROR: Command errored out with exit status 1: 'c:\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\franc\AppData\Local\Temp\pip-install-7p1u8a4n\pocketsphinx\setup.py'"'"'; file='"'"'C:\Users\franc\AppData\Local\Temp\pip-install-7p1u8a4n\pocketsphinx\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\franc\AppData\Local\Temp\pip-record-j0tp8_pa\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

I need help to fix it, thanks.

joshuashort commented 4 years ago

You're missing swig.exe, so install that however it's done on Windows. There are probably other missing system dependencies, but this hasn't been mapped/documented.

joshuashort commented 4 years ago

Added some notes to https://github.com/openassistant/oa-core/wiki/Installation#windows

This is the same kind of problem as #22

Closing this issue for now..

pwab commented 4 years ago

The problem here is python's pocketsphinx. I tried the installation process with Python 3.9a, 3.8-stable and 3.7.x on conda. I encountered the same problem and it finally leads to the problem that pocketsphinx isn't build for python versions above 3.6 (no wheels available).

See https://github.com/bambocher/pocketsphinx-python/issues/49 for reference.

This is not a bug of OA. But it could be documented that: