Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build fails #131

Open
lukesdm opened this issue Jul 26, 2023 · 1 comment
Open

Docker build fails #131

lukesdm opened this issue Jul 26, 2023 · 1 comment

Comments

@lukesdm
Copy link

lukesdm commented Jul 26, 2023

Executing ./docker.sh /path/to/dataset fails whilst trying to build the Docker image.

This appears to be due to a dependency version issue.

 => ERROR [ 7/15] RUN pip3 install  scipy==0.19.1                   numpy==1.14.0                   torch==0.4.1                   opencv_python==3.4.0.12                   visp  0.5s 
------
 > [ 7/15] RUN pip3 install  scipy==0.19.1                   numpy==1.14.0                   torch==0.4.1                   opencv_python==3.4.0.12                   vispy==0.5.3      
             tensorflow==1.11.0                   PyYAML==3.13                    enum34==1.1.6                   matplotlib==3.0.3:
#10 0.429 Traceback (most recent call last):
#10 0.429   File "/usr/local/bin/pip3", line 7, in <module>
#10 0.429     from pip._internal.cli.main import main
#10 0.429   File "/usr/local/lib/python3.5/dist-packages/pip/_internal/cli/main.py", line 66
#10 0.429     sys.stderr.write(f"ERROR: {exc}")
#10 0.429                                    ^
#10 0.429 SyntaxError: invalid syntax
------
executor failed running [/bin/sh -c pip3 install  scipy==0.19.1                   numpy==1.14.0                   torch==0.4.1                   opencv_python==3.4.0.12
   vispy==0.5.3                   tensorflow==1.11.0                   PyYAML==3.13                    enum34==1.1.6                   matplotlib==3.0.3]: exit code: 1

The syntax error is caused by the package using a Python 3.6 feature whilst only Python 3.5 is installed.

@jbehley
Copy link
Member

jbehley commented Jul 27, 2023

thanks for letting us know.

hmmm, okay. maybe we have to bump the Ubuntu version of the docker container; or omit the pip install -U pip to avoid this.

have to look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants