-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The import_module is not compatible with recent Python 3.12 #274
Comments
Hmm, I don't see how the changes should affect the code. Also, this python version seems to work for me as expected... |
Here you find the fix for exactly the same error message (in python 3.12). The fix is to use importlib.import_module instead of imp. However, vpicc already uses the former (i.e. NOT imp). I suspect, that some dependency uses the imp module, which is causing the problem. You should be able to dig into the program using something like the following:
|
Not sure if I do something wrong, but attempt to run
Looking further into the steps what happen during the build, the error is raised while byte-compiling the python code. If I see right, this is done by invoking the So the workaround is to remove the |
Not sure how to update or avoid py-compile manually as it is automatically added, see https://www.gnu.org/software/automake/manual/html_node/Python.html. I guess, this directly depends on the version of autotools that are installed. I could try updating |
If it is automatically added, I think just rebuilding the tarball with updated automake should do that. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I found the same issue as @Jakuje described The tarball from GitHub release On my Ubuntu, the automake package version is Also the issue is not triggered if someone do git clone for getting the source. |
I also have the same problem on Linux Mint and Ubuntu in the latest versions with Python 3.12, after managing to compile the project, I accessed the local folder on my machine and made a local call ./vicc within the project for example, but something definitely happens in the python 3.12 so the direct call to /bin breaks in some ways |
The Python 3.12 removes several parts of the importlib python/cpython#98040 causing a build failure of this package under this python version, I believe in the following code parts:
vsmartcard/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py
Lines 367 to 376 in d2e607f
The build failures do not look self-explanatory though:
https://download.copr.fedorainfracloud.org/results/jjelen/vsmartcard/centos-stream-10-x86_64/07317358-virtualsmartcard/builder-live.log.gz
I would like to get this fixed, but I will not get to that in coming days so contributions, help, pointers always welcomed.
The text was updated successfully, but these errors were encountered: