Text File Import Error

47 views
Skip to first unread message

Nabu

unread,
Feb 21, 2017, 7:51:38 AM2/21/17
to mnemosyne-proj-users

Hi everyone

I'm trying to import a tab-separated text file into Mnemosyne 2.4 on OS X, but I keep getting the following error:

Traceback (innermost last):
  File "mnemosyne/pyqt_ui/import_dlg.py", line 76, in accept
  File "mnemosyne/libmnemosyne/file_formats/tsv.py", line 43, in do_import
  File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/ascii.py", line 26, in decode
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128)

The text file contains Persian words with their pronunciation and German translation ('pronunciation' tab 'meaning' tab 'foreign word'). Is there a way to solve this issue? I would be very grateful.

Cheers
Nabu



ar_Pe.txt

Peter Bienstman

unread,
Feb 21, 2017, 7:52:44 AM2/21/17
to mnemosyne-...@googlegroups.com

Hi,

 

Please upgrade to 2.4.1.

 

Cheers,

 

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 post to this group, send email to mnemosyne-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/c486ca70-8b61-41be-b3b2-86842fa3c8e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nabu

unread,
Feb 21, 2017, 8:12:16 AM2/21/17
to mnemosyne-proj-users

Hi Peter

Thanks for the prompt answer! The import now works like a charm. Unfortunately, the fields 'foreign word', 'pronunciation' and 'meaning' got mixed up. Is there a way to change this?

Cheers
Nabu

Peter Bienstman

unread,
Feb 21, 2017, 9:30:39 AM2/21/17
to mnemosyne-...@googlegroups.com

Hi,

 

The order of the columns that Mnemosyne expects is ‘foreign word’, ‘pronunciation’, ‘meaning’ and optionally ‘notes’. If your file has the columns in a different order, you can use e.g. Excel to swap them around.

 

Cheers,

 

Peter

 

From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-...@googlegroups.com] On Behalf Of Nabu


Sent: 21 February 2017 14:12
To: mnemosyne-proj-users <mnemosyne-...@googlegroups.com>

--
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 post to this group, send email to mnemosyne-...@googlegroups.com.

Nabu

unread,
Feb 21, 2017, 10:40:21 AM2/21/17
to mnemosyne-proj-users

Hi Peter

Thanks again! I solved it using OpenOffice Calc. Excel messed with the Persian characters.


Cheers
Nabu



Am Dienstag, 21. Februar 2017 13:51:38 UTC+1 schrieb Nabu:
Reply all
Reply to author
Forward
0 new messages