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イメージのビルドができない #85

Open
sunmoonStern opened this issue Mar 19, 2021 · 3 comments · May be fixed by #86
Open

dockerイメージのビルドができない #85

sunmoonStern opened this issue Mar 19, 2021 · 3 comments · May be fixed by #86

Comments

@sunmoonStern
Copy link
Collaborator

  • 以下の通り
$ docker build -t wbap/oculomotor .
Sending build context to Docker daemon  7.112MB
Step 1/18 : FROM ubuntu:xenial
 ---> 8185511cd5ad
Step 2/18 : RUN apt-get update && apt-get install -y --no-install-recommends     build-essential software-properties-common cmake curl python3-dev     libgl1-mesa-dri libgl1-mesa-glx libglu1-mesa-dev xvfb x11-utils libasio-dev &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 14b17585c318
Step 3/18 : RUN apt-get update && apt-get install -y libsm6 libxext6 libxrender1 &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 4a12e4aff4f1
Step 4/18 : RUN if [ ! -e /usr/bin/python ]; then ln -sf /usr/bin/python3 /usr/bin/python; fi &&     curl -O https://bootstrap.pypa.io/get-pip.py &&     python get-pip.py &&     rm get-pip.py
 ---> Running in 8575a06f38f3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1882k  100 1882k    0     0  4687k      0 --:--:-- --:--:-- --:--:-- 4694k
ERROR: This script does not work on Python 3.5 The minimum supported Python version is 3.6. Please use https://bootstrap.pypa.io/pip/3.5/get-pip.py instead.
The command '/bin/sh -c if [ ! -e /usr/bin/python ]; then ln -sf /usr/bin/python3 /usr/bin/python; fi &&     curl -O https://bootstrap.pypa.io/get-pip.py &&     python get-pip.py &&     rm get-pip.py' returned a non-zero code: 1
@sunmoonStern
Copy link
Collaborator Author

原因は、たぶんbase image(ubuntu xenial: Ubuntu 16.04 LTS)にインストールされているpythonが3.5系で古く、サポート対象外になったため

@sunmoonStern
Copy link
Collaborator Author

sunmoonStern commented Mar 19, 2021

https://github.com/wbap/oculomotor/blob/master/Dockerfile#L14curl -O https://bootstrap.pypa.io/pip/3.5/get-pip.py && \のように変更するとimageのビルドはできるようになったけど ./helpers/interactive.shを実行時に以下のような画面が出る

スクリーンショット 2021-03-19 12 30 36

気になるのは、pyglet 1.5.15 requires Python 3.5 or newer.というけど、たぶんxenialにpython3-devを入れたときに入るのおはpython 3.5.1とかなのでなんでこんなエラーが出るのか謎。

@sunmoonStern
Copy link
Collaborator Author

sunmoonStern commented Mar 19, 2021

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

Successfully merging a pull request may close this issue.

1 participant