Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1050668: python3: Fails to import/work with SSL module due to ImportError

785 views
Skip to first unread message

Jonathan Weth

unread,
Aug 27, 2023, 4:40:06 PM8/27/23
to
Package: python3
Version: 3.11.4-5+b1
Severity: important
Tags: upstream
X-Debbugs-Cc: deb...@jonathanweth.de

Dear Maintainer,

after updating to the newest Python version and trying to work with Poetry (e. g. downloading packages),
the following problem related to the SSL module occured:

Traceback (most recent call last):
File "/home/wethjo/.local/bin/poetry", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/poetry/console/application.py", line 405, in main
exit_code: int = Application().run()
^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/cleo/application.py", line 338, in run
self.render_error(e, io)
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/poetry/console/application.py", line 180, in render_error
self.set_solution_provider_repository(self._get_solution_provider_repository())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/poetry/console/application.py", line 394, in _get_solution_provider_repository
from poetry.mixology.solutions.providers.python_requirement_solution_provider import ( # noqa: E501
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/poetry/mixology/solutions/providers/__init__.py", line 3, in <module>
from poetry.mixology.solutions.providers.python_requirement_solution_provider import (
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/poetry/mixology/solutions/providers/python_requirement_solution_provider.py", line 9, in <module>
from poetry.puzzle.exceptions import SolverProblemError
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/poetry/puzzle/__init__.py", line 3, in <module>
from poetry.puzzle.solver import Solver
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/poetry/puzzle/solver.py", line 16, in <module>
from poetry.puzzle.provider import Indicator
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/poetry/puzzle/provider.py", line 25, in <module>
from poetry.packages.direct_origin import DirectOrigin
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/poetry/packages/direct_origin.py", line 10, in <module>
from poetry.inspection.info import PackageInfo
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/poetry/inspection/info.py", line 26, in <module>
from poetry.utils.env import EnvCommandError
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/poetry/utils/env.py", line 26, in <module>
import virtualenv
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/virtualenv/__init__.py", line 3, in <module>
from .run import cli_run, session_via_cli
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/virtualenv/run/__init__.py", line 11, in <module>
from ..seed.wheels.periodic_update import manual_upgrade
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/virtualenv/seed/wheels/__init__.py", line 3, in <module>
from .acquire import get_wheel, pip_wheel_env_run
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/virtualenv/seed/wheels/acquire.py", line 11, in <module>
from .bundle import from_bundle
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/virtualenv/seed/wheels/bundle.py", line 4, in <module>
from .periodic_update import periodic_update
File "/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/virtualenv/seed/wheels/periodic_update.py", line 11, in <module>
import ssl
File "/usr/lib/python3.11/ssl.py", line 100, in <module>
import _ssl # if we can't import it, let the error propagate
^^^^^^^^^^^
ImportError: /usr/lib/python3.11/lib-dynload/_ssl.cpython-311-x86_64-linux-gnu.so: undefined symbol: _PyModule_Add

There also seem to be other users experiencing this concrete issue as stated in
https://github.com/python/cpython/issues/108525, for example.

Cheers,

Jonathan

-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.4.0-2-rt-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3 depends on:
ii libpython3-stdlib 3.11.4-5+b1
ii python3-minimal 3.11.4-5+b1
ii python3.11 3.11.5-2

python3 recommends no packages.

Versions of packages python3 suggests:
pn python3-doc <none>
ii python3-tk 3.11.5-1
pn python3-venv <none>

-- no debconf information

Stefano Rivera

unread,
Aug 28, 2023, 12:10:04 PM8/28/23
to
Hi Jonathan (2023.08.27_20:35:12_+0000)

Install python3.11 from debian unstable. The module was built with
3.11.5 and won't import with 3.11.4.

Dependencies *should* capture that, but I'm guessing we missed listing a
symbol in 3.11.5-1

Stefano

--
Stefano Rivera
http://tumbleweed.org.za/
+1 415 683 3272

Stefano Rivera

unread,
Aug 29, 2023, 3:40:05 AM8/29/23
to
python3.11 has now fully migrated.

I didn't read the bug properly before, but the issue was that you had
part of your python3.11 installation from unstable, and part from
testing.

libpython3.11-minimal was a newer version than your python3.11-minimal I
think.
0 new messages