Script fails (missing CFFI module)
garbear opened this issue · 2 comments
garbear commented
Script fails on Ubuntu 18.04. I've tried installing the required modules with pip3, no luck. Stack trace:
Traceback (most recent call last):
File "./process_game_addons.py", line 22, in <module>
main()
File "/home/garrett/Documents/kodi-game-scripting/kodi_game_scripting/process_game_addons.py", line 76, in main
args.git = git_access.Git(auth=True)
File "/home/garrett/Documents/kodi-game-scripting/kodi_game_scripting/git_access.py", line 54, in __init__
cred.save(username, password)
File "/home/garrett/Documents/kodi-game-scripting/kodi_game_scripting/credentials.py", line 58, in save
username)
File "/home/garrett/.local/lib/python3.6/site-packages/keyring/core.py", line 47, in set_password
_keyring_backend.set_password(service_name, username, password)
File "/home/garrett/.local/lib/python3.6/site-packages/keyring/backends/SecretService.py", line 87, in set_password
collection.create_item(label, attributes, password, replace=True)
File "/home/garrett/.local/lib/python3.6/site-packages/secretstorage/collection.py", line 118, in create_item
_secret = format_secret(self.session, secret, content_type)
File "/home/garrett/.local/lib/python3.6/site-packages/secretstorage/util.py", line 110, in format_secret
encryptor = Cipher(aes, modes.CBC(aes_iv), default_backend()).encryptor()
File "/home/garrett/.local/lib/python3.6/site-packages/cryptography/hazmat/backends/__init__.py", line 15, in default_backend
from cryptography.hazmat.backends.openssl.backend import backend
File "/home/garrett/.local/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/__init__.py", line 7, in <module>
from cryptography.hazmat.backends.openssl.backend import backend
File "/home/garrett/.local/lib/python3.6/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 16, in <module>
from cryptography import utils, x509
File "/home/garrett/.local/lib/python3.6/site-packages/cryptography/x509/__init__.py", line 8, in <module>
from cryptography.x509.base import (
File "/home/garrett/.local/lib/python3.6/site-packages/cryptography/x509/base.py", line 16, in <module>
from cryptography.x509.extensions import Extension, ExtensionType
File "/home/garrett/.local/lib/python3.6/site-packages/cryptography/x509/extensions.py", line 18, in <module>
from cryptography.hazmat.primitives import constant_time, serialization
File "/home/garrett/.local/lib/python3.6/site-packages/cryptography/hazmat/primitives/constant_time.py", line 11, in <module>
from cryptography.hazmat.bindings._constant_time import lib
ModuleNotFoundError: No module named '_cffi_backend'
fetzerch commented
Does pip3 install --upgrade cffi
solve it? I remember the upgrade to 18.04 also caused some troubles on my machine.
I'll try to package the script properly, then it's easier to install (even in a virtualenv).