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

2023-08-29 Thread Stefano Rivera
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.

Stefano

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



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

2023-08-28 Thread Stefano Rivera
Hi Jonathan (2023.08.27_20:35:12_+)

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



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

2023-08-27 Thread Jonathan Weth
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 
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 
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 
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 
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 
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 
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 
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 
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 
import virtualenv
  File 
"/home/wethjo/.local/share/pypoetry/venv/lib/python3.11/site-packages/virtualenv/__init__.py",
 line 3, in 
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 
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 
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 
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 
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 
import ssl
  File "/usr/lib/python3.11/ssl.py", line 100, in 
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-minimal3.11.4-5+b1
ii  python3.11 3.11.5-2

python3 recommends no packages.

Versions of packages python3 suggests:
pn  python3-doc   
ii  python3-tk3.11.5-1
pn  python3-venv  

-- no debconf information