Stops with that error: Traceback (innermost last): File "/usr/local/bin/mnemosyne", line 270, in <module> debug_file=options.debug_file) File "/usr/local/lib/python3.7/site-packages/mnemosyne/libmnemosyne/__init__.py", line 400, in initialise self.register_components() File "/usr/local/lib/python3.7/site-packages/mnemosyne/libmnemosyne/__init__.py", line 465, in register_components importlib.import_module(module_name), class_name) File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/usr/local/lib/python3.7/site-packages/mnemosyne/libmnemosyne/translators/google_translator.py", line 5, in <module> from googletrans import Translator as gTranslator ModuleNotFoundError: No module named 'googletrans'
There is no maintainer of this port currently, would you want to create a patch fix this and take the maintainership? Thanks!
Needs two ports: - googletrans - gtts (apparently)
Created attachment 216413 [details] py-mnemosyne-add-missing-dependencies.patch Here's a first draft of patch that adds the missing dependencies: - audio/py-gtts - security/py-gtts-token (required by audio/py-gtts) - textproc/py-googletrans The games/py-mnemosyne port needs to be limited to Python 3.7+ to keep the dependency chains intact. This is because textproc/py-googletrans depends on www/py-httpx which is only for Python 3.7+ . We definitely need also to merge whole changes to the 2020Q3 branch as the port is broken there at the moment. (In reply to gspu from comment #0) I already did some small runtime tests and the games/py-mnemosyne starts as expected. Can you please test the attached patch if it works for you?
Works for me, nice! Thanks allot.
Created attachment 216499 [details] py-mnemosyne-add-missing-dependencies.patch Changes from kai's patch: games/py-mnemosyne: - Take Maintainer'ship - Alphabetize USE_PYTHON and add concurrent since it installs bin/mnemosyne - Fix post-patch textproc/py-googletrans: - Use == as equality for httpx version Thanks kai
A commit references this bug: Author: lbartoletti Date: Thu Jul 30 19:18:15 UTC 2020 New revision: 543817 URL: https://svnweb.freebsd.org/changeset/ports/543817 Log: games/py-mnemosyne: Take Maintainer'ship, fix runtime error and add missing dependencies Latest version of games/py-mnemosyne requires new dependencies. This commit adds the missing dependencies: - audio/py-gtts - security/py-gtts-token (required by audio/py-gtts) - textproc/py-googletrans The games/py-mnemosyne port needs to be limited to Python 3.7+ to keep the dependency chains intact. This is because textproc/py-googletrans depends on www/py-httpx which is only for Python 3.7+. PR: 247595 Submitted by: kai Reported by: gspurki@gmail.com Approved by: tcberner (mentor) MFH: 2020Q3 Differential Revision: https://reviews.freebsd.org/D25895 Changes: head/audio/Makefile head/audio/py-gtts/ head/audio/py-gtts/Makefile head/audio/py-gtts/distinfo head/audio/py-gtts/pkg-descr head/games/py-mnemosyne/Makefile head/security/Makefile head/security/py-gtts-token/ head/security/py-gtts-token/Makefile head/security/py-gtts-token/distinfo head/security/py-gtts-token/pkg-descr head/textproc/Makefile head/textproc/py-googletrans/ head/textproc/py-googletrans/Makefile head/textproc/py-googletrans/distinfo head/textproc/py-googletrans/pkg-descr
A commit references this bug: Author: lbartoletti Date: Sat Aug 1 07:15:40 UTC 2020 New revision: 543891 URL: https://svnweb.freebsd.org/changeset/ports/543891 Log: MFH: r543817 games/py-mnemosyne: Take Maintainer'ship, fix runtime error and add missing dependencies Latest version of games/py-mnemosyne requires new dependencies. This commit adds the missing dependencies: - audio/py-gtts - security/py-gtts-token (required by audio/py-gtts) - textproc/py-googletrans The games/py-mnemosyne port needs to be limited to Python 3.7+ to keep the dependency chains intact. This is because textproc/py-googletrans depends on www/py-httpx which is only for Python 3.7+. PR: 247595 Submitted by: kai Reported by: gspurki@gmail.com Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D25895 Approved by: ports-secteam (joneum) Changes: _U branches/2020Q3/ branches/2020Q3/audio/Makefile branches/2020Q3/audio/py-gtts/ branches/2020Q3/games/py-mnemosyne/Makefile branches/2020Q3/security/Makefile branches/2020Q3/security/py-gtts-token/ branches/2020Q3/textproc/Makefile branches/2020Q3/textproc/py-googletrans/
Committed and merged in quarterly too. Thanks.