Skip to content
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

ModuleNotFoundError while trying to run #1

Open
probonopd opened this issue May 16, 2020 · 0 comments
Open

ModuleNotFoundError while trying to run #1

probonopd opened this issue May 16, 2020 · 0 comments

Comments

@probonopd
Copy link

ModuleNotFoundError while trying to run. Please bundle all needed Python modules inside the AppImage. Thanks.

Import exception

ModuleNotFoundError("No module named 'CardConnector'",)

Import exception

ModuleNotFoundError("No module named 'CardConnector'",)

Import exception

ModuleNotFoundError("No module named 'JCconstants'",)

Import exception

ModuleNotFoundError("No module named 'util'",)

Import exception

ModuleNotFoundError("No module named 'util'",)

Import exception

ModuleNotFoundError("No module named 'Satochip2FA'",)

DEBUG PKGDIR=  /run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/satochip_bridge

Traceback (most recent call last):

  File "/run/firejail/appimage/.appimage-9223/usr/bin/SatochipBridge.py", line 9, in <module>

    from CardConnector import CardConnector, UninitializedSeedError

ModuleNotFoundError: No module named 'CardConnector'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/run/firejail/appimage/.appimage-9223/usr/bin/SatochipBridge.py", line 19, in <module>

    from satochip_bridge.CardConnector import CardConnector, UninitializedSeedError

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/satochip_bridge/__init__.py", line 2, in <module>

    from .SatochipBridge import SatochipBridge

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/satochip_bridge/SatochipBridge.py", line 60, in <module>

    cc = CardConnector(parser, client)

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/satochip_bridge/CardConnector.py", line 134, in __init__

    self.cardrequest = CardRequest(timeout=0, cardType=self.cardtype)

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/smartcard/CardRequest.py", line 61, in __init__

    timeout)

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/smartcard/pcsc/PCSCCardRequest.py", line 82, in __init__

    self.hcontext = PCSCContext().getContext()

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/smartcard/pcsc/PCSCContext.py", line 56, in __init__

    self.renewContext()

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/smartcard/pcsc/PCSCContext.py", line 70, in renewContext

    PCSCContext.instance = PCSCContext.__PCSCContextSingleton()

  File "/run/firejail/appimage/.appimage-9223/usr/lib/python3.6/site-packages/smartcard/pcsc/PCSCContext.py", line 40, in __init__

    raise EstablishContextException(hresult)

smartcard.pcsc.PCSCExceptions.EstablishContextException: 'Failure to establish context: Service not available.'

Reference:
AppImage/appimage.github.io#2005

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant