Hi,
is there any chance to get a fixed package released sometime soon?
The following change fixed this for me in a local rebuild of the
package, but there might be a better way to handle it:
diff --git a/debian/python3-virtualsmartcard.install
b/debian/python3-virtualsmartcard.install
index 47ee4d3..ded283b 100644
--- a/debian/python3-virtualsmartcard.install
+++ b/debian/python3-virtualsmartcard.install
@@ -1 +1 @@
-usr/lib/python3.*/site-packages/virtualsmartcard
/usr/lib/python3/site-packages/virtualsmartcard
+usr/lib/python3.*/site-packages/virtualsmartcard
usr/lib/python3/dist-packages/
Side note: With this in place, I still ran into another problem,
described in upstream issue
https://github.com/frankmorgner/vsmartcard/issues/218
("ModuleNotFoundError: No module named 'sha'").
With a logical backport of the suggested upstream PR
https://github.com/frankmorgner/vsmartcard/pull/228 , running `vicc`
then works without errors for me. Backport in the patch-queue branch of
my local package looks like this:
diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py
b/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py
index 56e0ed4..552cff1 100644
--- a/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py
+++ b/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py
@@ -27,12 +27,11 @@ from virtualsmartcard.utils import inttostring
try:
# Use PyCrypto (if available)
from Crypto.Cipher import DES3, DES, AES, ARC4 # @UnusedImport
- from Crypto.Hash import HMAC, SHA as SHA1
+ from Crypto.Hash import HMAC
except ImportError:
# PyCrypto not available. Use the Python standard library.
import hmac as HMAC
- import sha as SHA1
CYBERFLEX_IV = b'\x00' * 8
Best regards,
Michael