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

Fresh install broken in Py 3.8 docker #1377

Closed
dimaqq opened this issue Sep 14, 2019 · 8 comments
Closed

Fresh install broken in Py 3.8 docker #1377

dimaqq opened this issue Sep 14, 2019 · 8 comments

Comments

@dimaqq
Copy link
Contributor

dimaqq commented Sep 14, 2019

Maybe related to #553

> docker run -it --rm python:3.8.0b4-buster /bin/sh
# curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
Retrieving Poetry metadata

# Welcome to Poetry!

This will download and install the latest version of Poetry,
a dependency and package manager for Python.

It will add the `poetry` command to Poetry's bin directory, located at:

$HOME/.poetry/bin

This path will then be added to your `PATH` environment variable by
modifying the profile file located at:

$HOME/.profile

You can uninstall at any time with `poetry self:uninstall`,
or by executing this script with the --uninstall option,
and these changes will be reverted.

Installing version: 0.12.17
  - Downloading poetry-0.12.17-linux.tar.gz (8.37MB)

Poetry (0.12.17) is installed now. Great!

To get started you need Poetry's bin directory ($HOME/.poetry/bin) in your `PATH`
environment variable. Next time you log in this will be done
automatically.

To configure your current shell run `source $HOME/.poetry/env`

# $HOME/.poetry/bin/poetry
Traceback (most recent call last):
  File "/root/.poetry/bin/poetry", line 12, in <module>
    from poetry.console import main
  File "/root/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
    from .application import Application
  File "/root/.poetry/lib/poetry/console/application.py", line 6, in <module>
    from cleo import Application as BaseApplication
ModuleNotFoundError: No module named 'cleo'
#
@dimaqq
Copy link
Contributor Author

dimaqq commented Sep 14, 2019

Could it be that 3.8 is missing from this list?

# find / -name cleo
/root/.poetry/lib/poetry/_vendor/py3.4/cleo
/root/.poetry/lib/poetry/_vendor/py3.6/cleo
/root/.poetry/lib/poetry/_vendor/py3.7/cleo
/root/.poetry/lib/poetry/_vendor/py3.5/cleo
/root/.poetry/lib/poetry/_vendor/py2.7/cleo

@dmontagu
Copy link

dmontagu commented Sep 14, 2019

I wonder if this section is related:
https://github.com/sdispater/poetry/blob/cb8dc0d94e68042f120441b4e30d89c92598b40e/sonnet#L30

    PYTHON = {
        "2.7": "python2.7",
        "3.4": "python3.4",
        "3.5": "python3.5",
        "3.6": "python3.6",
        "3.7": "python3.7",
    }

@dmontagu
Copy link

dmontagu commented Sep 14, 2019

Could it be that 3.8 is missing from this list?

Indeed, running

cp -r /root/.poetry/lib/poetry/_vendor/py3.7 /root/.poetry/lib/poetry/_vendor/py3.8

right after the curl install command seems to get things working for me (in the python3.8 docker image you were using).

I don't know if there are any lurking incompatibilties between the 3.7 and 3.8 versions though.

@deepio
Copy link

deepio commented Oct 1, 2019

This doesn't only happen in docker, dimaqq it seems anything except those versions mentioned by dmontagu will have this issue. Maybe when main python becomes 3.8 on October 14th this issue will get looked at?

poetry install
Traceback (most recent call last):
  File "/home/travis/.poetry/bin/poetry", line 12, in <module>
    from poetry.console import main
  File "/home/travis/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
    from .application import Application
  File "/home/travis/.poetry/lib/poetry/console/application.py", line 6, in <module>
    from cleo import Application as BaseApplication
ModuleNotFoundError: No module named 'cleo'
The command "poetry install" failed and exited with 1 during .

@dimaqq dimaqq mentioned this issue Oct 2, 2019
2 tasks
@deepio
Copy link

deepio commented Oct 9, 2019

I think we can close this issue now. PR was accepted
#1437

Update: I still get the same error after the PR.

@Gr1N
Copy link
Contributor

Gr1N commented Oct 17, 2019

Got the same issue.

Poetry version 0.12.17, installed into fresh python:3.8.0-buster container using curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python.

@sdispater can you help us, please?

@sdispater
Copy link
Member

The full 0.12.17 release (with bundled dependencies) does not support Python 3.8 since the dependencies for it have not been bundled.

For Python 3.8, you might want to install Poetry with pip or try the latest 1.0.0b2 version.

I will see if I can make a 0.12.18 release, or even update the archives of the 0.12.17 with support for Python 3.8.

I will keep you updated.

Copy link

github-actions bot commented Mar 2, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants