[Nvda-dev] one solved now another: sigh!

James Teh jamie at jantrid.net
Wed Apr 9 21:16:45 UTC 2008


Gianluca Casalino wrote:
> Now I am tying to performe a check before loading the driver and I
> enconter this problem:
> def check(self):
> try:
> r=_winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE,"SOFTWARE\Audiologic\Sintesi
> Audiologic")
> r.Close()
> tones.beep(440, 15)
> return True
> except:
> tones.beep(880,15)
> return False
> I get false (the tones to quickly understand)
Have you imported _winreg?
You should try to find out exactly what the exception is. Try something 
like:
except:
	import globalVars
	globalVars.log.warning("Could not find Audiologic synthesiser", 
exc_info=True)
Btw, when you paste into email, all your indenting is disappearing.

> Another problem is by shutting down nvda. Unfortunately there are no
> error in the log file as it is an error of windows:
Sounds like something isn't getting released properly or some such. Does 
this happen if you change synthesiser back to eSpeak before you exit?

> and when I try to get the synthesizer list (once loaded my synth) here
> the error:
...
> File "synthDriverHandler.pyc", line 28, in getSynthList
> WindowsError: [Error 3] Impossibile trovare il percorso specificato:
> '.\\synthDrivers/*.*'
It seems as if you are changing the current directory somewhere in your 
driver. You should never change the current directory; NVDA relies on 
the current directory being the NVDA dir.

Jamie

-- 
James Teh
Email: jamie at jantrid.net
WWW: http://www.jantrid.net/
MSN Messenger: jamie at jantrid.net
Jabber: jteh at jabber.org
Yahoo: jcs_teh



More information about the Nvda-dev mailing list