Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during initialisation of Dragon NaturallySpeaking #155

Closed
findausername opened this issue Jul 20, 2016 · 8 comments
Closed

Error during initialisation of Dragon NaturallySpeaking #155

findausername opened this issue Jul 20, 2016 · 8 comments
Labels
Installation Issues and questions related to installation of Castor/Dragonfly

Comments

@findausername
Copy link

Hello,

I tried to install caster on Windows 8 with Dragon NaturallySpeaking 2012 and Natlink 4.1 papa. Previously I installed the bundle from this website to ensure that I have the right version of Python installed: https://sourceforge.net/projects/natlink/files/
During the initialisation of Dragon NaturallySpeaking there was an unexpected error, so I tried an older version of Natlink which was used in the installation Demo video (Natlink 4.1mike). That also didn't work.

I get the following error message:
Vocola not active
Error loading caster from C:\NatLink\NatLink\MacroSystem_caster.py
Traceback (most recent call last):
File "C:\NatLink\NatLink\MacroSystem\core\natlinkmain.py", line 340, in loadFile
imp.load_module(modName,fndFile,fndName,fndDesc)
File "C:\NatLink\NatLink\MacroSystem_caster.py", line 9, in
from caster.lib.ccr.standard import SymbolSpecs
File "C:\NatLink\NatLink\MacroSystem\caster\lib\ccr__init
_.py", line 3, in
from core.nav import Navigation
File "C:\NatLink\NatLink\MacroSystem\caster\lib\ccr\core\nav.py", line 10, in
from caster.lib.dfplus.additions import IntegerRefST
File "C:\NatLink\NatLink\MacroSystem\caster\lib\dfplus\additions.py", line 2, in
from dragonfly.grammar.elements import RuleWrap, Choice
ImportError: cannot import name RuleWrap
-- skip unchanged wrong grammar file: C:\NatLink\NatLink\MacroSystem_caster.py
-- skip unchanged wrong grammar file: C:\NatLink\NatLink\MacroSystem_caster.py
natlinkmain started from C:\NatLink\NatLink\MacroSystem\core:
NatLink version: 4.1mike
DNS version: 12
Python version: 27
Windows Version: 8

Could you please give me a hint to resolve the cause of the error? Thank you

@synkarius
Copy link
Collaborator

You likely either have the wrong version of Dragonfly installed, or don't have it installed at all. That says you're crashing on a Dragonfly import.

@JMHow01
Copy link

JMHow01 commented Jul 23, 2016

I also received this error message below, which is very similar. Not sure how to handle this. I've downloaded the most recent dragonfly(4.1papa) and was using it without issue before installing caster. also I'm using Pythong 2.7. Any additional suggestions?

Error loading caster from C:\NatLink\NatLi I also received this error messagenk\MacroSystem_caster.py
Traceback (most recent call last):
File "C:\NatLink\NatLink\MacroSystem\core\natlinkmain.py", line 309, in loadFile
imp.load_module(modName,fndFile,fndName,fndDesc)
File "C:\NatLink\NatLink\MacroSystem_caster.py", line 9, in
from caster.lib.ccr.standard import SymbolSpecs
File "C:\NatLink\NatLink\MacroSystem\caster\lib\ccr__init
_.py", line 3, in
from core.nav import Navigation
File "C:\NatLink\NatLink\MacroSystem\caster\lib\ccr\core\nav.py", line 10, in
from caster.lib.dfplus.additions import IntegerRefST
File "C:\NatLink\NatLink\MacroSystem\caster\lib\dfplus\additions.py", line 2, in
from dragonfly.grammar.elements import RuleWrap, Choice
ImportError: cannot import name RuleWrap

I'm not sure how to handle these errors. Any suggestions?

@synkarius
Copy link
Collaborator

Dragonfly doesn't use words in its version numbers (like 4.1papa) -- Natlink does. RuleWrap is a Dragonfly class. I suspect that you too did not install Dragonfly correctly. The latest version of Dragonfly is 0.6.6b1. You should follow these instructions (and ignore the annotations, as the problem they were addressing has been corrected): https://www.youtube.com/watch?v=iNAsV4pcnEA

@synkarius
Copy link
Collaborator

Also, as of Natlink 4.1oscar, you should no longer be putting Caster in the /Macrosystem folder. It will probably still work, but that's not the standard Natlink/Dragonfly configuration anymore. Instead, in the Natlink GUI configurer (start_configurenatlink.py), you should enable and set the UserDirectory option.

@JMHow01
Copy link

JMHow01 commented Jul 23, 2016

Thank you. I watched the video link and reinstalled dragonfly exactly as done in the video and caster appears to be functional now. I don't remember following the videos instructions during my initial install.

@synkarius
Copy link
Collaborator

Excellent. Glad to hear it.

@LexiconCode LexiconCode added Complete Pull request is complete and tested as defined by Contributor Installation Issues and questions related to installation of Castor/Dragonfly and removed Complete Pull request is complete and tested as defined by Contributor labels Mar 30, 2018
@DecisionNumerics
Copy link

However I don't seem to be able to find the words "RuleWrap" anywhere in any of the files in https://github.com/t4ngo/dragonfly.

Perhaps you could tell us which file this portion of code is in?

@comodoro
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Installation Issues and questions related to installation of Castor/Dragonfly
Projects
None yet
Development

No branches or pull requests

6 participants