Bug 32131 - Starting mnemosyne application fails, when in terminal gives unexpected error and a descriptive log.
Summary: Starting mnemosyne application fails, when in terminal gives unexpected error...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA8-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2023-07-23 10:26 CEST by Georgios Gialedakis
Modified: 2023-08-23 21:58 CEST (History)
5 users (show)

See Also:
Source RPM: mnemosyne-2.8-2.mga9.src.rpm
CVE:
Status comment:


Attachments

Description Georgios Gialedakis 2023-07-23 10:26:20 CEST
Description of problem: In Xfce environment, testing it in virtualbox I installed Mnemosyne from Install Software section of Mageia Control Center and it failed to launch from the menu. So I launched from terminal to see why and it gave me an error log with the instructions to notify developers.


Version-Release number of selected component (if applicable): Mageia 9 RC


How reproducible: Launch the application Mnemosyne


Steps to Reproduce:
1.Install Mnemosyne from Mageia Control Center
2.Launch Mnemosyne from terminal
3.Error output
Comment 1 sturmvogel 2023-07-23 12:13:21 CEST
It is always helpful to attach error messages so that not others have to do the work.


error:
[neun@test9 ~]$ mnemosyne
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 <module>
    mnemosyne.initialise(data_dir=data_dir, filename=filename,
  File "/usr/lib/python3.10/site-packages/mnemosyne/libmnemosyne/__init__.py", line 400, in initialise
    self.register_components()
  File "/usr/lib/python3.10/site-packages/mnemosyne/libmnemosyne/__init__.py", line 465, in register_components
    importlib.import_module(module_name), class_name)
  File "/usr/lib64/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/mnemosyne/libmnemosyne/translators/google_translator.py", line 5, in <module>
    from googletrans import Translator as gTranslator
 ModuleNotFoundError: No module named 'googletrans'

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

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 278, in <module>
    mnemosyne.initialise(data_dir=data_dir, filename=filename,
  File "/usr/lib/python3.10/site-packages/mnemosyne/libmnemosyne/__init__.py", line 400, in initialise
    self.register_components()
  File "/usr/lib/python3.10/site-packages/mnemosyne/libmnemosyne/__init__.py", line 465, in register_components
    importlib.import_module(module_name), class_name)
  File "/usr/lib64/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/mnemosyne/libmnemosyne/translators/google_translator.py", line 5, in <module>
    from googletrans import Translator as gTranslator
 ModuleNotFoundError: No module named 'googletrans'
An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 278, in <module>
    mnemosyne.initialise(data_dir=data_dir, filename=filename,
  File "/usr/lib/python3.10/site-packages/mnemosyne/libmnemosyne/__init__.py", line 400, in initialise
    self.register_components()
  File "/usr/lib/python3.10/site-packages/mnemosyne/libmnemosyne/__init__.py", line 465, in register_components
    importlib.import_module(module_name), class_name)
  File "/usr/lib64/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/mnemosyne/libmnemosyne/translators/google_translator.py", line 5, in <module>
    from googletrans import Translator as gTranslator
 ModuleNotFoundError: No module named 'googletrans'
[neun@test9 ~]$
Comment 2 sturmvogel 2023-07-23 12:28:04 CEST
This package is improperly built as it requires googletrans which is not available in Mageia.
https://py-googletrans.readthedocs.io/en/latest/

Broken with the same error message in Mageia 8, so it was never tested....

Whiteboard: (none) => MGA8TOO

Comment 3 Jani Välimaa 2023-07-23 14:51:38 CEST
Two new pkgs are needed. Both are now imported to SVN, but not pushed to BS.
python-googletrans
python-gtts

One new req is needed.
python3-argon2-cffi

Whiteboard: MGA8TOO => MGA8TOO MGA9TOO

Comment 4 Jani Välimaa 2023-07-23 21:25:06 CEST
Will update upcoming mga9 and cauldron later.

Please test mnemosyne-2.7.3-1.1.mga8 from mga8 core/updates_testing.

SRPMS:
mnemosyne-2.7.3-1.1.mga8
python-googletrans-3.0.0-1.mga8
python-gtts-2.2.4-1.mga8

RPMS:
mnemosyne-2.7.3-1.1.mga8
python3-googletrans-3.0.0-1.mga8
python3-gtts-2.2.4-1.mga8

CC: (none) => jani.valimaa

Comment 5 Jani Välimaa 2023-07-24 11:46:01 CEST
Please test with mnemosyne-2.8-3.mga9 from cauldron core/updates_testing. It'll also pull pkgs from comment 3.
sturmvogel 2023-07-24 12:17:18 CEST

Assignee: bugsquad => qa-bugs

Comment 6 Herman Viaene 2023-07-24 16:00:39 CEST
MGA8-64 MATE on Acer Aspire 5253
No installation issues.
Mnemosyne opens correctly, various menu items behave OK.

Whiteboard: MGA8TOO MGA9TOO => MGA8TOO MGA9TOO MGA8-64-OK
CC: (none) => herman.viaene

Comment 7 Thomas Andrews 2023-07-27 16:58:22 CEST
MGA9-64 Plasma system, in Virtualbox.

Using just the package names from comment 4 in qarepo, with wildcards instead of version numbers, I downloaded the packages from updates/testing. Then I did a new install, rather than an update. 90 packages in total.

No installation issues. I successfully launched from the menu, and cycled through various introductory screens. No issues noted. This looks OK for MGA9.

Validating.

Whiteboard: MGA8TOO MGA9TOO MGA8-64-OK => MGA8TOO MGA9TOO MGA8-64-OK MGA9-64-OK
CC: (none) => andrewsfarm, sysadmin-bugs
Keywords: (none) => validated_update

Comment 8 Thomas Backlund 2023-08-19 21:18:59 CEST
moved to release for mga9

Version: Cauldron => 8
Whiteboard: MGA8TOO MGA9TOO MGA8-64-OK MGA9-64-OK => MGA8-64-OK

Dave Hodgins 2023-08-20 21:24:48 CEST

CC: (none) => davidwhodgins
Keywords: (none) => advisory

Comment 9 Mageia Robot 2023-08-23 21:58:10 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2023-0056.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.