Mnemosyne won't run on a fresh Ubuntu 20.04 LTS installation.

64 views
Skip to first unread message

santi

unread,
Jun 30, 2020, 2:29:10 PM6/30/20
to mnemosyne-proj-users
Hi all, I'm getting this error message the first time I run mnemosyne on a new ubuntu system. I haven't got a clue, so I would appreciate any help. Thanks in advance:

santi@UbuntuLaptop:~$ mnemosyne
Log body:
 An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 268, in <module>
    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.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/pronouncers/google_pronouncer.py", line 5, in <module>
    from gtts import gTTS
 ModuleNotFoundError: No module named 'gtts'

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

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 268, in <module>
    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.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/pronouncers/google_pronouncer.py", line 5, in <module>
    from gtts import gTTS
 ModuleNotFoundError: No module named 'gtts'
An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
  File "/usr/bin/mnemosyne", line 268, in <module>
    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.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/pronouncers/google_pronouncer.py", line 5, in <module>
    from gtts import gTTS
 ModuleNotFoundError: No module named 'gtts'

Peter Bienstman

unread,
Jun 30, 2020, 3:10:38 PM6/30/20
to mnemosyne-...@googlegroups.com
You need to install gtts:

sudo pip3 install gtts

Peter 

--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/7d450def-fcb4-411e-bc6e-dafd453de463o%40googlegroups.com.

santi

unread,
Jul 1, 2020, 11:28:22 AM7/1/20
to mnemosyne-proj-users
Thanks a lot Peter, that worked, but now sounds in my cards doesn't seem to work. I mean the ones in the form

<audio src="word.wav">

On the other hand, those like this

<audio controls>

<source src="__funfair.wav" type="audio/mpeg">

</audio>


do work


That's really odd, maybe I'm missing some other dependencies, since I plumped for a rather minimal ubuntu installation this time arround.

Peter Bienstman

unread,
Jul 1, 2020, 11:59:21 AM7/1/20
to mnemosyne-...@googlegroups.com
The sound files are probably not in the dedicated media directory. 

Have you added your sounds through the right click menu in the card editor?

Peter 

--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.

santi

unread,
Jul 1, 2020, 1:21:04 PM7/1/20
to mnemosyne-proj-users
Yes, I added them from the right button menu, and they are in the media directory. In fact, I just copied the whole .local/share/mnemosyne directory, they've been there for years. I've also tried to add new sound files through the same menu procedure but they didn't show up either. Images on the other hands work just fine.





On Tuesday, 30 June 2020 20:29:10 UTC+2, santi wrote:
On Tuesday, 30 June 2020 20:29:10 UTC+2, santi wrote:

Peter Bienstman

unread,
Jul 1, 2020, 2:46:13 PM7/1/20
to mnemosyne-...@googlegroups.com
Try installing mplayer, so that it can be called from the command line.

Peter 

--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.

Errol Fransman

unread,
Jul 2, 2022, 4:22:39 PMJul 2
to mnemosyne-proj-users
Hi Peter.  Please help, with the same problem; except I'm using Ubuntu 22.04 LTS.   Thanks.

Peter Bienstman

unread,
Jul 2, 2022, 4:25:21 PMJul 2
to mnemosyne-proj-users
There seem to be two different issues marked below. Which one do you have problems with? Did you try what I suggested below?

Peter 

Reply all
Reply to author
Forward
0 new messages