LudovicRousseau / pyscard

pyscard smartcard library for python
http://pyscard.sourceforge.net/
GNU Lesser General Public License v2.1
377 stars 108 forks source link

drop deprecated use of `imp` #161

Closed eworm-de closed 6 months ago

eworm-de commented 6 months ago

Your system information

Please describe your issue in as much detail as possible:

The imp module has been removed in python 3.12. It is still used in the project, blocking the downstream python update. Please update to use importlib instead.

https://docs.python.org/dev/whatsnew/3.12.html#imp

Steps for reproducing this issue:

  1. use python 3.12
  2. try to use pyscard
LudovicRousseau commented 6 months ago

Can you provide the full error message you get?

eworm-de commented 6 months ago

Actually I do not yet have a package around. We are about to push this to our repositories. This is our todo list, I think this is public and you should have access: https://archlinux.org/todo/imp-module-removal-in-python-312/

The deprecated/removed module is imported in smartcard/wx/__init__.py, and later on imp.is_frozen() is called.