Bug#1098672: Debian Bug #1098672
xiao sheng wen(肖盛文)
atzlinux at sina.com
Tue Aug 19 11:00:11 BST 2025
Hi,
在 2025/8/19 17:24, VA 写道:
> Le 19/08/2025 à 11:12, xiao sheng wen(肖盛文) a écrit :
>> Hi,
>>
>> I had try the following update, and rebuild package to test,
>> but issue is still exist:
>>
>>>
>>> /usr/lib/python3/dist-packages/trimage/trimage.py contains
>>>
>>> `from ThreadPool import ThreadPool` while it should be either:
>>>
>>> - `from .ThreadPool import ThreadPool`
>>
>> Traceback (most recent call last):
>> File "/usr/lib/python3/dist-packages/trimage/trimage.py", line 16, in <module>
>> from .ThreadPool import ThreadPool
>> ImportError: attempted relative import with no known parent package
>>
>>
>>> - or `from trimage.ThreadPool import ThreadPool`
>>
>> Traceback (most recent call last):
>> File "/usr/lib/python3/dist-packages/trimage/trimage.py", line 16, in <module>
>> from trimage.ThreadPool import ThreadPool
>> File "/usr/lib/python3/dist-packages/trimage/trimage.py", line 16, in <module>
>> from trimage.ThreadPool import ThreadPool
>> ModuleNotFoundError: No module named 'trimage.ThreadPool'; 'trimage' is not a package
>>
>> Regards,
>>
>
> That's because of the non-idiomatic runner in /bin. Try with:
>
> python3 -m trimage.trimage
>
> Actually the runner in /bin should be a wrapper entrypoint script generated by the package generator like setuptools, but at least executing like `python3 -m trimage.trimage` is still better than currently.
Would you send a patch to fix this bug?
Thanks!
--
肖盛文 xiao sheng wen -- Debian Developer(atzlinux)
Debian QA page: https://qa.debian.org/developer.php?login=atzlinux%40debian.org
GnuPG Public Key: 0x00186602339240CB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-phototools-devel/attachments/20250819/60b1b8d9/attachment.sig>
More information about the Pkg-phototools-devel
mailing list