[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

yapsy: ModuleNotFoundError: No module named 'imp'



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


Reply to: