Natlink "Load Command" error

I have DNS 10 Pro with Natlink 3.6 installed. When I say "Load command" to reload the commands for the current app I get the following message in the Messages window :

Traceback (most recent call last):
  File "C:\natlink\natlink\macrosystem\core\natlinkutils.py", line 529, in resultsCallback
    self.callIfExists( 'gotResults_'+x[1], (x[0], fullResults) )
  File "C:\natlink\natlink\macrosystem\core\natlinkutils.py", line 215, in callIfExists
    else: apply(func, argList)
  File "C:\natlink\natlink\macrosystem\_vocola_main.py", line 243, in gotResults_loadCurrent
    self.loadSpecificFiles(self.getCurrentApplicationName())
  File "C:\natlink\natlink\macrosystem\_vocola_main.py", line 280, in loadSpecificFiles
    targets += [[os.path.join(commandFolder,f), i] for f in os.listdir(commandFolder) if p.search(f)]
WindowsError: [Error 3] The specified path cannot be found: '\\Commands/*.*'

My Vocola commands are in C:\vocola.
Any clue ?
Thanks,
John

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hi John, It probably has to

Hi John,

It probably has to do with the "working directory" of windows, which prevents here showing an absolute path. But I am confused a bit.

Please (re)inspect your settings of the config program, possibly report the results here (Click on the "Log info-i" button on the "info" tab of the config program or use the "i" option in the configuration CLI).

When you restart natspeak do your commands work? I think I know where to fix, but must be careful at this point for several reasons. Sounds mysterious eh...

Quintijn

Not sure what "working

Not sure what "working directory" you are refering to.
Here is my "Log info-i" report:

baseFolder from __file__: C:\natlink\natlink\confignatlinkvocolaunimacro
checking PythonPathAndRegistry
---natlink is enabled
CoreDirectory C:\natlink\natlink\macrosystem\core
InstallVersion 3.6
---vocola is enabled
VocolaUserDirectory C:\vocola
VocolaCommandFilesEditor C:\utils\vclEdit\Notepad2.exe
VocolaTakesLanguages 1
VocolaTakesUnimacroActions None
VocolaUsesSimpscrp 1
---unimacro is disabled
other natlink info:
DebugLoad None
DebugCallback None
system information:
DNSInstallDir C:\Program Files\Nuance\NaturallySpeaking10
DNSIniDir C:\Documents and Settings\All Users\Application Data\Nuance\NaturallySpeaking10
DNSVersion 10
WindowsVersion XP
PythonVersion 2.5
remaining information:
DNSFullVersion 10.00.200.044
PythonFullVersion 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
NatlinkDebug 1

If you changed things, you must restart NatSpeak
CURRENT_USER\Natlink registry settings:
UserDirectory: C:\Documents and Settings\john\My documents\NatLink
VocolaUserDirectory: C:\vocola
NatLinkDebug: 1
VocolaUsesSimpscrp: 1
VocolaTakesLanguages: 1
VocolaCommandFilesEditor: C:\utils\vclEdit\Notepad2.exe

The UserDirectory is wrong, but I see nowhere to change this variable.

My commands are working when natspeak starts. Here is the Messages output:

could not import simpscrp, so do not use for loading .vcl files
_vocola_main got language: fra
Starting natlinkmain from: C:\natlink\natlink\macrosystem\core
Natlink version: 3.6
DNS version: 10
Python version: 2.5
WindowsVersion: XP
natlinkmain started (imported)

John

Thanks, "working directory"

Thanks, "working directory" is a directory that can be used to prevent all those long paths. UserDirectory does not harm, as unimacro is disabled. I will have a further look.

Do the vocola commands not start at all, or not "reload" after changes?

Quintijn

Vocola commands do load at

Vocola commands do load at startup and are reloaded when I make a modification to the Vocola command file for a given application but are not reloaded when I say "Load commands" (I get the message I posted above).

John

OK, this part has long time

OK, this part has long time been forgotten then. A bit obsolete as well. I will have a look at it next week.

Quintijn

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.


Syndicate content