Docker set-up failure
See original GitHub issueI’m trying to set-up container with ludwig using the https://github.com/uber/ludwig/blob/master/Dockerfile
and my docker-compose file looks like this
version: '3'
services:
web:
container_name: web
build: .
ports:
- "5000:5000"
volumes:
- .:/code
environment:
FLASK_ENV: development
ludwig:
build:
context: ludwig/
redis:
image: "redis:alpine"
I get the below errors while building
.
.
.
.
Failed to build gmpy
ERROR: fastapi 0.33.0 has requirement pydantic<=0.30.0,>=0.30, but you'll have pydantic 0.30.1 which is incompatible.
Installing collected packages: Cython, python-dateutil, cycler, kiwisolver, pyparsing, matplotlib, pytz, pandas, scipy, cloudpickle, toolz, dask, pillow, PyWavelets, decorator, networkx, scikit-image, joblib, scikit-learn, seaborn, cymem, srsly, murmurhash, preshed, blis, plac, wasabi, urllib3, certifi, chardet, requests, tqdm, thinc, spacy, tabulate, tensorboard, mock, tensorflow-estimator, tensorflow, PyYAML, attrs, atomicwrites, more-itertools, zipp, importlib-metadata, pluggy, wcwidth, py, packaging, pytest, gmpy, starlette, dataclasses, pydantic, fastapi, click, h11, websockets, httptools, uvloop, uvicorn, python-multipart
Found existing installation: tensorboard 1.14.0
Uninstalling tensorboard-1.14.0:
Successfully uninstalled tensorboard-1.14.0
Found existing installation: tensorflow-estimator 1.14.0
Uninstalling tensorflow-estimator-1.14.0:
Successfully uninstalled tensorflow-estimator-1.14.0
Found existing installation: tensorflow 1.14.0
Uninstalling tensorflow-1.14.0:
Successfully uninstalled tensorflow-1.14.0
Running setup.py install for gmpy: started
Running setup.py install for gmpy: finished with status 'error'
ERROR: Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-d6v9cv4z/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-sv9t3yco/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_ext
building 'gmpy' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./src -I/usr/include/python3.6m -c src/gmpy.c -o build/temp.linux-x86_64-3.6/src/gmpy.o
In file included from src/gmpy.c:251:0:
src/gmpy.h:30:10: fatal error: gmp.h: No such file or directory
#include "gmp.h"
^~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/usr/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-d6v9cv4z/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-sv9t3yco/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-d6v9cv4z/gmpy/
ERROR: Service 'ludwig' failed to build: The command '/bin/sh -c git clone --depth=1 https://github.com/uber/ludwig.git && cd ludwig/ && pip install -r requirements.txt && python -m spacy download en && python setup.py install' returned a non-zero code: 1
~/docker-related$
Appreciate if anyone can let me know if I’m missing something. Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Workarounds for common problems - Docker Documentation
Docker Desktop fails to start when anti-virus software is installed. Some anti-virus software may be incompatible with Hyper-V and Microsoft Windows 10 builds. ......
Read more >Docker Desktop installation failed - Stack Overflow
I was able to install by deleting file "Docker" on C:/ProgramData/ ... I ran into an error there that resulted in the exact...
Read more >Docker Install Failure on Windows #9758 - GitHub
Had a similar issue. I resolved the issue by completely removing old Docker Desktop which you should check it's removal from the installation...
Read more >Docker Failed To Initialize | Docker Desktop Is Shutting Down
Docker Installation On Windows 10 | Installing Docker Desktop on windows 10 · God-Tier Developer Roadmap · How To Predict Random Numbers Generated ......
Read more >How to Resolve the “cannot connect to the Docker daemon ...
Resolving the “cannot connect to the Docker daemon” Error · 1. First, check if the Docker engine is running: sudo service docker status...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It has already been removed in master.
On Mon, 29 Jul 2019 at 10:57, Simone Francia notifications@github.com wrote:
–
Piero Molino Sr Research Scientist UBER AI Labs
Sorry @w4nderlust, why this lib
libgmp3-dev
is needed for ludwig? Also we had recently some problems in building docker image and we solved installing this lib, but it wasn’t before. Thanks