From: loreb <loreb@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [WIP] New package: mnemosyne-2.10.1
Date: Wed, 14 Jun 2023 18:21:20 +0200 [thread overview]
Message-ID: <20230614162120.sCTi_kmywmCALywGgKZkaAelfGpmWvs_TjBiAqxfmtM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-40063@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 6581 bytes --]
New comment by loreb on void-packages repository
https://github.com/void-linux/void-packages/pull/40063#issuecomment-1591594834
Comment:
This tiny patch
```
diff --git a/srcpkgs/python3-gtts/template b/srcpkgs/python3-gtts/template
index 17b4fd45..949071dc 100644
--- a/srcpkgs/python3-gtts/template
+++ b/srcpkgs/python3-gtts/template
@@ -2,8 +2,8 @@
pkgname=python3-gtts
version=2.3.2
revision=1
-build_style=python3-module
-hostmakedepends="python3-setuptools"
+build_style=python3-pep517
+hostmakedepends="python3-setuptools python3-wheel"
depends="python3 python3-click"
checkdepends="python3-click python3-mock python3-urllib3 python3-requests python3-testfixtures python3-wheel tox"
short_desc="Module and CLI text-to-speech tool using Google Translate API"
@@ -14,6 +14,13 @@ changelog="https://raw.githubusercontent.com/pndurette/gTTS/main/CHANGELOG.md"
distfiles="${PYPI_SITE}/g/gTTS/gTTS-${version}.tar.gz"
checksum=5314f7dedb4230889ff4773edd37e101408497e166982027b8d9582a4585eb4f
+pre_install() {
+ #dist/gTTS-2.3.2-py3-none-any.whl
+ for i in dist/gTTS-*.whl ; do
+ test -e "$i" || continue
+ cp -f "$i" "${i,,}" # lowercase
+ done
+}
post_install() {
vlicense LICENSE
}
```
and adding a couple of missing dependencies (python3-pyqt6-gui, python3-pyqt6-widgets, python3-pyqt6-printsupport, python3-pyqt6-webchannel)
leads to mnemosyne running but unable to find one of its own modules:
```
Script started on 2023-06-14 18:08:50+02:00 [TERM="rxvt-unicode-256color" TTY="/dev/pts/4" COLUMNS="80" LINES="24"]
$ mnemosyne;echo exited $?;exit
/usr/lib/python3.11/site-packages/mnemosyne/libmnemosyne/__init__.py:377: UserWarning: google_trans_new package is not installed. Google translate feature will not be available.
warnings.warn("google_trans_new package is not installed. Google translate feature will not be available.")
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-_luser3'
Log body:
An unexpected error has occurred.
Please forward the following info to the developers:
Traceback (innermost last):
File "/bin/mnemosyne", line 312, in <module>
mnemosyne.initialise(data_dir=data_dir, filename=filename,
File "/usr/lib/python3.11/site-packages/mnemosyne/libmnemosyne/__init__.py", line 411, in initialise
self.register_components()
File "/usr/lib/python3.11/site-packages/mnemosyne/libmnemosyne/__init__.py", line 476, in register_components
importlib.import_module(module_name), class_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.11/site-packages/mnemosyne/pyqt_ui/main_wdgt.py", line 8, in <module>
from mnemosyne.pyqt_ui.ui_main_wdgt import Ui_MainWdgt
ModuleNotFoundError: No module named 'mnemosyne.pyqt_ui.ui_main_wdgt'
An unexpected error has occurred.
Please forward the following info to the developers:
Traceback (innermost last):
File "/bin/mnemosyne", line 312, in <module>
mnemosyne.initialise(data_dir=data_dir, filename=filename,
File "/usr/lib/python3.11/site-packages/mnemosyne/libmnemosyne/__init__.py", line 411, in initialise
self.register_components()
File "/usr/lib/python3.11/site-packages/mnemosyne/libmnemosyne/__init__.py", line 476, in register_components
importlib.import_module(module_name), class_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.11/site-packages/mnemosyne/pyqt_ui/main_wdgt.py", line 8, in <module>
from mnemosyne.pyqt_ui.ui_main_wdgt import Ui_MainWdgt
ModuleNotFoundError: No module named 'mnemosyne.pyqt_ui.ui_main_wdgt'
An unexpected error has occurred.
Please forward the following info to the developers:
Traceback (innermost last):
File "/bin/mnemosyne", line 312, in <module>
mnemosyne.initialise(data_dir=data_dir, filename=filename,
File "/usr/lib/python3.11/site-packages/mnemosyne/libmnemosyne/__init__.py", line 411, in initialise
self.register_components()
File "/usr/lib/python3.11/site-packages/mnemosyne/libmnemosyne/__init__.py", line 476, in register_components
importlib.import_module(module_name), class_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.11/site-packages/mnemosyne/pyqt_ui/main_wdgt.py", line 8, in <module>
from mnemosyne.pyqt_ui.ui_main_wdgt import Ui_MainWdgt
ModuleNotFoundError: No module named 'mnemosyne.pyqt_ui.ui_main_wdgt'
exited 1
Script done on 2023-06-14 18:08:57+02:00 [COMMAND_EXIT_CODE="0"]
```
As I'm not really experienced packaging python programs, it looks to me that it's failing to import a module that is... right there???
next prev parent reply other threads:[~2023-06-14 16:21 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-20 21:44 [PR PATCH] [WIP] New package: mnemosyne-2.9 Eloitor
2022-10-20 21:46 ` [PR PATCH] [Updated] " Eloitor
2022-10-20 22:13 ` Eloitor
2022-10-20 22:24 ` Eloitor
2022-10-20 23:31 ` classabbyamp
2022-10-20 23:32 ` classabbyamp
2022-10-21 13:02 ` [PR PATCH] [Updated] " Eloitor
2023-03-30 1:56 ` github-actions
2023-03-30 10:25 ` Eloitor
2023-05-26 11:10 ` [PR PATCH] [Updated] " Eloitor
2023-05-26 12:35 ` [PR PATCH] [Updated] [WIP] New package: mnemosyne-2.10.1 Eloitor
2023-05-26 12:50 ` Eloitor
2023-05-26 12:53 ` Eloitor
2023-05-26 12:55 ` Eloitor
2023-05-26 12:58 ` Eloitor
2023-06-14 16:21 ` loreb [this message]
2023-06-15 15:27 ` loreb
2023-08-29 13:02 ` loreb
2023-09-02 17:33 ` [PR PATCH] [Updated] " Eloitor
2023-09-02 18:06 ` Eloitor
2023-09-02 18:32 ` Eloitor
2023-09-02 18:33 ` Eloitor
2023-09-02 18:37 ` [PR PATCH] [Updated] " Eloitor
2023-09-04 15:20 ` loreb
2023-09-04 22:27 ` [PR PATCH] [Updated] " Eloitor
2023-09-05 13:57 ` [PR REVIEW] " loreb
2023-09-05 13:59 ` loreb
2023-09-05 14:33 ` [PR PATCH] [Updated] " Eloitor
2023-09-05 14:41 ` Eloitor
2023-09-05 14:41 ` Eloitor
2023-09-05 15:25 ` loreb
2023-09-05 16:55 ` Eloitor
2023-09-06 5:35 ` Eloitor
2023-09-06 5:51 ` Eloitor
2023-09-06 9:02 ` [PR PATCH] [Updated] " Eloitor
2023-09-06 9:05 ` Eloitor
2023-09-06 13:10 ` loreb
2023-09-06 17:04 ` [PR PATCH] [Updated] " Eloitor
2023-09-06 17:28 ` Eloitor
2023-09-06 17:41 ` Eloitor
2023-09-06 17:47 ` Eloitor
2023-09-06 18:02 ` Eloitor
2023-09-06 18:07 ` Eloitor
2023-09-07 12:32 ` loreb
2023-09-07 15:26 ` [PR PATCH] [Updated] " Eloitor
2023-09-07 15:28 ` Eloitor
2023-09-07 15:45 ` Eloitor
2023-09-07 15:51 ` Eloitor
2023-09-07 16:04 ` [PR PATCH] [Updated] " Eloitor
2023-09-07 16:08 ` Eloitor
2023-09-07 16:12 ` Eloitor
2023-09-07 16:19 ` Eloitor
2023-09-08 14:25 ` loreb
2023-09-08 15:56 ` [PR PATCH] [Updated] " Eloitor
2023-09-08 15:56 ` Eloitor
2023-12-08 1:46 ` github-actions
2023-12-09 16:12 ` loreb
2024-02-14 7:47 ` [PR PATCH] [Updated] " Eloitor
2024-02-14 8:02 ` [PR PATCH] [Updated] New package: mnemosyne-2.11 Eloitor
2024-02-14 8:03 ` Eloitor
2024-05-15 1:48 ` github-actions
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230614162120.sCTi_kmywmCALywGgKZkaAelfGpmWvs_TjBiAqxfmtM@z \
--to=loreb@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).