Package: python3-virtualsmartcard Version: 3.3+dfsg-2 Severity: important Dear Maintainer,
after installing the python3-virtualsmartcard package, I cannot import it with python3: $ python3 Python 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import virtualsmartcard Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'virtualsmartcard' As far as I see, this is because the package is installed into /usr/lib/python3/site-packages instead of <..>/dist-packages: $ apt-file show python3-virtualsmartcard | grep __init__.py python3-virtualsmartcard: /usr/lib/python3/site-packages/virtualsmartcard/virtualsmartcard/__init__.py python3-virtualsmartcard: /usr/lib/python3/site-packages/virtualsmartcard/virtualsmartcard/cards/__init__.py $ python3 -m site sys.path = [ '/home/robin', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/usr/local/lib/python3.9/dist-packages', '/usr/lib/python3/dist-packages', ] USER_BASE: '/home/robin/.local' (exists) USER_SITE: '/home/robin/.local/lib/python3.9/site-packages' (doesn't exist) ENABLE_USER_SITE: True If I manually put that folder in the Python path, for example by linking /usr/lib/python3/site-packages/virtualsmartcard/virtualsmartcard to ~/.local/lib/python3.9/site-package/virtualsmartcard, I can at least import the virtualsmartcard module. But there seem to be missing dependencies: >>> import virtualsmartcard.VirtualSmartcard Traceback (most recent call last): File "/home/robin/.local/lib/python3.9/site-packages/virtualsmartcard/CryptoUtils.py", line 29, in <module> from Crypto.Cipher import DES3, DES, AES, ARC4 # @UnusedImport ModuleNotFoundError: No module named 'Crypto' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/robin/.local/lib/python3.9/site-packages/virtualsmartcard/VirtualSmartcard.py", line 31, in <module> from virtualsmartcard.CardGenerator import CardGenerator File "/home/robin/.local/lib/python3.9/site-packages/virtualsmartcard/CardGenerator.py", line 34, in <module> from virtualsmartcard.SmartcardSAM import SAM File "/home/robin/.local/lib/python3.9/site-packages/virtualsmartcard/SmartcardSAM.py", line 24, in <module> import virtualsmartcard.CryptoUtils as vsCrypto File "/home/robin/.local/lib/python3.9/site-packages/virtualsmartcard/CryptoUtils.py", line 35, in <module> import sha as SHA1 ModuleNotFoundError: No module named 'sha' -- System Information: Debian Release: 11.0 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages python3-virtualsmartcard depends on: ii python3 3.9.2-3 python3-virtualsmartcard recommends no packages. python3-virtualsmartcard suggests no packages. -- no debconf information