Skip to main content
Topic: python-poetry package depends on libpython3.12.so.1.0 (Read 114 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

python-poetry package depends on libpython3.12.so.1.0

`pacman -Ss python-poetry`:
Code: [Select]
world/python-poetry 1.8.5-1 [installed]
    Python dependency management and packaging made easy
world/python-poetry-core 1.9.1-1 (python-build-backend) [installed]
    Poetry PEP 517 Build Backend & Core Utilities
world/python-poetry-dynamic-versioning 1.4.1-2
    Plugin for Poetry to enable dynamic versioning based on VCS tags
world/python-poetry-plugin-export 1.8.0-3 [installed]
    Poetry plugin to export the dependencies to various formats
extra/python-poetry 1.8.5-1 [installed]
    Python dependency management and packaging made easy
extra/python-poetry-core 1.9.1-1 (python-build-backend) [installed]
    Poetry PEP 517 Build Backend & Core Utilities
extra/python-poetry-dynamic-versioning 1.4.1-2
    Plugin for Poetry to enable dynamic versioning based on VCS tags
extra/python-poetry-plugin-export 1.8.0-3 [installed]
    Poetry plugin to export the dependencies to various formats
extra/python-poetry-plugin-up 0.8.0-1
    Poetry plugin that updates dependencies and bumps their versions in pyproject.toml file
When running poetry:
Code: [Select]
~> poetry
/home/user/.local/share/pypoetry/venv/bin/python: error while loading shared libraries: libpython3.12.so.1.0: cannot open shared object file: No such file or directory
Package was last updated: 2024-12-26
I tried reinstalling a few times, doesn't seem to help.

Re: python-poetry package depends on libpython3.12.so.1.0

Reply #1
What's your python version?

Re: python-poetry package depends on libpython3.12.so.1.0

Reply #2
Code: [Select]
~> python --version
Python 3.13.1
~>  pacman -Ss ^python\$
system/python 3.13.1-1 [installed]
    The Python programming language

Re: python-poetry package depends on libpython3.12.so.1.0

Reply #3
Actually I see the issue. The python executable it's using is in your venv and that appears to linked to an old libpython3. I'm sure if you reinitialize your venv or force poetry to use the python installed by pacman it'll work.

Re: python-poetry package depends on libpython3.12.so.1.0

Reply #4
Actually I see the issue. The python executable it's using is in your venv and that appears to linked to an old libpython3. I'm sure if you reinitialize your venv or force poetry to use the python installed by pacman it'll work.
for the noobs, how would you do that?