vicc results in modules not found

Bug #2007568 reported by Nathan Teodosio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vsmartcard (Debian)
New
Unknown
vsmartcard (Ubuntu)
Fix Released
Critical
Nathan Teodosio

Bug Description

% vicc
Traceback (most recent call last):
  File "/usr/bin/vicc", line 112, in <module>
    from virtualsmartcard.VirtualSmartcard import VirtualICC
ModuleNotFoundError: No module named 'virtualsmartcard'

If I create the /usr/lib/python3/dist-packages/virtualsmartcard -> /usr/lib/python3/site-packages/virtualsmartcard link and remove the extra directory level, then

% vicc
Traceback (most recent call last):
  File "/usr/lib/python3/dist-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 "/usr/bin/vicc", line 112, in <module>
    from virtualsmartcard.VirtualSmartcard import VirtualICC
  File "/usr/lib/python3/dist-packages/virtualsmartcard/VirtualSmartcard.py", line 31, in <module>
    from virtualsmartcard.CardGenerator import CardGenerator
  File "/usr/lib/python3/dist-packages/virtualsmartcard/CardGenerator.py", line 34, in <module>
    from virtualsmartcard.SmartcardSAM import SAM
  File "/usr/lib/python3/dist-packages/virtualsmartcard/SmartcardSAM.py", line 24, in <module>
    import virtualsmartcard.CryptoUtils as vsCrypto
  File "/usr/lib/python3/dist-packages/virtualsmartcard/CryptoUtils.py", line 35, in <module>
    import sha as SHA1
ModuleNotFoundError: No module named 'sha'

% apt list --installed | grep cryptod
python3-pycryptodome/lunar,now 3.11.0+dfsg1-4 amd64 [installed]

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: vsmartcard-vpicc 3.3+dfsg-2
ProcVersionSignature: Ubuntu 5.19.0-21.21-generic 5.19.7
Uname: Linux 5.19.0-21-generic x86_64
ApportVersion: 2.24.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
Date: Thu Feb 16 08:42:31 2023
InstallationDate: Installed on 2022-05-16 (275 days ago)
InstallationMedia: Xubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
PackageArchitecture: all
SourcePackage: vsmartcard
UpgradeStatus: Upgraded to lunar on 2023-01-17 (29 days ago)
modified.conffile..etc.apport.crashdb.conf: [modified]
mtime.conffile..etc.apport.crashdb.conf: 2022-11-21T16:23:39.969270

Revision history for this message
Nathan Teodosio (nteodosio) wrote :
description: updated
Changed in vsmartcard (Ubuntu):
importance: Undecided → Critical
assignee: nobody → Nathan Teodosio (nteodosio)
status: New → In Progress
Revision history for this message
Nathan Teodosio (nteodosio) wrote :
Changed in vsmartcard (Ubuntu):
status: In Progress → Confirmed
Changed in vsmartcard (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package vsmartcard - 3.3+dfsg-2ubuntu1

---------------
vsmartcard (3.3+dfsg-2ubuntu1) lunar; urgency=high

  * d/p/crypto_to_cryptodome_module.patch: Fixes module not found error.
    (lp: #2007568)

  [ Michael Weghorn ]
  * python3-virtualsmartcard.install: Install to dist-packages instead of
    site-packages.

 -- Nathan Pratta Teodosio <email address hidden> Thu, 16 Feb 2023 09:46:03 -0300

Changed in vsmartcard (Ubuntu):
status: Fix Committed → Fix Released
Changed in vsmartcard (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.