Describe the bug
Installation of ludiwg via pip install ludwig fails in Colab with Python 3.6 Kernel
Colab Kernel Python 3
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Building wheels for collected packages: gmpy
Building wheel for gmpy (setup.py) ... error
ERROR: Failed building wheel for gmpy
Running setup.py clean for gmpy
Failed to build gmpy
Installing collected packages: websockets, uvloop, httptools, h11, uvicorn, pydantic, soundfile, gmpy, starlette, fastapi, python-multipart, ludwig
Running setup.py install for gmpy ... error
ERROR: Command "/usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-n2juq717/gmpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-nqcam76f/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-n2juq717/gmpy/
pip install gmpy and gmpy2 fails
Collecting gmpy
Using cached https://files.pythonhosted.org/packages/26/37/2184c13cee81e1dbeaebbb13570195247e73ab2138a3db0c9d2c5347e372/gmpy-1.17.zip
Building wheels for collected packages: gmpy
Building wheel for gmpy (setup.py) ... error
ERROR: Failed building wheel for gmpy
Running setup.py clean for gmpy
Failed to build gmpy
Installing collected packages: gmpy
Running setup.py install for gmpy ... error
ERROR: Command "/usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-7tljbr5j/gmpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-amw9m7tv/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-7tljbr5j/gmpy/
Looks like error has been addressed in Github but still pipy installer/wheels in Pipy needs to be updated
@gogasca I fixed it by installing these libs
!apt-get install libgmp-dev libmpfr-dev libmpc-dev
It is both already addressed in the current master, plus there is an explaination of the solution in both the getting started and the faq pages
Most helpful comment
@gogasca I fixed it by installing these libs
!apt-get install libgmp-dev libmpfr-dev libmpc-dev