Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #15401 > unrolled thread

Bug#1058083: yapsy: ModuleNotFoundError: No module named 'imp'

Started byAndreas Tille <andreas@an3as.eu>
First post2024-01-08 21:10 +0100
Last post2024-01-08 21:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.debian.maint.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#1058083: yapsy: ModuleNotFoundError: No module named 'imp' Andreas Tille <andreas@an3as.eu> - 2024-01-08 21:10 +0100

#15401 — Bug#1058083: yapsy: ModuleNotFoundError: No module named 'imp'

FromAndreas Tille <andreas@an3as.eu>
Date2024-01-08 21:10 +0100
SubjectBug#1058083: yapsy: ModuleNotFoundError: No module named 'imp'
Message-ID<HU46B-1K13-3@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web