Bug 7932 - ImportWarning messages when using sudorelaunch
Summary: ImportWarning messages when using sudorelaunch
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.15.0
Assignee: Pierre Ossman
URL:
Keywords: prosaic, wilsj_tester
Depends on:
Blocks:
 
Reported: 2022-05-19 13:52 CEST by Pierre Ossman
Modified: 2022-05-24 08:39 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2022-05-19 13:52:54 CEST
We get these annoying extra warnings when sudorelaunch fails and needs to display the error:

> <frozen importlib._bootstrap>:671: ImportWarning: DynamicImporter.exec_module() not found; falling back to load_module()

Fortunately, these warnings are only shown in development builds. But it's still annoying for our developers, and it makes it difficult to evaluate the actual end user experience.
Comment 1 Pierre Ossman cendio 2022-05-19 13:56:34 CEST
Fixed upstream apparently:

https://gitlab.gnome.org/GNOME/pygobject/-/merge_requests/174

Doesn't seem to have made it in to any released version, though. And won't likely get back ported. So a workaround would still be interesting from our side.
Comment 2 Pierre Ossman cendio 2022-05-19 13:58:55 CEST
It seems this warning is fairly recent, though, so perhaps this might be a short-lived issue after all. Seems like only 3.10+ will complain.
Comment 4 Pierre Ossman cendio 2022-05-19 14:29:46 CEST
Warnings are now gone!
Comment 5 William Sjöblom cendio 2022-05-24 08:39:13 CEST
I've reproduced the issue on a development build of r38431 (the revision
before the fix) and reproduced the issue. However, they do not show up
after the fix.

Also had a look at the changes and things look fine! Marking as closed!

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