Re: [mnemosyne-proj-users] Uncaught exception importing .cards file in 2.1

135 views
Skip to first unread message

Peter Bienstman

unread,
Oct 23, 2012, 3:09:08 AM10/23/12
to mnemosyne-...@googlegroups.com
Hi,

Try the attached new version of the cards. I will fix the version
already uploaded in the coming days.

Thanks!

Peter

On 10/22/2012 06:16 PM, Panthera Morphous wrote:
> Uncaught exception!
> Traceback (innermost last):
> File "mnemosyne\pyqt_ui\import_dlg.pyo", line 78, in accept
> File "mnemosyne\libmnemosyne\file_formats\mnemosyne2_Cards.pyo", line
> 196, in do_import
> ValueError: need more than 1 value to unpack
>
> This is a fresh install, I get the error when trying to import these
> cards: http://www.mnemosyne-proj.org/cards/french-higher-gcse-ocr
>
> Thanks.
French cards 2.cards

Peter Bienstman

unread,
Oct 24, 2012, 10:22:49 AM10/24/12
to mnemosyne-...@googlegroups.com
Can you tell me in line 151 of which module the error is? Also try deleting the file config in mnemosynes datadir, typically c:/users/Bodrikikpetra/application data
/mnemosyne

Peter

bodrik...@gmail.com wrote:
I have just downloaded mnemosyne and it doesn't start at all. It just writes out 

uncaught exception
traceback innermost last
file menmosyne"line 151 in modul
...
....
....
....
WindowsError: Error3 the system cannot find the path specified:
u'backups/default-20121024-110926.db_media'
What is this

Peter Bienstman

unread,
Oct 27, 2012, 2:01:33 AM10/27/12
to mnemosyne-...@googlegroups.com
What you deleted was the 1.x config files, I was talking about the 2.x
config files.

Anyway, it seems Ubuntu has packaged a 2.0 prerelease version, unfortunately.

Please upgrade to 2.1 from www.mnemosyne-proj.org

Peter

Quoting chris....@gmail.com:

> Hi
>
> Sorry for chipping in, but I have the same problem although on Ubuntu.
> I upgraded from Ubuntu 12.04 (mnemosyne version 1.2.2) to Ubuntu
> 12.10 (mnemosyne 2.0~RC1-3).
>
> When I run mnemosyne, I get the following output:
>
> Uncaught exception!
> Traceback (innermost last):
> File "/usr/bin/mnemosyne", line 146, in <module>
> debug_file=options.debug_file)
> File
> "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/__init__.py", line
> 184, in initialise
> Upgrade1(self.component_manager).run()
> File
> "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/upgrades/upgrade1.py", line 36, in
> run
> self.upgrade_from_old_data_dir(old_data_dir)
> File
> "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/upgrades/upgrade1.py", line 121, in
> upgrade_from_old_data_dir
> format.do_import(old_database)
> File
> "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/file_formats/mnemosyne1_mem.py", line 41, in
> do_import
> self.create_cards_from_mnemosyne1(extra_tag_name)
> File
> "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/file_formats/mnemosyne1.py", line 53, in
> create_cards_from_mnemosyne1
> self.create_card_from_item(item, extra_tag_name)
> File
> "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/file_formats/mnemosyne1.py", line 128, in
> create_card_from_item
> check_for_duplicates=False, save=False)
> File
> "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/controllers/default_controller.py", line 100, in
> create_new_cards
> assert card_type.is_fact_data_valid(fact_data)
> AssertionError
>
>
>
> When I move "config" in .mnemosyne away as per your advice, I get
> this error message:
>
> Uncaught exception!
> Traceback (innermost last):
> File "/usr/bin/mnemosyne", line 146, in <module>
> debug_file=options.debug_file)
> File
> "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/__init__.py", line
> 184, in initialise
> Upgrade1(self.component_manager).run()
> File
> "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/upgrades/upgrade1.py", line 36, in
> run
> self.upgrade_from_old_data_dir(old_data_dir)
> File
> "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/upgrades/upgrade1.py", line 61, in
> upgrade_from_old_data_dir
> config_file = file(join(old_data_dir, "config"), "rb")
> IOError: [Errno 2] No such file or directory:
> u'/home/<user>/.mnemosyne/config'
>
> and when I touch an empty "config" into existence, I get:
>
> Uncaught exception!
> Traceback (innermost last):
> File "/usr/bin/mnemosyne", line 146, in <module>
> debug_file=options.debug_file)
> File
> "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/__init__.py", line
> 184, in initialise
> Upgrade1(self.component_manager).run()
> File
> "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/upgrades/upgrade1.py", line 36, in
> run
> self.upgrade_from_old_data_dir(old_data_dir)
> File
> "/usr/lib/python2.7/dist-packages/mnemosyne/libmnemosyne/upgrades/upgrade1.py", line 62, in
> upgrade_from_old_data_dir
> for key, value in cPickle.load(config_file).iteritems():
> EOFError
>
>
> Moving away config.py does not help either.
> Are there any other steps I should try? I'd be glad to provide more
> information to solve this.
>
> Best regards
>
> --
> You received this message because you are subscribed to the Google
> Groups "mnemosyne-proj-users" group.
> To post to this group, send email to mnemosyne-...@googlegroups.com.
> To unsubscribe from this group, send email to
> mnemosyne-proj-u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mnemosyne-proj-users/-/dvvGIIed5WUJ.
> For more options, visit https://groups.google.com/groups/opt_out.



Peter Bienstman

unread,
Oct 28, 2012, 2:12:18 AM10/28/12
to mnemosyne-...@googlegroups.com
Feel free to send me your mem file privately, I'll have a look.

Thanks!

Peter

Quoting chris....@gmail.com:

> Hi Peter
>
> Thanks for the advice. I installed Mnemosyne from the tarball and it
> runs fine. I was able to successfully import an 1.1 XML file but
> that only contains a few hundred entries. When I try to import the
> 1.x.mem file which supposedly contains all my entries, the import
> process stops at 19% and returns the following:
>
> Uncaught exception!
> Traceback (innermost last):
> File
> "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.1-py2.7.egg/mnemosyne/pyqt_ui/import_dlg.py", line 78, in
> accept
> self.format().do_import(filename, extra_tag_names)
> File
> "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.1-py2.7.egg/mnemosyne/libmnemosyne/file_formats/mnemosyne1_mem.py", line 42, in
> do_import
> self.create_cards_from_mnemosyne1(extra_tag_names)
> File
> "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.1-py2.7.egg/mnemosyne/libmnemosyne/file_formats/mnemosyne1.py", line 53, in
> create_cards_from_mnemosyne1
> self.create_card_from_item(item, extra_tag_names)
> File
> "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.1-py2.7.egg/mnemosyne/libmnemosyne/file_formats/mnemosyne1.py", line 129, in
> create_card_from_item
> check_for_duplicates=False, save=False)
> File
> "/usr/local/lib/python2.7/dist-packages/Mnemosyne-2.1-py2.7.egg/mnemosyne/libmnemosyne/controllers/default_controller.py", line 100, in
> create_new_cards
> assert card_type.is_fact_data_valid(fact_data)
> AssertionError
>
> Is there any way to check what entry can cause this? The mem file is
> ~3MB in size and contains more than 10'000 entries incl. vocabulary
> in Japanese and Chinese. I'd be happy to upload this somewhere, a 7z
> archive version of it is less than 500kB
>
> cheers
>
> --
> You received this message because you are subscribed to the Google
> Groups "mnemosyne-proj-users" group.
> To post to this group, send email to mnemosyne-...@googlegroups.com.
> To unsubscribe from this group, send email to
> mnemosyne-proj-u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mnemosyne-proj-users/-/EyDe8JmZc9EJ.

Peter Bienstman

unread,
Oct 29, 2012, 4:56:30 PM10/29/12
to mnemosyne-...@googlegroups.com
Try this version:

http://users.ugent.be/~pbienst/pub/Mnemosyne-2.2-pre1.tar.gz

The issue was missing translation info for the card shāngliang.

Cheers,

Peter

Panthera Morphous

unread,
Oct 30, 2012, 11:05:22 AM10/30/12
to mnemosyne-...@googlegroups.com
Thanks, Peter, this is working great now.
Reply all
Reply to author
Forward
0 new messages