Bug#995084: mnemosyne: After installing, Mnemosyne fails to start: fails to import PasswordHasher from argon2

2021-09-26 Thread Julien Puydt
Le sam. 25 sept. 2021 à 22:27, Kit Haines  a écrit :

> Package: mnemosyne
> Version: 2.8+ds1-1
> Severity: important
> from argon2 import PasswordHasher
>  ImportError: cannot import name 'PasswordHasher' from 'argon2'
> (/home/kit/.local/lib/python3.9/site-packages/argon2.py)
>

As you see, the system-installed mnemosyne doesn't work with the
user-installed argon2.

I suggest you clean up your setup, and report back on the result.

Cheers,

J. Puydt

>


Bug#995084: mnemosyne: After installing, Mnemosyne fails to start: fails to import PasswordHasher from argon2

2021-09-25 Thread Kit Haines
Package: mnemosyne
Version: 2.8+ds1-1
Severity: important

Dear Maintainer,

I just installed mnemosyne on my machine.  When I launch it (mnemosyne & in the 
terminal), I get the following message:

kit@gelfly:~/writing/al$ mnemosyne &
[1] 466123
kit@gelfly:~/writing/al$ Log body:
 An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 278, in 
mnemosyne.initialise(data_dir=data_dir, filename=filename,
  File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/__init__.py", 
line 400, in initialise
self.register_components()
  File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/__init__.py", 
line 465, in register_components
importlib.import_module(module_name), class_name)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 986, in _find_and_load_unlocked
  File "", line 680, in _load_unlocked
  File "", line 850, in exec_module
  File "", line 228, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/mnemosyne/pyqt_ui/qt_sync_server.py", 
line 15, in 
from mnemosyne.libmnemosyne.sync_server import SyncServer
  File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/sync_server.py", 
line 9, in 
from argon2 import PasswordHasher
 ImportError: cannot import name 'PasswordHasher' from 'argon2' 
(/home/kit/.local/lib/python3.9/site-packages/argon2.py)

An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 278, in 
mnemosyne.initialise(data_dir=data_dir, filename=filename,
  File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/__init__.py", 
line 400, in initialise
self.register_components()
  File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/__init__.py", 
line 465, in register_components
importlib.import_module(module_name), class_name)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1030, in _gcd_import
  File "", line 1007, in _find_and_load
  File "", line 986, in _find_and_load_unlocked
  File "", line 680, in _load_unlocked
  File "", line 850, in exec_module
  File "", line 228, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/mnemosyne/pyqt_ui/qt_sync_server.py", 
line 15, in 
from mnemosyne.libmnemosyne.sync_server import SyncServer
  File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/sync_server.py", 
line 9, in 
from argon2 import PasswordHasher
 ImportError: cannot import name 'PasswordHasher' from 'argon2' 
(/home/kit/.local/lib/python3.9/site-packages/argon2.py)

[1]+  Exit 1  mnemosyne
kit@gelfly:~/writing/al$ 

I also get a window pop-up, with the same error as above showing.

I've tried installing argon2 with pip, to no change in the error message,

Best regards,
- Kit

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-7-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mnemosyne depends on:
ii  libjs-sphinxdoc 3.5.4-2
ii  libqt5sql5-sqlite   5.15.2+dfsg-12
ii  python3 3.9.2-3
ii  python3-cheroot 8.5.2+ds1-3
ii  python3-cherrypy3   18.6.1-2
ii  python3-gtts2.0.3-1
ii  python3-matplotlib  3.3.4-1
ii  python3-pil 8.1.2+dfsg-0.3
ii  python3-pyqt5   5.15.4+dfsg-3
ii  python3-pyqt5.qtsql 5.15.4+dfsg-3
ii  python3-pyqt5.qtwebchannel  5.15.4+dfsg-3
ii  python3-pyqt5.qtwebengine   5.15.4-2+b1
ii  python3-webob   1:1.8.6-1.1

mnemosyne recommends no packages.

mnemosyne suggests no packages.

-- no debconf information