Ludwig: Unable to install Ludwig in Colab (gmpy)

Created on 27 Jul 2019  路  3Comments  路  Source: ludwig-ai/ludwig

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:

  1. Go to colab.google.com
  2. Click on + Code
  3. Scroll down to New code cell
  4. Install ludwig via pip install
  5. See error:
    Please provide code, yaml definition file and a sample of data in order to entirely reproduce the issue.
    Issues that are not reproducible will be ignored.

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):

  • OS: Jupyter (Colab)
  • Version Kernel Python 3

    • Python version: Python 3.6.8

    • Ludwig version: 0.2

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/

Most helpful comment

@gogasca I fixed it by installing these libs
!apt-get install libgmp-dev libmpfr-dev libmpc-dev

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BenMacKenzie picture BenMacKenzie  路  7Comments

pixxelfactory picture pixxelfactory  路  6Comments

Aashish-1008 picture Aashish-1008  路  4Comments

serv picture serv  路  8Comments

BenMacKenzie picture BenMacKenzie  路  7Comments