python-poetry / poetry

Python packaging and dependency management made easy
https://python-poetry.org
MIT License
31.72k stars 2.27k forks source link

Poetry's internal poetry.lock can get into a weird state when changing Python versions #9841

Open mtkennerly opened 1 day ago

mtkennerly commented 1 day ago

Description

I maintain a Poetry plugin, and I got a report (https://github.com/mtkennerly/poetry-dynamic-versioning/discussions/198) about issues installing it with Python 3.13. It seems that changing Python versions may result in strange behavior with Poetry's internal poetry.lock file. Specifically, when I would try to install the plugin, Poetry would downgrade some dependencies that weren't related to the plugin, and some of those downgrades would fail to install.

I had to delete %APPDATA%/pypoetry/poetry.lock in order to make the plugin installation work. I also found that, instead of deleting it, I could run poetry-py3.13 self lock, which would update the lock file, and then the plugin installation would work.

To reproduce:

Would it be possible for Poetry to detect that the Python version has changed and recommend resetting/updating the internal poetry.lock?

Workarounds

Poetry Installation Method

pipx

Operating System

Windows 11

Poetry Version

Poetry (version 1.8.4)

Poetry Configuration

cache-dir = "C:\\Users\\mtken\\AppData\\Local\\pypoetry\\Cache"
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
keyring.enabled = true
solver.lazy-wheel = true
virtualenvs.create = true
virtualenvs.in-project = true
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}\\virtualenvs"  # C:\Users\mtken\AppData\Local\pypoetry\Cache\virtualenvs
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = true

Python Sysconfig

Platform: "win-amd64"
Python version: "3.13"
Current installation scheme: "nt"

Paths:
        data = "C:\opt\python\3.13"
        include = "C:\opt\python\3.13\Include"
        platinclude = "C:\opt\python\3.13\Include"
        platlib = "C:\opt\python\3.13\Lib\site-packages"
        platstdlib = "C:\opt\python\3.13\Lib"
        purelib = "C:\opt\python\3.13\Lib\site-packages"
        scripts = "C:\opt\python\3.13\Scripts"
        stdlib = "C:\opt\python\3.13\Lib"

Variables:
        BINDIR = "C:\opt\python\3.13"
        BINLIBDEST = "C:\opt\python\3.13\Lib"
        EXE = ".exe"
        EXT_SUFFIX = ".cp313-win_amd64.pyd"
        INCLUDEPY = "C:\opt\python\3.13\Include"
        LDLIBRARY = "python313.dll"
        LIBDEST = "C:\opt\python\3.13\Lib"
        LIBDIR = "C:\opt\python\3.13\libs"
        LIBRARY = "python313.dll"
        Py_GIL_DISABLED = "0"
        SOABI = "cp313-win_amd64"
        TZPATH = ""
        VERSION = "313"
        VPATH = "..\.."
        abi_thread = ""
        abiflags = ""
        base = "C:\opt\python\3.13"
        exec_prefix = "C:\opt\python\3.13"
        implementation = "Python"
        implementation_lower = "python"
        installed_base = "C:\opt\python\3.13"
        installed_platbase = "C:\opt\python\3.13"
        platbase = "C:\opt\python\3.13"
        platlibdir = "DLLs"
        prefix = "C:\opt\python\3.13"
        projectbase = "C:\opt\python\3.13"
        py_version = "3.13.0"
        py_version_nodot = "313"
        py_version_nodot_plat = "313"
        py_version_short = "3.13"
        srcdir = "C:\opt\python\3.13"
        userbase = "C:\Users\mtken\AppData\Roaming\Python"

Example pyproject.toml

No response

Poetry Runtime Logs

The first time I run `poetry-py3.13 self add "poetry-dynamic-versioning[plugin]"`, the output is too long to attach here, so here's the output from rerunning it a second time:

$ poetry-py3.13 -vvv self add "poetry-dynamic-versioning[plugin]"
Loading configuration file C:\Users\mtken\AppData\Roaming\pypoetry\config.toml
Checking if keyring is available
[keyring:keyring.backend] Loading KWallet
[keyring:keyring.backend] Loading SecretService
[keyring:keyring.backend] Loading Windows
[win32ctypes:win32ctypes.core.ctypes] Loaded ctypes backend
[keyring:keyring.backend] Loading chainer
[keyring:keyring.backend] Loading libsecret
[keyring:keyring.backend] Loading macOS
Using keyring backend 'Windows WinVaultKeyring'
Creating new session for pypi.org
Source (PyPI): 53 packages found for poetry-dynamic-versioning *
Using version ^1.4.1 for poetry-dynamic-versioning

Updating dependencies
Resolving dependencies...
   1: fact: poetry-instance is 1.8.4
   1: derived: poetry-instance
   1: fact: poetry-instance depends on poetry (1.8.4)
   1: fact: poetry-instance depends on poetry-dynamic-versioning[plugin] (^1.4.1)
   1: selecting poetry-instance (1.8.4)
   1: derived: poetry-dynamic-versioning[plugin] (>=1.4.1,<2.0.0)
   1: derived: poetry (==1.8.4)
Checking if keyring is available
Using keyring backend 'Windows WinVaultKeyring'
Creating new session for pypi.org
Source (PyPI): 1 packages found for poetry-dynamic-versioning >=1.4.1,<2.0.0
Source (PyPI): 1 packages found for poetry 1.8.4
   1: fact: poetry-dynamic-versioning[plugin] (1.4.1) depends on poetry-dynamic-versioning (1.4.1)
   1: fact: poetry-dynamic-versioning[plugin] (1.4.1) depends on dunamai (>=1.21.0,<2.0.0)
   1: fact: poetry-dynamic-versioning[plugin] (1.4.1) depends on tomlkit (>=0.4)
   1: fact: poetry-dynamic-versioning[plugin] (1.4.1) depends on jinja2 (>=2.11.1,<4)
   1: fact: poetry-dynamic-versioning[plugin] (1.4.1) depends on poetry (>=1.2.0,<2.0.0)
   1: selecting poetry-dynamic-versioning[plugin] (1.4.1)
   1: derived: jinja2 (>=2.11.1,<4)
   1: derived: tomlkit (>=0.4)
   1: derived: dunamai (>=1.21.0,<2.0.0)
   1: derived: poetry-dynamic-versioning (==1.4.1)
Source (PyPI): 12 packages found for jinja2 >=2.11.1,<4
Source (PyPI): 4 packages found for dunamai >=1.21.0,<2.0.0
   1: fact: poetry (1.8.4) depends on build (>=1.0.3,<2.0.0)
   1: fact: poetry (1.8.4) depends on cachecontrol[filecache] (>=0.14.0,<0.15.0)
   1: fact: poetry (1.8.4) depends on cleo (>=2.1.0,<3.0.0)
   1: fact: poetry (1.8.4) depends on crashtest (>=0.4.1,<0.5.0)
   1: fact: poetry (1.8.4) depends on dulwich (>=0.21.2,<0.22.0)
   1: fact: poetry (1.8.4) depends on fastjsonschema (>=2.18.0,<3.0.0)
   1: fact: poetry (1.8.4) depends on installer (>=0.7.0,<0.8.0)
   1: fact: poetry (1.8.4) depends on keyring (>=24.0.0,<25.0.0)
   1: fact: poetry (1.8.4) depends on packaging (>=23.1)
   1: fact: poetry (1.8.4) depends on pexpect (>=4.7.0,<5.0.0)
   1: fact: poetry (1.8.4) depends on pkginfo (>=1.10,<2.0)
   1: fact: poetry (1.8.4) depends on platformdirs (>=3.0.0,<5)
   1: fact: poetry (1.8.4) depends on poetry-core (1.9.1)
   1: fact: poetry (1.8.4) depends on poetry-plugin-export (>=1.6.0,<2.0.0)
   1: fact: poetry (1.8.4) depends on pyproject-hooks (>=1.0.0,<2.0.0)
   1: fact: poetry (1.8.4) depends on requests (>=2.26,<3.0)
   1: fact: poetry (1.8.4) depends on requests-toolbelt (>=1.0.0,<2.0.0)
   1: fact: poetry (1.8.4) depends on shellingham (>=1.5,<2.0)
   1: fact: poetry (1.8.4) depends on tomlkit (>=0.11.4,<1.0.0)
   1: fact: poetry (1.8.4) depends on trove-classifiers (>=2022.5.19)
   1: fact: poetry (1.8.4) depends on virtualenv (>=20.26.6,<21.0.0)
   1: fact: poetry (1.8.4) depends on xattr (>=1.0.0,<2.0.0)
   1: selecting poetry (1.8.4)
   1: derived: xattr (>=1.0.0,<2.0.0)
   1: derived: virtualenv (>=20.26.6,<21.0.0)
   1: derived: trove-classifiers (>=2022.5.19)
   1: derived: tomlkit (>=0.11.4,<1.0.0)
   1: derived: shellingham (>=1.5,<2.0)
   1: derived: requests-toolbelt (>=1.0.0,<2.0.0)
   1: derived: requests (>=2.26,<3.0)
   1: derived: pyproject-hooks (>=1.0.0,<2.0.0)
   1: derived: poetry-plugin-export (>=1.6.0,<2.0.0)
   1: derived: poetry-core (==1.9.1)
   1: derived: platformdirs (>=3.0.0,<5)
   1: derived: pkginfo (>=1.10,<2.0)
   1: derived: pexpect (>=4.7.0,<5.0.0)
   1: derived: packaging (>=23.1)
   1: derived: keyring (>=24.0.0,<25.0.0)
   1: derived: installer (>=0.7.0,<0.8.0)
   1: derived: fastjsonschema (>=2.18.0,<3.0.0)
   1: derived: dulwich (>=0.21.2,<0.22.0)
   1: derived: crashtest (>=0.4.1,<0.5.0)
   1: derived: cleo (>=2.1.0,<3.0.0)
   1: derived: cachecontrol[filecache] (>=0.14.0,<0.15.0)
   1: derived: build (>=1.0.3,<2.0.0)
Source (PyPI): 3 packages found for virtualenv >=20.26.6,<21.0.0
Source (PyPI): 1 packages found for poetry-core 1.9.1
   1: selecting poetry-core (1.9.1)
   1: selecting tomlkit (0.12.3)
   1: selecting trove-classifiers (2023.11.14)
   1: selecting shellingham (1.5.4)
   1: fact: requests-toolbelt (1.0.0) depends on requests (>=2.0.1,<3.0.0)
   1: selecting requests-toolbelt (1.0.0)
   1: fact: requests (2.31.0) depends on charset-normalizer (>=2,<4)
   1: fact: requests (2.31.0) depends on idna (>=2.5,<4)
   1: fact: requests (2.31.0) depends on urllib3 (>=1.21.1,<3)
   1: fact: requests (2.31.0) depends on certifi (>=2017.4.17)
   1: selecting requests (2.31.0)
   1: derived: certifi (>=2017.4.17)
   1: derived: urllib3 (>=1.21.1,<3)
   1: derived: idna (>=2.5,<4)
   1: derived: charset-normalizer (>=2,<4)
   1: selecting pyproject-hooks (1.0.0)
   1: fact: poetry-plugin-export (1.8.0) depends on poetry (>=1.8.0,<3.0.0)
   1: fact: poetry-plugin-export (1.8.0) depends on poetry-core (>=1.7.0,<3.0.0)
   1: selecting poetry-plugin-export (1.8.0)
   1: selecting platformdirs (3.11.0)
   1: selecting pkginfo (1.11.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 packaging (23.2)
   1: fact: keyring (24.3.1) depends on jaraco.classes (*)
   1: fact: keyring (24.3.1) depends on SecretStorage (>=3.2)
   1: fact: keyring (24.3.1) depends on jeepney (>=0.4.2)
   1: fact: keyring (24.3.1) depends on pywin32-ctypes (>=0.2.0)
   1: selecting keyring (24.3.1)
   1: derived: pywin32-ctypes (>=0.2.0)
   1: derived: jeepney (>=0.4.2)
   1: derived: SecretStorage (>=3.2)
   1: derived: jaraco.classes
   1: selecting installer (0.7.0)
   1: selecting fastjsonschema (2.20.0)
   1: fact: dulwich (0.21.6) depends on urllib3 (>=1.25)
   1: selecting dulwich (0.21.6)
   1: derived: urllib3 (>=1.25)
   1: selecting crashtest (0.4.1)
   1: fact: cleo (2.1.0) depends on crashtest (>=0.4.1,<0.5.0)
   1: fact: cleo (2.1.0) depends on rapidfuzz (>=3.0.0,<4.0.0)
   1: selecting cleo (2.1.0)
   1: derived: rapidfuzz (>=3.0.0,<4.0.0)
   1: fact: cachecontrol[filecache] (0.14.0) depends on cachecontrol (0.14.0)
   1: fact: cachecontrol[filecache] (0.14.0) depends on requests (>=2.16.0)
   1: fact: cachecontrol[filecache] (0.14.0) depends on msgpack (>=0.5.2,<2.0.0)
   1: fact: cachecontrol[filecache] (0.14.0) depends on filelock (>=3.8.0)
   1: selecting cachecontrol[filecache] (0.14.0)
   1: derived: filelock (>=3.8.0)
   1: derived: msgpack (>=0.5.2,<2.0.0)
   1: derived: cachecontrol (==0.14.0)
   1: fact: build (1.2.2.post1) depends on packaging (>=19.1)
   1: fact: build (1.2.2.post1) depends on pyproject_hooks (*)
   1: fact: build (1.2.2.post1) depends on colorama (*)
   1: selecting build (1.2.2.post1)
   1: derived: colorama
   1: selecting certifi (2023.11.17)
   1: selecting urllib3 (1.26.18)
   1: selecting idna (3.4)
   1: selecting charset-normalizer (3.3.2)
   1: selecting ptyprocess (0.7.0)
   1: fact: jaraco-classes (3.3.0) depends on more-itertools (*)
   1: selecting jaraco-classes (3.3.0)
   1: derived: more-itertools
   1: selecting rapidfuzz (3.5.2)
   1: selecting msgpack (1.0.7)
   1: selecting more-itertools (10.1.0)
   1: fact: jinja2 (3.1.4) depends on MarkupSafe (>=2.0)
   1: selecting jinja2 (3.1.4)
   1: derived: MarkupSafe (>=2.0)
Source (PyPI): 11 packages found for markupsafe >=2.0
   1: selecting markupsafe (3.0.2)
   1: fact: dunamai (1.22.0) depends on packaging (>=20.9)
   1: selecting dunamai (1.22.0)
   1: fact: virtualenv (20.27.1) depends on distlib (>=0.3.7,<1)
   1: fact: virtualenv (20.27.1) depends on filelock (>=3.12.2,<4)
   1: fact: virtualenv (20.27.1) depends on platformdirs (>=3.9.1,<5)
   1: selecting virtualenv (20.27.1)
   1: derived: filelock (>=3.12.2,<4)
   1: derived: distlib (>=0.3.7,<1)
   1: selecting distlib (0.3.7)
   1: fact: poetry-dynamic-versioning (1.4.1) depends on dunamai (>=1.21.0,<2.0.0)
   1: fact: poetry-dynamic-versioning (1.4.1) depends on tomlkit (>=0.4)
   1: fact: poetry-dynamic-versioning (1.4.1) depends on jinja2 (>=2.11.1,<4)
   1: selecting poetry-dynamic-versioning (1.4.1)
   1: fact: xattr (1.1.0) depends on cffi (>=1.16.0)
   1: selecting xattr (1.1.0)
   1: derived: cffi (>=1.16.0)
   1: fact: cffi (1.16.0) depends on pycparser (*)
   1: selecting cffi (1.16.0)
   1: derived: pycparser
   1: selecting pycparser (2.21)
   1: selecting pywin32-ctypes (0.2.2)
   1: selecting jeepney (0.8.0)
   1: fact: secretstorage (3.3.3) depends on cryptography (>=2.0)
   1: fact: secretstorage (3.3.3) depends on jeepney (>=0.6)
   1: selecting secretstorage (3.3.3)
   1: derived: cryptography (>=2.0)
   1: fact: cryptography (41.0.5) depends on cffi (>=1.12)
   1: selecting cryptography (41.0.5)
   1: selecting filelock (3.13.1)
   1: fact: cachecontrol (0.14.0) depends on requests (>=2.16.0)
   1: fact: cachecontrol (0.14.0) depends on msgpack (>=0.5.2,<2.0.0)
   1: selecting cachecontrol (0.14.0)
   1: selecting colorama (0.4.6)
   1: Version solving took 0.137 seconds.
   1: Tried 1 solutions.

Finding the necessary packages for the current system
Source (PyPI): 1 packages found for poetry-dynamic-versioning >=1.4.1,<2.0.0
Source (PyPI): 1 packages found for poetry 1.8.4
Source (PyPI): 1 packages found for jinja2 >=2.11.1,<4
Source (PyPI): 1 packages found for dunamai >=1.21.0,<2.0.0
Source (PyPI): 1 packages found for virtualenv >=20.26.6,<21.0.0
Source (PyPI): 1 packages found for poetry-core 1.9.1
Source (PyPI): 1 packages found for markupsafe >=2.0

Package operations: 4 installs, 6 updates, 0 removals, 29 skipped

  - Downgrading msgpack (1.1.0 -> 1.0.7): Pending...
Skipping wheel msgpack-1.0.7-cp310-cp310-macosx_10_9_universal2.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp310-cp310-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp310-cp310-macosx_11_0_arm64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp310-cp310-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp310-cp310-musllinux_1_1_i686.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp310-cp310-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp310-cp310-win32.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp310-cp310-win_amd64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp311-cp311-macosx_10_9_universal2.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp311-cp311-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp311-cp311-macosx_11_0_arm64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp311-cp311-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp311-cp311-musllinux_1_1_i686.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp311-cp311-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp311-cp311-win32.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp311-cp311-win_amd64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp312-cp312-macosx_10_9_universal2.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp312-cp312-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp312-cp312-macosx_11_0_arm64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp312-cp312-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp312-cp312-musllinux_1_1_i686.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp312-cp312-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp312-cp312-win32.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp312-cp312-win_amd64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp38-cp38-macosx_10_9_universal2.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp38-cp38-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp38-cp38-macosx_11_0_arm64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp38-cp38-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp38-cp38-musllinux_1_1_i686.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp38-cp38-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp38-cp38-win32.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp38-cp38-win_amd64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp39-cp39-macosx_10_9_universal2.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp39-cp39-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp39-cp39-macosx_11_0_arm64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp39-cp39-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp39-cp39-musllinux_1_1_i686.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp39-cp39-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp39-cp39-win32.whl as this is not supported by the current environment
Skipping wheel msgpack-1.0.7-cp39-cp39-win_amd64.whl as this is not supported by the current environment
  - Downgrading msgpack (1.1.0 -> 1.0.7): Preparing...
[virtualenv] find interpreter for spec PythonSpec(path=C:/Users/mtken/.local/pipx/venvs/poetry-py3-13/Scripts/python.exe)
[virtualenv] filesystem is not case-sensitive
[filelock:filelock] Attempting to acquire lock 2159315594816 on C:\Users\mtken\AppData\Local\pypa\virtualenv\py_info\1\995a031e2708a50514ce80bcbec1932c64c97d0505e6a04a04eb5ba1d6864b65.lock
[filelock:filelock] Lock 2159315594816 acquired on C:\Users\mtken\AppData\Local\pypa\virtualenv\py_info\1\995a031e2708a50514ce80bcbec1932c64c97d0505e6a04a04eb5ba1d6864b65.lock
[virtualenv] got python info of %s from (WindowsPath('C:/opt/python/3.13/python.exe'), WindowsPath('C:/Users/mtken/AppData/Local/pypa/virtualenv/py_info/1/995a031e2708a50514ce80bcbec1932c64c97d0505e6a04a04eb5ba1d6864b65.json'))
[filelock:filelock] Attempting to release lock 2159315594816 on C:\Users\mtken\AppData\Local\pypa\virtualenv\py_info\1\995a031e2708a50514ce80bcbec1932c64c97d0505e6a04a04eb5ba1d6864b65.lock
[filelock:filelock] Lock 2159315594816 released on C:\Users\mtken\AppData\Local\pypa\virtualenv\py_info\1\995a031e2708a50514ce80bcbec1932c64c97d0505e6a04a04eb5ba1d6864b65.lock
[virtualenv] proposed PythonInfo(spec=CPython3.13.0.final.0-64, system=C:\opt\python\3.13\python.exe, exe=C:\Users\mtken\.local\pipx\venvs\poetry-py3-13\Scripts\python.exe, platform=win32, version='3.13.0 (tags/v3.13.0:60403a5, Oct  7 2024, 09:38:07) [MSC v.1941 64 bit (AMD64)]', encoding_fs_io=utf-8-cp1252)
[virtualenv] accepted PythonInfo(spec=CPython3.13.0.final.0-64, system=C:\opt\python\3.13\python.exe, exe=C:\Users\mtken\.local\pipx\venvs\poetry-py3-13\Scripts\python.exe, platform=win32, version='3.13.0 (tags/v3.13.0:60403a5, Oct  7 2024, 09:38:07) [MSC v.1941 64 bit (AMD64)]', encoding_fs_io=utf-8-cp1252)
[virtualenv] symlink on filesystem does not work
[virtualenv] create virtual environment via CPython3Windows(dest=C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv, clear=False, no_vcs_ignore=False, global=False)
[virtualenv] create folder C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Lib\site-packages
[virtualenv] create folder C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts
[virtualenv] write C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\pyvenv.cfg
[virtualenv]    home = C:\opt\python\3.13
[virtualenv]    implementation = CPython
[virtualenv]    version_info = 3.13.0.final.0
[virtualenv]    virtualenv = 20.27.1
[virtualenv]    include-system-site-packages = false
[virtualenv]    base-prefix = C:\opt\python\3.13
[virtualenv]    base-exec-prefix = C:\opt\python\3.13
[virtualenv]    base-executable = C:\opt\python\3.13\python.exe
[virtualenv] copy C:\opt\python\3.13\python.exe to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\python.exe
[virtualenv] copy C:\opt\python\3.13\pythonw.exe to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\pythonw.exe
[virtualenv] copy C:\opt\python\3.13\python3.dll to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\python3.dll
[virtualenv] copy C:\opt\python\3.13\python313.dll to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\python313.dll
[virtualenv] copy C:\opt\python\3.13\vcruntime140.dll to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\vcruntime140.dll
[virtualenv] copy C:\opt\python\3.13\vcruntime140_1.dll to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\vcruntime140_1.dll
[virtualenv] copy C:\opt\python\3.13\DLLs\libcrypto-3.dll to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\libcrypto-3.dll
[virtualenv] copy C:\opt\python\3.13\DLLs\libffi-8.dll to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\libffi-8.dll
[virtualenv] copy C:\opt\python\3.13\DLLs\libssl-3.dll to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\libssl-3.dll
[virtualenv] copy C:\opt\python\3.13\DLLs\pyexpat.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\pyexpat.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\select.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\select.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\sqlite3.dll to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\sqlite3.dll
[virtualenv] copy C:\opt\python\3.13\DLLs\tcl86t.dll to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\tcl86t.dll
[virtualenv] copy C:\opt\python\3.13\DLLs\tk86t.dll to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\tk86t.dll
[virtualenv] copy C:\opt\python\3.13\DLLs\unicodedata.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\unicodedata.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\winsound.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\winsound.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\zlib1.dll to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\zlib1.dll
[virtualenv] copy C:\opt\python\3.13\DLLs\_asyncio.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_asyncio.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_bz2.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_bz2.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_ctypes.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_ctypes.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_ctypes_test.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_ctypes_test.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_decimal.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_decimal.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_elementtree.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_elementtree.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_hashlib.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_hashlib.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_lzma.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_lzma.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_multiprocessing.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_multiprocessing.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_overlapped.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_overlapped.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_queue.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_queue.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_socket.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_socket.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_sqlite3.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_sqlite3.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_ssl.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_ssl.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_testbuffer.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_testbuffer.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_testcapi.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_testcapi.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_testclinic.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_testclinic.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_testclinic_limited.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_testclinic_limited.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_testconsole.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_testconsole.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_testimportmultiple.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_testimportmultiple.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_testinternalcapi.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_testinternalcapi.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_testlimitedcapi.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_testlimitedcapi.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_testmultiphase.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_testmultiphase.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_testsinglephase.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_testsinglephase.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_tkinter.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_tkinter.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_uuid.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_uuid.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_wmi.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_wmi.pyd
[virtualenv] copy C:\opt\python\3.13\DLLs\_zoneinfo.pyd to C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\_zoneinfo.pyd
[virtualenv] create virtualenv import hook file C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Lib\site-packages\_virtualenv.pth
[virtualenv] create C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Lib\site-packages\_virtualenv.py
[virtualenv] ============================== target debug ==============================
[virtualenv] debug via 'C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\Scripts\python.exe' 'C:\Users\mtken\.local\pipx\venvs\poetry-py3-13\Lib\site-packages\virtualenv\create\debug.py'
[virtualenv] {
[virtualenv]   "sys": {
[virtualenv]     "executable": "C:\\Users\\mtken\\AppData\\Local\\Temp\\tmpn7i521qh\\.venv\\Scripts\\python.exe",
[virtualenv]     "_base_executable": "C:\\opt\\python\\3.13\\python.exe",
[virtualenv]     "prefix": "C:\\Users\\mtken\\AppData\\Local\\Temp\\tmpn7i521qh\\.venv",
[virtualenv]     "base_prefix": "C:\\opt\\python\\3.13",
[virtualenv]     "real_prefix": null,
[virtualenv]     "exec_prefix": "C:\\Users\\mtken\\AppData\\Local\\Temp\\tmpn7i521qh\\.venv",
[virtualenv]     "base_exec_prefix": "C:\\opt\\python\\3.13",
[virtualenv]     "path": [
[virtualenv]       "C:\\Users\\mtken\\AppData\\Local\\Temp\\tmpn7i521qh\\.venv\\Scripts\\python313.zip",
[virtualenv]       "C:\\opt\\python\\3.13\\DLLs",
[virtualenv]       "C:\\opt\\python\\3.13\\Lib",
[virtualenv]       "C:\\opt\\python\\3.13",
[virtualenv]       "C:\\Users\\mtken\\AppData\\Local\\Temp\\tmpn7i521qh\\.venv",
[virtualenv]       "C:\\Users\\mtken\\AppData\\Local\\Temp\\tmpn7i521qh\\.venv\\Lib\\site-packages"
[virtualenv]     ],
[virtualenv]     "meta_path": [
[virtualenv]       "<class '_virtualenv._Finder'>",
[virtualenv]       "<class '_frozen_importlib.BuiltinImporter'>",
[virtualenv]       "<class '_frozen_importlib.FrozenImporter'>",
[virtualenv]       "<class '_frozen_importlib_external.PathFinder'>"
[virtualenv]     ],
[virtualenv]     "fs_encoding": "utf-8",
[virtualenv]     "io_encoding": "cp1252"
[virtualenv]   },
[virtualenv]   "version": "3.13.0 (tags/v3.13.0:60403a5, Oct  7 2024, 09:38:07) [MSC v.1941 64 bit (AMD64)]",
[virtualenv]   "makefile_filename": "C:\\opt\\python\\3.13\\Lib\\config\\Makefile",
[virtualenv]   "os": "<module 'os' (frozen)>",
[virtualenv]   "site": "<module 'site' (frozen)>",
[virtualenv]   "datetime": "<module 'datetime' from 'C:\\\\opt\\\\python\\\\3.13\\\\Lib\\\\datetime.py'>",
[virtualenv]   "math": "<module 'math' (built-in)>",
[virtualenv]   "json": "<module 'json' from 'C:\\\\opt\\\\python\\\\3.13\\\\Lib\\\\json\\\\__init__.py'>"
[virtualenv] }
[virtualenv] add activators for Bash, Batch, Fish, Nushell, PowerShell, Python
[virtualenv] write C:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\pyvenv.cfg
[virtualenv]    home = C:\opt\python\3.13
[virtualenv]    implementation = CPython
[virtualenv]    version_info = 3.13.0.final.0
[virtualenv]    virtualenv = 20.27.1
[virtualenv]    include-system-site-packages = false
[virtualenv]    base-prefix = C:\opt\python\3.13
[virtualenv]    base-exec-prefix = C:\opt\python\3.13
[virtualenv]    base-executable = C:\opt\python\3.13\python.exe
Source (PyPI): 12 packages found for cython >=3.0.0,<3.1.0
Source (PyPI): 299 packages found for setuptools >=35.0.2
Source (PyPI): 1 packages found for cython >=3.0.0,<3.1.0
Source (PyPI): 1 packages found for setuptools >=35.0.2
Skipping wheel Cython-3.0.11-cp310-cp310-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp310-cp310-musllinux_1_2_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp310-cp310-musllinux_1_2_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp310-cp310-win32.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp310-cp310-win_amd64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp311-cp311-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp311-cp311-musllinux_1_2_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp311-cp311-musllinux_1_2_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp311-cp311-win32.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp311-cp311-win_amd64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp312-cp312-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp312-cp312-musllinux_1_2_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp312-cp312-musllinux_1_2_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp312-cp312-win32.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp312-cp312-win_amd64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp313-cp313-macosx_10_13_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp313-cp313-musllinux_1_2_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp313-cp313-musllinux_1_2_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp313-cp313-win32.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp36-cp36m-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp36-cp36m-musllinux_1_2_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp36-cp36m-musllinux_1_2_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp36-cp36m-win32.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp36-cp36m-win_amd64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp37-cp37m-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp37-cp37m-musllinux_1_2_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp37-cp37m-musllinux_1_2_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp37-cp37m-win32.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp37-cp37m-win_amd64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp38-cp38-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp38-cp38-musllinux_1_2_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp38-cp38-musllinux_1_2_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp38-cp38-win32.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp38-cp38-win_amd64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp39-cp39-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp39-cp39-musllinux_1_2_aarch64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp39-cp39-musllinux_1_2_x86_64.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp39-cp39-win32.whl as this is not supported by the current environment
Skipping wheel Cython-3.0.11-cp39-cp39-win_amd64.whl as this is not supported by the current environment
[build:build] Getting build dependencies for wheel...
Source (PyPI): 12 packages found for cython >=3.0.0,<3.1.0
Source (PyPI): 299 packages found for setuptools >=35.0.2
Source (PyPI): 1 packages found for cython >=3.0.0,<3.1.0
Source (PyPI): 1 packages found for setuptools >=35.0.2
[build:build] Building wheel...
  - Downgrading msgpack (1.1.0 -> 1.0.7): Failed

  Stack trace:

  9  ~\.local\pipx\venvs\poetry-py3-13\Lib\site-packages\poetry\installation\executor.py:285 in _execute_operation
      283│
      284│             try:
    → 285│                 result = self._do_execute_operation(operation)
      286│             except EnvCommandError as e:
      287│                 if e.e.returncode == -2:

  8  ~\.local\pipx\venvs\poetry-py3-13\Lib\site-packages\poetry\installation\executor.py:395 in _do_execute_operation
      393│             return 0
      394│
    → 395│         result: int = getattr(self, f"_execute_{method}")(operation)
      396│
      397│         if result != 0:

  7  ~\.local\pipx\venvs\poetry-py3-13\Lib\site-packages\poetry\installation\executor.py:527 in _execute_update
      525│
      526│     def _execute_update(self, operation: Install | Update) -> int:
    → 527│         status_code = self._update(operation)
      528│
      529│         self._save_url_reference(operation)

  6  ~\.local\pipx\venvs\poetry-py3-13\Lib\site-packages\poetry\installation\executor.py:586 in _update
      584│
      585│     def _update(self, operation: Install | Update) -> int:
    → 586│         return self._install(operation)
      587│
      588│     def _remove(self, package: Package) -> int:

  5  ~\.local\pipx\venvs\poetry-py3-13\Lib\site-packages\poetry\installation\executor.py:558 in _install
      556│             archive = self._download_link(operation, Link(package.source_url))
      557│         else:
    → 558│             archive = self._download(operation)
      559│
      560│         operation_message = self.get_operation_message(operation)

  4  ~\.local\pipx\venvs\poetry-py3-13\Lib\site-packages\poetry\installation\executor.py:750 in _download
      748│             self._yanked_warnings.append(message)
      749│
    → 750│         return self._download_link(operation, link)
      751│
      752│     def _download_link(self, operation: Install | Update, link: Link) -> Path:

  3  ~\.local\pipx\venvs\poetry-py3-13\Lib\site-packages\poetry\installation\executor.py:785 in _download_link
      783│             self._write(operation, message)
      784│
    → 785│             archive = self._chef.prepare(archive, output_dir=original_archive.parent)
      786│
      787│         # Use the original archive to provide the correct hash.

  2  ~\.local\pipx\venvs\poetry-py3-13\Lib\site-packages\poetry\installation\chef.py:123 in prepare
      121│             return self._prepare(archive, destination=destination, editable=editable)
      122│
    → 123│         return self._prepare_sdist(archive, destination=output_dir)
      124│
      125│     def _prepare(

  1  ~\.local\pipx\venvs\poetry-py3-13\Lib\site-packages\poetry\installation\chef.py:194 in _prepare_sdist
      192│             destination.mkdir(parents=True, exist_ok=True)
      193│
    → 194│             return self._prepare(
      195│                 sdist_dir,
      196│                 destination,

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel

  running bdist_wheel
  running build
  running build_py
  creating build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\exceptions.py -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\ext.py -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\fallback.py -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\__init__.py -> build\lib.win-amd64-cpython-313\msgpack
  running egg_info
  writing msgpack.egg-info\PKG-INFO
  writing dependency_links to msgpack.egg-info\dependency_links.txt
  writing top-level names to msgpack.egg-info\top_level.txt
  reading manifest file 'msgpack.egg-info\SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching '*.c' under directory 'msgpack'
  adding license file 'COPYING'
  writing manifest file 'msgpack.egg-info\SOURCES.txt'
  copying msgpack\_cmsgpack.cpp -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\_cmsgpack.pyx -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\_packer.pyx -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\_unpacker.pyx -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\buff_converter.h -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\pack.h -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\pack_template.h -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\sysdep.h -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\unpack.h -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\unpack_define.h -> build\lib.win-amd64-cpython-313\msgpack
  copying msgpack\unpack_template.h -> build\lib.win-amd64-cpython-313\msgpack
  running build_ext
  building 'msgpack._cmsgpack' extension
  creating build\temp.win-amd64-cpython-313\Release\msgpack
  "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -D__LITTLE_ENDIAN__=1 -I. -IC:\Users\mtken\AppData\Local\Temp\tmpn7i521qh\.venv\include -IC:\opt\python\3.13\include -IC:\opt\python\3.13\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.2\include\um" /EHsc /Tpmsgpack/_cmsgpack.cpp /Fobuild\temp.win-amd64-cpython-313\Release\msgpack/_cmsgpack.obj
  _cmsgpack.cpp
  C:\Users\mtken\AppData\Local\Temp\tmpmqzrvm1z\msgpack-1.0.7\msgpack\pack_template.h(752): warning C4267: '=': conversion from 'size_t' to 'unsigned char', possible loss of data
  C:\Users\mtken\AppData\Local\Temp\tmpmqzrvm1z\msgpack-1.0.7\msgpack\unpack.h(352): warning C4244: 'argument': conversion from 'int64_t' to 'int', possible loss of data
  msgpack/_cmsgpack.cpp(1326): warning C4996: 'Py_UNICODE': deprecated in 3.13
  msgpack/_cmsgpack.cpp(1328): warning C4996: 'Py_UNICODE': deprecated in 3.13
  msgpack/_cmsgpack.cpp(8238): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
  msgpack/_cmsgpack.cpp(8415): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
  msgpack/_cmsgpack.cpp(8625): warning C4244: 'argument': conversion from 'long' to 'char', possible loss of data
  msgpack/_cmsgpack.cpp(8775): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
  msgpack/_cmsgpack.cpp(10073): warning C4244: 'argument': conversion from '__int64' to 'unsigned int', possible loss of data
  msgpack/_cmsgpack.cpp(10358): warning C4244: 'argument': conversion from '__int64' to 'unsigned int', possible loss of data
  msgpack/_cmsgpack.cpp(10625): warning C4244: 'argument': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
  msgpack/_cmsgpack.cpp(20770): warning C4551: function call missing argument list
  msgpack/_cmsgpack.cpp(23073): error C2660: '_PyLong_AsByteArray': function does not take 5 arguments
  C:\opt\python\3.13\include\cpython/longobject.h(111): note: see declaration of '_PyLong_AsByteArray'
  msgpack/_cmsgpack.cpp(23346): error C2660: '_PyLong_AsByteArray': function does not take 5 arguments
  C:\opt\python\3.13\include\cpython/longobject.h(111): note: see declaration of '_PyLong_AsByteArray'
  msgpack/_cmsgpack.cpp(23681): error C2660: '_PyLong_AsByteArray': function does not take 5 arguments
  C:\opt\python\3.13\include\cpython/longobject.h(111): note: see declaration of '_PyLong_AsByteArray'
  msgpack/_cmsgpack.cpp(23954): error C2660: '_PyLong_AsByteArray': function does not take 5 arguments
  C:\opt\python\3.13\include\cpython/longobject.h(111): note: see declaration of '_PyLong_AsByteArray'
  msgpack/_cmsgpack.cpp(24227): error C2660: '_PyLong_AsByteArray': function does not take 5 arguments
  C:\opt\python\3.13\include\cpython/longobject.h(111): note: see declaration of '_PyLong_AsByteArray'
  msgpack/_cmsgpack.cpp(24500): error C2660: '_PyLong_AsByteArray': function does not take 5 arguments
  C:\opt\python\3.13\include\cpython/longobject.h(111): note: see declaration of '_PyLong_AsByteArray'
  error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

  at ~\.local\pipx\venvs\poetry-py3-13\Lib\site-packages\poetry\installation\chef.py:164 in _prepare
      160│
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│
      163│             if error is not None:
    → 164│                 raise error from None
      165│
      166│             return path
      167│
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with msgpack (1.0.7) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "msgpack (==1.0.7)"'.
dimbleby commented 1 day ago

Mixing pipx installation with poetry self is a bad idea, if you have used pipx to install poetry then you will also want to use pipx to inject plugins into that installation.

There are existing issues saying similar.

mtkennerly commented 1 day ago

That's fair, but I can reproduce it without using Pipx. I think the crux of the issue is that the internal poetry.lock is reused across different Python versions:

$ py -3.13 -m pip install poetry==1.8.4
$ py -3.13 -m poetry self add "poetry-dynamic-versioning[plugin]"
  - Downgrading msgpack (1.1.0 -> 1.0.7): Failed

  ChefBuildError
dimbleby commented 1 day ago

Same thing. Iirc poetry self commands only really make sense for installs from the installer script.

dimbleby commented 1 day ago

similar examples include #7170 and your own #6456

dimbleby commented 1 day ago

iirc poetry self commands only really make sense for installs from the installer script.

possibly not even that. I never use the installer so I am not totally sure, but perhaps it too will behave the same way.

poetry self is broken in more than one way - eg #7872 - and I recommend just not using it ever.

mtkennerly commented 1 day ago

Hmm, #7170 definitely sounds like the same issue. #6456 is a bit different - that should occur regardless of how Poetry is installed.

Just to be clear, do you think that essentially the only reason the internal poetry.lock got into a weird state to begin with is because of using poetry self inappropriately?

dimbleby commented 1 day ago

I dont know that it even did get into a "weird" state, it probably is a perfectly good lock file but it just happens that the solution that it gives includes a version of msgpack that does not have wheels for python3.13, and which your system is not set up to build.

That solution is likely influenced in some way by the unlocked environment from the original install, but I doubt that it will be useful or interesting to figure out exactly what combination of circumstances lead to that outcome.

For me anyway, it is a lot simpler to advise: avoid poetry self

dimbleby commented 1 day ago

also the pyproject.toml in your attachment is making the mistake of installing poetry into a project environment. See the big red box.

Or is that from the poetry installation? Did you perhaps previously do a poetry self command successfully then do a pipx install over the top of that, and then poetry self again?

After the pipx install you could then have an environment that was ahead of the lock file and so it should be expected that next time you give control to poetry it would try to downgrade.

The solution is going to be to use one or the other mechanism consistently (and imo preferably "not poetry self")

mtkennerly commented 1 day ago

Or is that from the poetry installation?

Yes, the pypoetry.zip attachment contains my %APPDATA%/pypoetry folder.

Did you perhaps previously do a poetry self command successfully then do a pipx install over the top of that, and then poetry self again?

I've certainly used a mix of poetry self and pipx commands through the course of testing my plugin, so I want to say yes, and I do understand now that that's problematic. However, consider the following reproduction that only uses the installer script:

rm -rf ~/AppData/Roaming/pypoetry

curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.7.1 py -3.10 -
~/AppData/Roaming/Python/Scripts/poetry.exe self lock

curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.8.4 py -3.13 -
~/AppData/Roaming/Python/Scripts/poetry.exe self add "poetry-dynamic-versioning[plugin]"

Results in:

  - Downgrading poetry-plugin-export (1.8.0 -> 1.6.0)

The downgrade "makes sense" in terms of the lock file, but it's probably not something the user would want in this situation.

If you first run ~/AppData/Roaming/Python/Scripts/poetry.exe self lock before installing poetry-dynamic-versioning, then Poetry updates the lock file to include poetry-plugin-export 1.8.0, and therefore no downgrade occurs.

The installer script's --uninstall option does remove ~/AppData/Roaming/pypoetry, but if you're just upgrading directly, then it stays in place. If you're only really supposed to use poetry self in conjunction with the installer script, then perhaps the installer script should automatically run poetry self lock to help avoid this kind of downgrade?

dimbleby commented 1 day ago

IMO we should be running less poetry self rather than more - but feel free to try a pull request and see how those with power to merge feel about it.