Bug 8325 - Deprecation warning when running gtk-installer
Summary: Deprecation warning when running gtk-installer
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Server Installer (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-20 08:50 CET by Alexander Zeijlon
Modified: 2024-03-26 13:09 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Alexander Zeijlon cendio 2024-03-20 08:50:23 CET
I noticed that I get a deprecation warning when the server installer runs in GTK-mode.
> /usr/lib/python3.12/site-packages/gi/overrides/__init__.py:108: DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
>   override_loader = get_loader(override_package_name)
> /usr/lib64/python3.12/pkgutil.py:291: DeprecationWarning: 'pkgutil.find_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
>   return find_loader(fullname)
> /usr/lib/python3.12/site-packages/gi/overrides/__init__.py:108: DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
>   override_loader = get_loader(override_package_name)
> /usr/lib64/python3.12/pkgutil.py:291: DeprecationWarning: 'pkgutil.find_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead
>   return find_loader(fullname)

This warning is not present when installing e.g. the latest release 4.16.0, but seen when installing 4.16.0post.

The server OS in this case is Fedora 39.
Comment 1 Pierre Ossman cendio 2024-03-26 13:09:28 CET
This is not a new issue, it's just that deprecation warnings are only seen in development builds.

This is also not a ThinLinc issue as it is a compatibility issue between the system's GTK and the system's Python. It is not affected in any way by what we do.

It is extremely unlikely that this will ever be a practical issue, given how many programs use GTK from Python. The distributions will make sure GTK is fixed before they ship a Python that no longer supports find_loader().

What remains is an annoyance to us developers, and the risk we might miss other deprecation warnings in the noise this creates.

Note You need to log in before you can comment on or make changes to this bug.