Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #15401
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Newsgroups | linux.debian.bugs.dist, linux.debian.maint.python |
| Subject | Bug#1058083: yapsy: ModuleNotFoundError: No module named 'imp' |
| Date | 2024-01-08 21:10 +0100 |
| Message-ID | <HU46B-1K13-3@gated-at.bofh.it> (permalink) |
| References | <HK6jV-d1gi-209@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
Hi Thibauld,
Debian has packaged yapsy. We try to migrate to Python3.12. When testing yapsy
with Python3.12 in our CI[1] it fails with:
testActivationAndDeactivation (test.test_SimplePlugin.SimpleTestCase.testActivationAndDeactivation)
Test if the activation procedure works. ... Unable to import plugin: /builds/python-team/packages/yapsy/debian/output/source_dir/test/plugins/SimplePlugin
Traceback (most recent call last):
File "/builds/python-team/packages/yapsy/debian/output/source_dir/yapsy/PluginManager.py", line 518, in loadPlugins
candidate_module = PluginManager._importModule(plugin_module_name, candidate_filepath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/builds/python-team/packages/yapsy/debian/output/source_dir/yapsy/PluginManager.py", line 584, in _importModule
candidate_module = imp.load_module(plugin_module_name,plugin_file,candidate_filepath+".py",("py","r",imp.PY_SOURCE))
^^^^^^^^^^^^^
AttributeError: type object 'Loader' has no attribute 'PY_SOURCE'
FAIL
...
You can find the full log in our CI[1].
It would be great if you could port yapsy to Python3.12.
Kind regards
Andreas.
[1] https://salsa.debian.org/python-team/packages/yapsy/-/jobs/5132141#L1187
--
http://fam-tille.de
Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread
Bug#1058083: yapsy: ModuleNotFoundError: No module named 'imp' Andreas Tille <andreas@an3as.eu> - 2024-01-08 21:10 +0100
csiph-web