--- Please enter the report below this line. ---
I tried to convert an existing wordlist to be able to import it
to Mnemosyne as 'tab delimited (txt)'.
However, the importer wasn't able to import it and presented an error
message:
"""
An unexpected error has occurred.
Please forward the following info to the developers:
Traceback (innermost last):
File "/usr/lib/python3/dist-packages/mnemosyne/pyqt_ui/import_dlg.py",
line 76, in accept
self.format().do_import(filename, extra_tag_names)
File
"/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/file_formats/tsv.py",
line 82, in do_import
tag_names=tag_names, check_for_duplicates=False, save=False)
File
"/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/controllers/default_controller.py",
line 112, in create_new_cards
assert card_type.is_fact_data_valid(fact_data)
AssertionError
"""
In the end, the input file was not absolutely correct: one entry was
missing.
I found out hat this happens when a line directly starts with a tab
(i.e. content is missing).
See also attached file where an error is in line 3.
The other way round (content, tab, line-end) there is a meaningful error
message:
"Badly formed input on line 3:"
Debian Release: 9.4
500 stable-updates ftp.de.debian.org 500 stable
security.debian.org 500 stable ftp.de.debian.org
--- Package information. ---
Depends (Version) | Installed
=========================================-+-===========
libqt5sql5-sqlite | 5.7.1+dfsg-3+b1
python3 (>= 3.5) | 3.5.3-1
python3-cherrypy3 | 3.5.0-2
python3-matplotlib | 2.0.0+dfsg1-2
python3-pyqt5 | 5.7+dfsg-5
python3-pyqt5.qtsql | 5.7+dfsg-5
python3-pyqt5.qtwebchannel | 5.7+dfsg-5
python3-pyqt5.qtwebengine | 5.7+dfsg-5
python3-webob | 1:1.6.2-2
python3:any (>= 3.5~) | libjs-sphinxdoc
(>= 1.0) | 1.4.9-2
We believe that the bug you reported is fixed in the latest version of mnemosyne, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 897184@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Julien Puydt <jpuydt@debian.org> (supplier of updated mnemosyne package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Thu, 14 Jul 2022 12:00:16 +0200 Source: mnemosyne Architecture: source Version: 2.9+ds1-1 Distribution: unstable Urgency: medium Maintainer: Julien Puydt <jpuydt@debian.org> Changed-By: Julien Puydt <jpuydt@debian.org> Closes: 526330 787442 883333 897184 948748 Changes: mnemosyne (2.9+ds1-1) unstable; urgency=medium . * New upstream release (Closes: #883333, #948748, #526330, #897184). * Drop the patch to disable google translator (upstream). * Add a suggest on mplayer for sound (Closes: #787442). Checksums-Sha1: 3fd648d556aaabb284d0a63e11ed388567e1842e 1970 mnemosyne_2.9+ds1-1.dsc 993b0ddb63e898fac282d5973bdccc2048380b52 883160 mnemosyne_2.9+ds1.orig.tar.xz 5fee213b02b56c6a7cb3cfe6cefece44918674e0 15528 mnemosyne_2.9+ds1-1.debian.tar.xz 4a4dfb9fa1dae5cc0c25bf6c29f5407bebec5221 10948 mnemosyne_2.9+ds1-1_source.buildinfo Checksums-Sha256: ea94931468163c0b2612c14a201c5628f5fcf4a74b820dc0c1524e183fdefa45 1970 mnemosyne_2.9+ds1-1.dsc d98d2d1301c07fe55de4d30c59ee29d023a38a123f0d7faa67fea2eb40ec1b50 883160 mnemosyne_2.9+ds1.orig.tar.xz fff9fe28f9f300b4231b05ad0165190b427250354b5aa9e54a601626ae57b5d5 15528 mnemosyne_2.9+ds1-1.debian.tar.xz 71a26cb15ff22bf4a518f185a1d023843c61aa4d7964e84c066767fe031f0dfc 10948 mnemosyne_2.9+ds1-1_source.buildinfo Files: 1eec65e24c95a54b47120ae99a284270 1970 misc optional mnemosyne_2.9+ds1-1.dsc e27cee22b6fdde36ee9d6396ab972c01 883160 misc optional mnemosyne_2.9+ds1.orig.tar.xz 185052ad8992e0705ecf1a1e008980f6 15528 misc optional mnemosyne_2.9+ds1-1.debian.tar.xz bd12fecb1283a34841e0e218b5d07b87 10948 misc optional mnemosyne_2.9+ds1-1_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJGBAEBCgAwFiEEgS7v2KP7pKzk3xFLBMU71/4DBVEFAmLP6VgSHGpwdXlkdEBk ZWJpYW4ub3JnAAoJEATFO9f+AwVRluwQAJbJzWqdNZob0Dv4LoKB8MhvzJpmw5RL TXCj+6lmez1JitZh25K6OlF/5ITuLlu+1qSLfKTU0KBKyeuGz53EpX76qaYehaOD FwjzvTguhLJg9ImO7ku5GJE0OuFkQzWZeCAJ1lSFv++k2SIgchCS4cINDKywlIrm IHFtHnpSxidkO+ineb5rtMyJpMVWGsh+q8eRohUmAC/e6/Ay2uusQyhMwqOiwkDx RtTh18QZEh9+LPchzo1B9+4nmrrpDqfT7q7e56jzuV5SD2jqPejivHllt8TPExTQ 1Rmpxe7IK8oTsY2lrWz4xgeH/BVWmrNEv8Enf5cnvPaPFL9Kg9W3fxCcmSjITCQR by+/F9YrFtxEs9j5TwIePcf9D8ghrOFMCZmbEJ8OqvdXOE3rGufIMLBAF3HWOLiT Tq0sy+3sEE43UqGGWQA1Ow8KXFqQdaKsIrAVJcocwrvspbb2cEwVCG7qbuzsyozw DWBozat6JxcbmiNZXLwR5MLXUUPCNab6+hXYfHOEo7CjznIcBkUm+BT7VR5V9I9h vAg2q8hcpX37Vlif7QQ0eVMDyCoXATHVTaw942n4MJLKKqBmoxw8rU4FlZ62oxvJ 3gvnlsrxgnUB/KC7fVqXNxofyx1QserT36gUIQUoBK+JphZHvDYkExIkR4l9hpeG z1PLMbODnoPK =QBcu -----END PGP SIGNATURE-----