Error on data inout Tab-separated

26 views
Skip to first unread message

Henrik in Oslo

unread,
Jan 11, 2019, 12:44:57 PM1/11/19
to mnemosyne-proj-users
Hi, 
Thanks again for excellent program and work. I only recently upgraded to Mnem 2.6.1 (on Mac 10.13.6). 

I frequently add "Tab-separated text fies" (UTF-8). Ver 2.6.1 gives error message (attached). 

I tested a re-import of a file I have previously imported. Similar error message. 

Anything I could try? 

/ Henrik
Import_from_file_and_Mnemosyne_-_0_F_Bas_00_EJ_All________XXXXX.png

Peter Bienstman

unread,
Jan 12, 2019, 12:45:28 AM1/12/19
to mnemosyne-...@googlegroups.com
Hi,

Are you sure the file is utf8 encoded? Have you successfully imported files with non latin characters before, or is this the first time? If you did so before, do you remember which Mnemosyne version that was?

Cheers,

Peter



From: Henrik in Oslo <001h...@gmail.com>
Sent: Friday, 11 January 2019 18:45
To: mnemosyne-proj-users
Subject: [mnemosyne-proj-users] Error on data inout Tab-separated

--
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/3930acc4-c703-4944-852a-fcc6fdcb1339%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Henrik in Oslo

unread,
Jan 12, 2019, 3:37:58 PM1/12/19
to mnemosyne-proj-users
Hi, 
Thanks for quick answer. 

Saved from MS-WORD (on Mac) , file as pure text (.txt), "other coding", chose Unicode (UTF-8). Saved also on Win 7, same problem. 

Moved from 2.3.6 this autumn.  

I attach file that now fail on 2.3.6  "recap 2019_jan11_EJ.txt" and one that I imported (without problems)while on ver  2.6.1 "recap 2015_nov22_EJ"

/ Henrik


On Saturday, 12 January 2019 06:45:28 UTC+1, Peter Bienstman wrote:
Hi,

Are you sure the file is utf8 encoded? Have you successfully imported files with non latin characters before, or is this the first time? If you did so before, do you remember which Mnemosyne version that was?

Cheers,

Peter



From: Henrik in Oslo <001h...@gmail.com>
Sent: Friday, 11 January 2019 18:45
To: mnemosyne-proj-users
Subject: [mnemosyne-proj-users] Error on data inout Tab-separated

Hi, 
Thanks again for excellent program and work. I only recently upgraded to Mnem 2.6.1 (on Mac 10.13.6). 

I frequently add "Tab-separated text fies" (UTF-8). Ver 2.6.1 gives error message (attached). 

I tested a re-import of a file I have previously imported. Similar error message. 

Anything I could try? 

/ Henrik

--
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-users+unsub...@googlegroups.com.
To post to this group, send email to mnemosyne...@googlegroups.com.
recap 2019_jan11_EJ.txt
recap 2015_nov22_EJ.txt

Peter Bienstman

unread,
Jan 14, 2019, 3:18:07 AM1/14/19
to mnemosyne-...@googlegroups.com, Devin Howard (devin@callysto.com)

Hi,

 

This must be a Mac only issue, as I can import it just fine under Windows.

 

Devin, would it be possible for you to have a look at this?

 

Thanks!

 

Peter

To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@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.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/8bbd701b-c1ea-4cc9-a765-8220d51b1cf6%40googlegroups.com.

Devin Howard

unread,
Jan 14, 2019, 11:05:42 AM1/14/19
to Peter Bienstman, mnemosyne-...@googlegroups.com
I can replicate this on 2.6.1 on OSX. I'll take a look

Devin Howard

unread,
Jan 14, 2019, 11:30:45 AM1/14/19
to Peter Bienstman, mnemosyne-...@googlegroups.com
Ah ha, it looks like a debugging print statement was left in the code during a refactor of the file that processes TSV: https://github.com/mnemosyne-proj/mnemosyne/blob/master/mnemosyne/libmnemosyne/file_formats/tsv.py#L89

I have removed this line locally and can confirm it fixes the problem. I've posted a pull request to Github to fix this for the next release https://github.com/mnemosyne-proj/mnemosyne/pull/105

I'm posting a re-built package in this Source Forge folder https://sourceforge.net/projects/mnemosyne-proj/files/mnemosyne/mnemosyne-2.6.1/

Try downloading the "Mnemosyne-2.6.1-tsv-fix.dmg" version and see if it helps.

Peter Bienstman

unread,
Jan 15, 2019, 5:51:19 AM1/15/19
to Devin Howard, mnemosyne-...@googlegroups.com

Cool, thanks! Who’d have thought printing Unicode on OSX didn’t work J

 

Cheers,

 

Peter

Reply all
Reply to author
Forward
0 new messages