Closed esaurimentocronico closed 3 years ago
Hi, I tried diagnosing this issue and made a few minor changes to the dockerfile on the branch fix_50
to switch it to explicitly using python2.7 - but ultimately I got stuck on the same error with sqlalchemy. I think it's related to something in that pip package.
If you want to try working from those changes, maybe you'll be able to figure it out. Let me know if you do!
I think I managed to fix this. If you make the following change to the Dockerfile then the Docker image will build successfully:
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 5121e21..fdbeb9f 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -55,7 +55,7 @@ RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/usr-local-lib.conf
RUN ldconfig
RUN pip install --upgrade -v pip -i https://pypi.python.org/simple/
-RUN pip install subprocess32 lockfile sqlalchemy -i https://pypi.python.org/simple
+RUN pip install subprocess32 lockfile SQLAlchemy==1.0.14 -i https://pypi.python.org/simple
RUN pip install pyyaml
RUN ln -s /usr/lib/libjsoncpp.so.0 /usr/lib/libjsoncpp.so.1
Could you give this a try?
I think I managed to fix this. If you make the following change to the Dockerfile then the Docker image will build successfully:
diff --git a/docker/Dockerfile b/docker/Dockerfile index 5121e21..fdbeb9f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -55,7 +55,7 @@ RUN echo "/usr/local/lib" > /etc/ld.so.conf.d/usr-local-lib.conf RUN ldconfig RUN pip install --upgrade -v pip -i https://pypi.python.org/simple/ -RUN pip install subprocess32 lockfile sqlalchemy -i https://pypi.python.org/simple +RUN pip install subprocess32 lockfile SQLAlchemy==1.0.14 -i https://pypi.python.org/simple RUN pip install pyyaml RUN ln -s /usr/lib/libjsoncpp.so.0 /usr/lib/libjsoncpp.so.1
Could you give this a try?
This worked for me! The Dockerfile built succesfully but when i run the docker image using the command $ docker run lava_image
i got the following Warning:
WARNING: The requested image's platform (linux/386) does not match the detected host platform (linux/amd64) and no specific platform was requested
and the process ends.
I think that's a non-fatal warning (I'm pretty sure we're all using x86_64 hosts). Did you specify that you wanted the container to run bash or some other command? Otherwise I think it just exits.
Something like
docker run -it lava /bin/bash
will hopefully work
I think that's a non-fatal warning (I'm pretty sure we're all using x86_64 hosts). Did you specify that you wanted the container to run bash or some other command? Otherwise I think it just exits.
Something like
docker run -it lava /bin/bash
will hopefully work
OK thank you it worked! The docker image is a pre-defined environment to install lava or i can run lava already ? How can i run the suite test within the docker file ?
Hi, I have been trying to run it using the docker file within the directory but i got:
How can i fix it ? Thank you.