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

poetry installで失敗する #4

Open
aktnk opened this issue Sep 18, 2022 · 1 comment
Open

poetry installで失敗する #4

aktnk opened this issue Sep 18, 2022 · 1 comment

Comments

@aktnk
Copy link

aktnk commented Sep 18, 2022

chapter5のpoetry install でエラーが発生しています。

エラーの詳細

windows 10のwsl2上のUbuntu20.04でChapter5のpoetry installを実行したところ、
下記のエラーが発生し先に進めません。対処方法がわかれば教えて下さい。

~/oreilly/RecommenderSystems/chapter5$ poetry install
Installing dependencies from lock file

Could not parse version constraint: <0.2.0appnope

尚、当方の環境は下記になります。

~/oreilly/RecommenderSystems/chapter5$ python -V
Python 3.7.13
~/oreilly/RecommenderSystems/chapter5$ poetry -V
Poetry (version 1.2.1)

(参考) また、docker環境でも試してみたところ、同じエラーが発生しています。

~/oreilly/RecommenderSystems/chapter5$ docker compose up -d
[+] Building 10.6s (10/10) FINISHED
 => [internal] load build definition from Dockerfile                                                   0.8s
 => => transferring dockerfile: 311B                                                                   0.0s
 => [internal] load .dockerignore                                                                      1.1s
 => => transferring context: 2B                                                                        0.0s
 => [internal] load metadata for docker.io/library/python:3.7.8                                        1.8s
 => [internal] load build context                                                                      0.5s
 => => transferring context: 184.12kB                                                                  0.0s
 => [1/6] FROM docker.io/library/python:3.7.8@sha256:6ca82c8d96a24523a71f40bb38f5682b18ca74a7a1958692  0.0s
 => CACHED [2/6] RUN apt-get update &&     apt-get upgrade -y &&     apt-get install -y --no-install-  0.0s
 => CACHED [3/6] RUN pip install --upgrade pip &&     pip install poetry                               0.0s
 => CACHED [4/6] WORKDIR /app                                                                          0.0s
 => CACHED [5/6] COPY pyproject.toml poetry.lock ./                                                    0.0s
 => ERROR [6/6] RUN poetry install                                                                     6.9s
------
 > [6/6] RUN poetry install:
#0 1.786 Creating virtualenv recommendersystems-9TtSrW0h-py3.7 in /root/.cache/pypoetry/virtualenvs
#0 6.091 Installing dependencies from lock file
#0 6.301
#0 6.301 Could not parse version constraint: <0.2.0appnope
------
failed to solve: executor failed running [/bin/sh -c poetry install]: exit code: 1
@masa3141
Copy link
Collaborator

エラーのご報告とプルリクエストありがとうございます!
エラーについてこちらでも確認いたします。

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