Yeah, you also needed to change line 17 in a similar way, that's right. As for the startup info related error, I seem to recall that the procedure to call external programs in Python also had some platform specific stuff, so it could be that it does not work out of the box.
Unfortunately, I no longer have access to a linux development machine, but I think you need to remove 'info = subprocess.STARTUPINFO()' from mplayer_audio.py and all references to it. Cheers, Peter > -----Original Message----- > From: [email protected] [mailto:mnemosyne- > [email protected]] On Behalf Of Francesco Ariis > Sent: 04 June 2015 12:53 > To: [email protected] > Subject: Re: [mnemosyne-proj-users] No sound in mnemosyne > > On Thu, Jun 04, 2015 at 09:20:53AM +0200, Peter Bienstman wrote: > > Hi, > > > > As a fallback, you can rely on playing audio through mplayer. > > > > In pyqt_ui/pyqt_render_chain.py, you find: > > > > class PyQtRenderChain(RenderChain): > > > > id = "default" > > > > if sys.platform == "win32": > > filters = [Latex, EscapeToHtml, ExpandPaths, MplayerAudio, > > MplayerVideo, RTLHandler, NonLatinFontSizeIncrease] > > else: > > filters = [Latex, EscapeToHtml, ExpandPaths, Html5Audio, > > Html5Video, RTLHandler, NonLatinFontSizeIncrease] > > > > renderers = [HtmlCss] > > > > Just replace 'if sys.platform == "win32":' by 'if True:'. > > Hello Peter, > I tried replacing the offending line and running mnemosyne, receiving a > `NameError: `MplayerAudio' is not defined`. > I tried to modify line 17 in a similar way and this time got a `'module' > object > has no attribute 'STARTUPINFO'`. > > I attach a .jpg with both complete errors. > > -- > 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 [email protected]. > To post to this group, send email to mnemosyne-proj- > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mnemosyne-proj- > users/20150604105241.GA2681%40casa.casa. > For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/005b01d09ebe%2489d050d0%249d70f270%24%40UGent.be. For more options, visit https://groups.google.com/d/optout.
