[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1125410: python3-opencc: pyinstaller-hooks-contrib opencc test fails on Python 3.14 (but works on 3.13)



Hi,

在 2026-01-13二的 12:11 -0700,Soren Stoutner写道:
> Package: python3-opencc
> Version: 1.1.9+ds1-3
> Severity: normal
> 
> pyinstaller-hooks-contrib has a number of tests that check to make sure that pyinstaller works
> correctly with various Python packages.  The test for opencc works on Python 3.13, but is
> failing on Python 3.14.

The package python3-opencc was deliberately not built against all supported python versions,
but only the default python version (currently 3.13). That's why it is failing.
See Depends: python3 (<< 3.14), python3 (>= 3.13~) in its binary package Depends: field.

> Traceback (most recent call last):
>   File "opencc/__init__.py", line 7, in <module>
> ModuleNotFoundError: No module named 'opencc_clib'
> During handling of the above exception, another exception occurred:
> Traceback (most recent call last):
>   File "test_source.py", line 2, in <module>
>   File "pyimod02_importers.py", line 457, in exec_module
>   File "opencc/__init__.py", line 9, in <module>
> ImportError: cannot import name 'opencc_clib' from 'opencc.clib' (/tmp/_MEIU9KLH2/opencc/clib/__init__.py)
> 
> https://salsa.debian.org/python-team/packages/pyinstaller-hooks-contrib/-/jobs/8880569#L2613
> 
> Is this a known problem with Python 3.14?

What can we do to solve the current issue? I think it is perfectly fine for
a python package to only support the default python3 version instead of all
supported python versions.

Thanks,
Boyuan Yang

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: