xinjli / allosaurus

Allosaurus is a pretrained universal phone recognizer for more than 2000 languages
GNU General Public License v3.0
550 stars 86 forks source link

Build issue #10

Closed dinkar--s closed 3 years ago

dinkar--s commented 3 years ago

Hi,

Looks like a great program.

However, I was having trouble building allosaurus. I am on Ubuntu 16.04 and when I do 'pip install allosaurus' I get

Building wheel for llvmlite (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-r4C97N/llvmlite/setup.py'"'"'; file='"'"'/tmp/pip-install-r4C97N/llvmlite/s etup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_whee l -d /tmp/pip-wheel-AzDXdO cwd: /tmp/pip-install-r4C97N/llvmlite/ Complete output (7 lines): running bdist_wheel /usr/bin/python /tmp/pip-install-r4C97N/llvmlite/ffi/build.py File "/tmp/pip-install-r4C97N/llvmlite/ffi/build.py", line 122 raise ValueError(msg.format(_ver_check_skip)) from e ^ SyntaxError: invalid syntax error: command '/usr/bin/python' failed with exit status 1

ERROR: Failed building wheel for llvmlite

On the web, there were suggestions to use 'python -m pip ...' and also try install llvm. I did both, but it didn't help

Appreciate any help

xinjli commented 3 years ago

I guess it might be the python version issue. We are using python>=3.6 and it has not install problems so far.

There is a related issue here might be helpful for you. https://github.com/numba/numba/issues/5855

dinkar--s commented 3 years ago

I managed to install allosaurus by using a specific version of llvmlite using pip install llvmlite==0.31.0 It seems to have something to do with LLVM_CONFIG not being set properly. The reason for this is given in https://stackoverflow.com/questions/61475274/runtimeerror-path-failed-executing-please-point-llvm-config-to-the-path-for Thanks very much for the help