Hi,
Please delete /sdcard/Mnemosyne on your phone, and then upgrade both the client and the server to 2.3.4 RC1:
https://groups.google.com/forum/#!topic/mnemosyne-proj-users/9DP5Lj6zPE4
Also make sure that during the sync you stay in Wifi coverage.
Let me know if the problem still occurs, and if it e.g. also occurs on a dummy sync, i.e. pressing sync even though there are no changes to sync.
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/e19d2913-cf92-415c-9f39-0e341773b0b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Traceback (innermost last):
File "/usr/lib/python2.7/site-packages/mnemosyne/pyqt_ui/add_cards_dlg.py", line 155, in preview
dlg = PreviewCardsDlg(self.component_manager, cards, tag_text, self)
File "/usr/lib/python2.7/site-packages/mnemosyne/pyqt_ui/preview_cards_dlg.py", line 44, in __init__
self.update_dialog()
File "/usr/lib/python2.7/site-packages/mnemosyne/pyqt_ui/preview_cards_dlg.py", line 74, in update_dialog
self.set_answer(card.answer())
File "/usr/lib/python2.7/site-packages/mnemosyne/libmnemosyne/card.py", line 96, in answer
(self, render_chain, **render_args)
File "/usr/lib/python2.7/site-packages/mnemosyne/libmnemosyne/card_type.py", line 75, in render_answer
render_answer(card, **render_args)
File "/usr/lib/python2.7/site-packages/mnemosyne/libmnemosyne/render_chain.py", line 142, in render_answer
return self._render(card, fact_keys, decorators, **render_args)
File "/usr/lib/python2.7/site-packages/mnemosyne/libmnemosyne/render_chain.py", line 153, in _render
card, fact_key, **render_args)
File "/usr/lib/python2.7/site-packages/mnemosyne/pyqt_ui/mplayer_audio.py", line 48, in run
copy(sound_file.replace("file:///", ""), new_name)
File "/usr/lib/python2.7/site-packages/mnemosyne/libmnemosyne/utils.py", line 85, in copy
copyfile(src, dst)
File "/usr/lib/python2.7/site-packages/mnemosyne/libmnemosyne/utils.py", line 61, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: u'home/david/.local/share/mnemosyne/default.db_media/\u8003\u3048\u308b.mp3'
Don't know why the error dialog only appears when the filename contains utf-8 characters. Anyway I think the problem is simply a missing slash -- i.e. u'home/david/.local/share/mnemosyne/default.db_media/\u8003\u3048\u308b.mp3' should be u'/home/david/.local/share/mnemosyne/default.db_media/\u8003\u3048\u308b.mp3'. I tested this calling open() in a python2 shell (without attempting to play the files) and it seemed to work, but without the leading slash it gave an error like this.
I don't have any cards with another type of media (e.g. images) but I suspect that these won't work on the desktop client either (unless the code handling audio is significantly different to the code handling images). The problem doesn't apply to the Android app, which still plays audio fine.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+unsub...@googlegroups.com.
Hi,
These are probably 2 different issues.
To play audio on Linux, you need to have mplayer installed and make sure you have it in your path.
With respect to Unicode filenames, could you check for me if on your system adding an image to a card (both with Unicode and non-Unicode filenames) works?
Thanks!
Peter
Hi,
Also have a look at the info and patch suggestion I posted here:
https://groups.google.com/forum/#!topic/mnemosyne-proj-devel/2V00PMCQKXo
Cheers,
Peter
QObject::setParent: Cannot set parent, new parent is in a different threadQObject::installEventFilter(): Cannot filter events for objects in a different thread.X Error: BadIDChoice (invalid resource ID chosen for this connection) 14 Major opcode: 1 (X_CreateWindow) Resource id: 0x260002fX Error: BadIDChoice (invalid resource ID chosen for this connection) 14 Extension: 139 (RENDER) Minor opcode: 4 (RenderCreatePicture) Resource id: 0x2600030python2: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.Hi,
If you replace review_wdgt.py with the attached file, it will print out the command it uses to start mplayer, which would be useful debug information.
Meanwhile, I will also try to get access to a linux machine, so that I can more easily debug this.
As for commenting out the whole block, it’s possible that we no longer need it, so deleting everything would be a better option.
I will also look into the compacting bug.
Cheers,
Peter
From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-...@googlegroups.com] On Behalf Of David Bailey
Sent: 08 October 2015 18:48
To: mnemosyne-proj-users <mnemosyne-...@googlegroups.com>
Subject: [mnemosyne-proj-users] Re: Bug report
Hello again,
First thing, I tried adding an image card before patching; with and without unicode, there were no errors and the image was displayed properly.
Secondly, the patch fixed the error but I'm still not getting any sound -- mplayer is (and already was) installed and in my path. I tested mplayer from the command line and there were no problems, so something's wrong with the Python library you're using or Mnemosyne's own code.
BTW to fix the unicode audio bug you can probably just change "file:///" to "file://" in the replace function call, instead of commenting out the whole block of code. The problem was that the leading slash was missing, after all!
Also, I found yet another bug where Mnemosyne crashes after running 'compact' from the menu. Command line output:
QObject::setParent: Cannot set parent, new parent is in a different thread
QObject::installEventFilter(): Cannot filter events for objects in a different thread.
X Error: BadIDChoice (invalid resource ID chosen for this connection) 14
Major opcode: 1 (X_CreateWindow)
Resource id: 0x260002f
X Error: BadIDChoice (invalid resource ID chosen for this connection) 14
Extension: 139 (RENDER)
Minor opcode: 4 (RenderCreatePicture)
Resource id: 0x2600030
python2: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
.
$ mplayer -slave -ao -quiet "file:///home/david/.local/share/mnemosyne/default.db_media/考える.mp3" -ss 0 -endpos 999699
...
No such audio driver '-quiet'...$ mplayer -h
...
-ao <drv> select audio output driver ('-ao help' for a list)
...From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-...@googlegroups.com]
On Behalf Of David Bailey
Sent: 09 October 2015 17:58
To: mnemosyne-proj-users <mnemosyne-...@googlegroups.com>
Subject: [mnemosyne-proj-users] Re: Bug report
$ mplayer -slave -ao -quiet "file:///home/david/.local/share/mnemosyne/default.db_media/考える.mp3" -ss 0 -endpos 999699
...
--
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/2cff187b-2db9-46d3-81b1-7b2f09d1996d%40googlegroups.com.