You are not logged in.

#1 Yesterday 16:20:15

sosthene
Member
Registered: 2019-03-25
Posts: 5

[Solved] Python Poetry fails to run

Hi folks,

Recently (can't remember when it started, but less than 3 weeks ago), python poetry, installed by pacman started to fail with the following error when running any poetry command (even just poetry without any argument):

cannot import name 'temporary_directory' from 'poetry.core.utils.helpers' (/usr/lib/python3.14/site-packages/poetry/core/utils/helpers.py)

Google points me to this github issue from 2022, but the fix does not make sense today and shouldn't for a pacman install. All packages are the latest in the repos as I'm posting this.

Is anyone else encountering this?

Best regards,
Sosthène

Last edited by sosthene (Yesterday 22:03:13)

Offline

#2 Yesterday 16:36:50

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,490
Website

Re: [Solved] Python Poetry fails to run

Which poetry package do you have installed? "python-poetry" or "python-poetry-core"?

Offline

#3 Yesterday 16:39:03

sosthene
Member
Registered: 2019-03-25
Posts: 5

Re: [Solved] Python Poetry fails to run

I have installed python-poetry, and it installed python-poetry-core as a dependency.

Offline

#4 Yesterday 16:42:56

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,490
Website

Re: [Solved] Python Poetry fails to run

What exact command are you running? For me it seems to work just fine smile

Offline

#5 Yesterday 16:44:00

sosthene
Member
Registered: 2019-03-25
Posts: 5

Re: [Solved] Python Poetry fails to run

poetry

Triggers the bug for me. Any sub-command also does.

Offline

#6 Yesterday 16:51:22

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,570

Re: [Solved] Python Poetry fails to run

What versions of the poetry packages? Looks like there might be a disconnect between extra and testing.

Offline

#7 Yesterday 16:58:22

Whoracle
Member
Registered: 2010-11-02
Posts: 199

Re: [Solved] Python Poetry fails to run

Same issue. For me it's

[ ~ ] pacman -Qikk python-poetry                                                                                                                                                                       [ 17:57 ]
Name            : python-poetry
Version         : 2.2.1-4
Description     : Python dependency management and packaging made easy
Architecture    : any
URL             : https://python-poetry.org
Licenses        : MIT
Groups          : None
Provides        : poetry
Depends On      : python  python-build  python-cachecontrol  python-cachy  python-cleo  python-dulwich  python-fastjsonschema  python-filelock  python-findpython  python-html5lib  python-installer
                  python-jsonschema  python-keyring  python-packaging  python-pbs-installer  python-pexpect  python-pkginfo  python-platformdirs  python-poetry-core  python-poetry-plugin-export
                  python-pyproject-hooks  python-requests  python-requests-toolbelt  python-shellingham  python-tomlkit  python-trove-classifiers  python-urllib3  python-virtualenv
Optional Deps   : python-pip: to use pip with virtual environments [installed]
Required By     : python-poetry-plugin-export
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 3.40 MiB
Packager        : Caleb Maclennan <alerque@archlinux.org>
Build Date      : Sat 10 Jan 2026 09:54:32 AM CET
Install Date    : Sat 10 Jan 2026 09:59:44 PM CET
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

python-poetry: 676 total files, 0 altered files

Offline

#8 Yesterday 17:11:31

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,197

Re: [Solved] Python Poetry fails to run

https://archlinux.org/packages/?sort=&q … =&flagged=
python-poetry depends on python-poetry-core, the latter moved to 2.3 in Extra, the former  is at 2.2 and only updated in Extra-Testing
Download  https://archlinux.org/packages/extra-te … /download/ and pacman -U it.

Offline

#9 Yesterday 17:23:50

Whoracle
Member
Registered: 2010-11-02
Posts: 199

Re: [Solved] Python Poetry fails to run

Can confirm that fixes it for me. Let's see what OP says.

Offline

#10 Yesterday 17:34:07

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,490
Website

Re: [Solved] Python Poetry fails to run

Nice catch!

Offline

#11 Yesterday 21:36:25

sosthene
Member
Registered: 2019-03-25
Posts: 5

Re: [Solved] Python Poetry fails to run

This seems to fix it for me too.

Thank for finding the root of the issue!

I see python-poetry is already marked as out-of-date so I suppose it will get resolved soon.

Last edited by sosthene (Yesterday 21:36:53)

Offline

#12 Yesterday 22:01:20

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,197

Re: [Solved] Python Poetry fails to run

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB