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 version 1.1.12 is still the version installed after upgrading to 1.2.0a2 #5046

Closed
3 tasks done
motin opened this issue Jan 15, 2022 · 3 comments · Fixed by #5049
Closed
3 tasks done

Poetry version 1.1.12 is still the version installed after upgrading to 1.2.0a2 #5046

motin opened this issue Jan 15, 2022 · 3 comments · Fixed by #5049
Assignees
Labels
kind/bug Something isn't working as expected

Comments

@motin
Copy link

motin commented Jan 15, 2022

  • I am on the latest Poetry version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

  • OS version and name:

  • Poetry version:

  • Link of a Gist with the contents of your pyproject.toml file: n/a

Issue

$ poetry self update --preview -vvv
Updating Poetry to 1.2.0a2

Updating dependencies
Resolving dependencies...
   1: fact: poetry-updater is 0.0.0
   1: derived: poetry-updater
   1: fact: poetry-updater depends on poetry (1.2.0a2)
   1: selecting poetry-updater (0.0.0)
   1: derived: poetry (==1.2.0a2)
   1: fact: poetry (1.2.0a2) depends on poetry-core (>=1.1.0a6,<2.0.0)
   1: fact: poetry (1.2.0a2) depends on cleo (>=1.0.0a4,<2.0.0)
   1: fact: poetry (1.2.0a2) depends on crashtest (>=0.3.0,<0.4.0)
   1: fact: poetry (1.2.0a2) depends on requests (>=2.18,<3.0)
   1: fact: poetry (1.2.0a2) depends on cachy (>=0.3.0,<0.4.0)
   1: fact: poetry (1.2.0a2) depends on requests-toolbelt (>=0.9.1,<0.10.0)
   1: fact: poetry (1.2.0a2) depends on cachecontrol (>=0.12.4,<0.13.0)
   1: fact: poetry (1.2.0a2) depends on pkginfo (>=1.5,<2.0)
   1: fact: poetry (1.2.0a2) depends on html5lib (>=1.0,<2.0)
   1: fact: poetry (1.2.0a2) depends on shellingham (>=1.1,<2.0)
   1: fact: poetry (1.2.0a2) depends on tomlkit (>=0.7.0,<1.0.0)
   1: fact: poetry (1.2.0a2) depends on pexpect (>=4.7.0,<5.0.0)
   1: fact: poetry (1.2.0a2) depends on packaging (>=20.4,<21.0)
   1: fact: poetry (1.2.0a2) depends on virtualenv (>=20.4.3,<20.4.5)
   1: fact: poetry (1.2.0a2) depends on keyring (>=21.2.0)
   1: fact: poetry (1.2.0a2) depends on entrypoints (>=0.3,<0.4)
   1: selecting poetry (1.2.0a2)
   1: derived: entrypoints (>=0.3,<0.4)
   1: derived: keyring (>=21.2.0)
   1: derived: virtualenv (>=20.4.3,<20.4.5)
   1: derived: packaging (>=20.4,<21.0)
   1: derived: pexpect (>=4.7.0,<5.0.0)
   1: derived: tomlkit (>=0.7.0,<1.0.0)
   1: derived: shellingham (>=1.1,<2.0)
   1: derived: html5lib (>=1.0,<2.0)
   1: derived: pkginfo (>=1.5,<2.0)
   1: derived: cachecontrol[filecache] (>=0.12.4,<0.13.0)
   1: derived: requests-toolbelt (>=0.9.1,<0.10.0)
   1: derived: cachy (>=0.3.0,<0.4.0)
   1: derived: requests (>=2.18,<3.0)
   1: derived: crashtest (>=0.3.0,<0.4.0)
   1: derived: cleo (>=1.0.0a4,<2.0.0)
   1: derived: poetry-core (>=1.1.0a6,<2.0.0)
   1: selecting entrypoints (0.3)
   1: fact: requests-toolbelt (0.9.1) depends on requests (>=2.0.1,<3.0.0)
   1: selecting requests-toolbelt (0.9.1)
   1: selecting cachy (0.3.0)
   1: fact: cleo (1.0.0a4) depends on pylev (>=1.3.0,<2.0.0)
   1: fact: cleo (1.0.0a4) depends on crashtest (>=0.3.1,<0.4.0)
   1: selecting cleo (1.0.0a4)
   1: derived: crashtest (>=0.3.1,<0.4.0)
   1: derived: pylev (>=1.3.0,<2.0.0)
   1: selecting crashtest (0.3.1)
   1: selecting poetry-core (1.1.0a6)
   1: fact: virtualenv (20.4.4) depends on appdirs (>=1.4.3,<2)
   1: fact: virtualenv (20.4.4) depends on distlib (>=0.3.1,<1)
   1: fact: virtualenv (20.4.4) depends on filelock (>=3.0.0,<4)
   1: fact: virtualenv (20.4.4) depends on six (>=1.9.0,<2)
   1: selecting virtualenv (20.4.4)
   1: derived: six (>=1.9.0,<2)
   1: derived: filelock (>=3.0.0,<4)
   1: derived: distlib (>=0.3.1,<1)
   1: derived: appdirs (>=1.4.3,<2)
   1: fact: pexpect (4.8.0) depends on ptyprocess (>=0.5)
   1: selecting pexpect (4.8.0)
   1: derived: ptyprocess (>=0.5)
   1: selecting pylev (1.4.0)
   1: selecting appdirs (1.4.4)
   1: fact: html5lib (1.1) depends on six (>=1.9)
   1: fact: html5lib (1.1) depends on webencodings (*)
   1: selecting html5lib (1.1)
   1: derived: webencodings
   1: selecting tomlkit (0.8.0)
   1: selecting distlib (0.3.4)
   1: selecting ptyprocess (0.7.0)
   1: fact: packaging (20.9) depends on pyparsing (>=2.0.2)
   1: selecting packaging (20.9)
   1: derived: pyparsing (>=2.0.2)
   1: selecting webencodings (0.5.1)
   1: fact: cachecontrol (0.12.10) depends on cachecontrol (0.12.10)
   1: fact: cachecontrol (0.12.10) depends on requests (*)
   1: fact: cachecontrol (0.12.10) depends on msgpack (>=0.5.2)
   1: fact: cachecontrol (0.12.10) depends on lockfile (>=0.9)
   1: selecting cachecontrol[filecache] (0.12.10)
   1: derived: lockfile (>=0.9)
   1: derived: msgpack (>=0.5.2)
   1: derived: cachecontrol (==0.12.10)
   1: selecting six (1.16.0)
   1: selecting pkginfo (1.8.2)
   1: selecting msgpack (1.0.3)
   1: selecting shellingham (1.4.0)
   1: fact: requests (2.27.1) depends on urllib3 (>=1.21.1,<1.27)
   1: fact: requests (2.27.1) depends on certifi (>=2017.4.17)
   1: fact: requests (2.27.1) depends on charset-normalizer (>=2.0.0,<2.1.0)
   1: fact: requests (2.27.1) depends on idna (>=2.5,<4)
   1: selecting requests (2.27.1)
   1: derived: idna (>=2.5,<4)
   1: derived: charset-normalizer (>=2.0.0,<2.1.0)
   1: derived: certifi (>=2017.4.17)
   1: derived: urllib3 (>=1.21.1,<1.27)
   1: selecting filelock (3.4.2)
   1: selecting certifi (2021.10.8)
   1: fact: keyring (23.5.0) depends on importlib-metadata (>=3.6)
   1: fact: keyring (23.5.0) depends on SecretStorage (>=3.2)
   1: fact: keyring (23.5.0) depends on jeepney (>=0.4.2)
   1: fact: keyring (23.5.0) depends on pywin32-ctypes (<0.1.0 || >0.1.0,<0.1.1 || >0.1.1)
   1: selecting keyring (23.5.0)
   1: derived: pywin32-ctypes (!=0.1.0,!=0.1.1)
   1: derived: jeepney (>=0.4.2)
   1: derived: SecretStorage (>=3.2)
   1: derived: importlib-metadata (>=3.6)
   1: selecting urllib3 (1.26.8)
   1: fact: importlib-metadata (4.10.0) depends on zipp (>=0.5)
   1: selecting importlib-metadata (4.10.0)
   1: derived: zipp (>=0.5)
   1: selecting zipp (3.7.0)
   1: selecting pyparsing (3.0.6)
   1: fact: cachecontrol (0.12.10) depends on requests (*)
   1: fact: cachecontrol (0.12.10) depends on msgpack (>=0.5.2)
   1: selecting cachecontrol (0.12.10)
   1: selecting pywin32-ctypes (0.2.0)
   1: fact: secretstorage (3.3.1) depends on cryptography (>=2.0)
   1: fact: secretstorage (3.3.1) depends on jeepney (>=0.6)
   1: selecting secretstorage (3.3.1)
   1: derived: jeepney (>=0.6)
   1: derived: cryptography (>=2.0)
   1: fact: cryptography (36.0.1) depends on cffi (>=1.12)
   1: selecting cryptography (36.0.1)
   1: derived: cffi (>=1.12)
   1: fact: cffi (1.15.0) depends on pycparser (*)
   1: selecting cffi (1.15.0)
   1: derived: pycparser
   1: selecting pycparser (2.21)
   1: selecting jeepney (0.7.1)
   1: selecting lockfile (0.12.2)
   1: selecting idna (3.3)
   1: selecting charset-normalizer (2.0.10)
   1: Version solving took 0.248 seconds.
   1: Tried 1 solutions.

Finding the necessary packages for the current system

Package operations: 0 installs, 0 updates, 0 removals


Updating the poetry script

Poetry (1.2.0a2) is installed now. Great!
$ poetry -V
Poetry version 1.1.12

And indeed:

$ which poetry
/Users/motin/.local/bin/poetry
$ ls -l /Users/motin/.local/bin/poetry
lrwxr-xr-x  1 motin  staff  65 Jan 15 10:30 /Users/motin/.local/bin/poetry -> /Users/motin/Library/Application Support/pypoetry/venv/bin/poetry
$ cat /Users/motin/Library/Application\ Support/pypoetry/venv/lib/python3.9/site-packages/poetry/__version__.py
__version__ = "1.1.12"

This differs from

__version__ = "1.2.0a2"

And I can't use 1.2.0a2 features:

$ poetry install

  RuntimeError

  The Poetry configuration is invalid:
    - Additional properties are not allowed ('group' was unexpected)
@motin motin added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jan 15, 2022
@motin motin changed the title Poetry reports version 1.1.12 being installed, after upgrading to 1.2.0a2 Poetry version 1.1.12 is still the version installed after upgrading to 1.2.0a2 Jan 15, 2022
@Miskho
Copy link

Miskho commented Jan 15, 2022

I have reproduced this and I am experiencing the same issue

@finswimmer
Copy link
Member

Thanks for reporting 👍 I can reproduce it as well. Looks like the update have problems choosing the right interpreter. The update doesn't run in Poetry's own venv. Instead it runs with the global interpreter.

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
kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants