code-by-voice icon indicating copy to clipboard operation
code-by-voice copied to clipboard

Getting "Cannot load compatibility module support" error after enabling Natlink

Open huozhe opened this issue 10 years ago • 19 comments

Hi,

First, thanks for the detailed instruction!

After following all the directions, I kept getting the error msg "Cannot load compatibility module support (GUID = {dd990001-bb89-11d2-b031-0060088dc929}." when I restart Dragon Natural Speaking. If I disable Natlink (through the GUI), then this message goes away. Seems like some Natlink compatibility issue. I am running windows 8.1 pro through vmware. Dragon premium 12.50, Natlink 4.1india. Can you comment on how to debug the issue? I am not sure where to find more detailed logs.

I really want this to work, to help my RSI. Thanks in advance!

Zheng

huozhe avatar Apr 28 '14 22:04 huozhe

Hi, I got the exact same issue when i upgraded to Natlink 4.1 india.

There are some tips here, but non of them worked for me: http://qh.antenna.nl/unimacro/installation/problemswithinstallation.html

The only place I managed to find anything was in the Dragon.log (on Win 7, C:\Users\All Users\Nuance\NaturallySpeaking12)

22:14:00 CMThread: Error 0x80040154 loading {DD990001-BB89-11D2-B031-0060088DC929}
22:14:00 Exception thrown (E:\work\1200relmob\voicebar\cmthread.cpp, 626).
22:14:00 COM returned an unexpected error code: Details are REGDB_E_CLASSNOTREG

That eventually led me to this solution by "Alyx" (way down in the thread): http://www.speechcomputing.com/node/7661 (The site was down at the time of writing, but the link should work)

If I remember correctly it was a DLL that was not linked properly or something similar. In any case, the solution was to install "Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package MFC Security Update", http://www.microsoft.com/en-us/download/details.aspx?id=26999 I used the file named vcredist_x86.exe

Hope this helps.

poppe1219 avatar Apr 30 '14 05:04 poppe1219

Thanks!

huozhe avatar Apr 30 '14 05:04 huozhe

Found Alyx post:

Submitted by Alyx on Sat, 03/15/2014 - 11:31.
Win7 32bit SP1 fresh install, DNS12, Natlink 4.1india, installed in VirtualBox

So I happen to have the same problem as a lot of the other people in this thread.
The file you included earlier did not fix the problem.
The registry Key appeared to be there.

Debugging steps:
- looked at the Dragon error log and noted this:
08:15:33 CMThread: Error 0x80040154 loading {DD990001-BB89-11D2-B031-0060088DC929}
08:15:33 Exception thrown (E:\work\1200relmob\voicebar\cmthread.cpp, 626).
08:15:33 COM returned an unexpected error code: Details are REGDB_E_CLASSNOTREG
- registering natlink indicated it was installing the Unicode version
- unregistering (NOT reregistering) brought up an error window stating "RegSvr32
  The module "natlink.pyd" failed to load ... The specified module could not be found"
- Ran dependencywalker on the natlink.pyd (http://www.dependencywalker.com/)
- It listed several things not found, most of which are false errors as per stackoverflow
- It also listed msvcr100.dll as missing. Google suggested installing this security update
  to fix this problem: http://www.microsoft.com/en-us/download/details.aspx?id=26999
  which mentions in the details something about "due to MFC not specifying the full path
  to system/localization DLLs."
- After installing this and rerunning the configuration, the errors were fixed and
  everything is working.

poppe1219 avatar Apr 30 '14 08:04 poppe1219

For me what worked was installing .NET version 1.1, and then copying C:\Windows\Microsoft.NET\Framework\v1.14322\msvcr71.dll to C:\Windows\SysWOW64 (or C:\Windows\System32 if you are running 32bit)

I am running windows 10 in a virtual machine (using gnome boxes)

(open cmd as admin user, and do) copy C:\Windows\Microsoft.NET\Framework\v1.1.4322\msvcr71.dll C:\Windows\SysWOW64\

andsild avatar Feb 12 '16 16:02 andsild

@poppe1219 It helped me installing the C++ bindings on a fresh windows 8.1

kevinsimper avatar Apr 23 '16 04:04 kevinsimper

Same problem on Windows 10. This fixed it for me:

C:\>setx PYTHONPATH "C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk;C:\NatLink\NatLink\MacroSystem\core"

https://www.knowbrainer.com/forums/forum/messageview.cfm?catid=25&threadid=21796

tbenst avatar May 13 '16 10:05 tbenst

I'm on Win7 64bit SP1 (virtualbox), DNS12, Natlink 4.1papa. I get the same error logged as Alyx, but none of these solutions worked! Any other ideas? Could it have to do with running on 64 bit (though I installed 32 bit python using the files provided by natlink)?

Dependency walker reports missing python27.dll, dcomp.dll, ieshims.dll, and some api-mis-win-core-winrt dlls. but this might be bug of dependency walker? dependency walker is looking in \system32 directory, whereas python27.dll is actually in \SysWOW64.

UPDATE. FOUND THE SOLUTION: make sure you install the 32-bit version of "Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package MFC Security Update". The 64-bit version was causing my problems. Painfully simple.

g-sam avatar Jul 17 '16 09:07 g-sam

I'm with g-sam! I needed vcredist_x86.exe and NOT vcredist_x64.exe

jorxster avatar Dec 06 '16 22:12 jorxster

i get the same issue i have windows 10, Dragon Natural Speaking 13, natlink 4.1papa, ran configuration in elevated mode, I have vcredlist_x86.exe. Has anyone tried with the above configs? I used to run the above in Windows 7 guest on VirtualBox and it used to work. Now, I am trying to make it work with Windows subsystem for linux.

priyesh16 avatar Dec 09 '16 21:12 priyesh16

Hi Priyesh, I am using windows 7, with dragon naturally 12.5. (And I think, natlink4.1) I chose 12.5 because that is what some have recommended.

On 10/12/2016 10:06 am, "priyesh16" [email protected] wrote:

i get the same issue i have windows 10, Dragon Natural Speaking 13, natlink 4.1papa, ran configuration in elevated mode, I have vcredlist_x86.exe. Has anyone tried with the above configs?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/simianhacker/code-by-voice/issues/2#issuecomment-266123250, or mute the thread https://github.com/notifications/unsubscribe-auth/AMOYs3yEkmJffWHuSxpt04fFvH-iCpfVks5rGcLDgaJpZM4B2PXt .

jorxster avatar Dec 10 '16 02:12 jorxster

Thanks jorxster for the response. Do you know if i should buy a new dragon 12.5 to test it out or is there a way to install 12.5 with dragon 13 i bought?

priyesh16 avatar Dec 10 '16 03:12 priyesh16

That is a good question, Nuance might be kind enough to send you a copy, although they don't support 12.5 anymore. I bought 12.5. It might be possible to download 12.5 though other means... cough. To test, anyway.

cheers, Jordan

On Sat, Dec 10, 2016 at 4:19 PM, priyesh16 [email protected] wrote:

Thanks jorxster for the response. Do you know if i should buy a new dragon 12.5 to test it out or is there a way to install 12.5 with dragon 13 i bought?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/simianhacker/code-by-voice/issues/2#issuecomment-266175447, or mute the thread https://github.com/notifications/unsubscribe-auth/AMOYsxKZ3jZVcfTKacgo9B2TrrHfpp7Nks5rGhpTgaJpZM4B2PXt .

jorxster avatar Dec 12 '16 00:12 jorxster

I got it working for windows 10. The gui version of Configure Natlink and Vocola had DNS ini file path as "C:\ProgramData\ApplicationData\Nuance\NaturallySpeaking13" instead of "C:\ProgramData\Nuance\NaturallySpeaking13"

priyesh16 avatar Dec 21 '16 00:12 priyesh16

good work! thanks for letting us know.

On Wed, Dec 21, 2016 at 1:15 PM, priyesh16 [email protected] wrote:

I got it working for windows 10. The gui version of Configure Natlink and Vocola had DNS ini file path as "C:\ProgramData\ApplicationData\Nuance\NaturallySpeaking13" instead of "C:\ProgramData\Nuance\NaturallySpeaking13"

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/simianhacker/code-by-voice/issues/2#issuecomment-268397644, or mute the thread https://github.com/notifications/unsubscribe-auth/AMOYs8MKhbpgxAFKYBwufnw9F5zfN7xoks5rKG-dgaJpZM4B2PXt .

jorxster avatar Dec 21 '16 01:12 jorxster

I had the same problem with a 64-bit installation of Windows 10 in a VM, with Dragon NaturallySpeaking Home version 13. I tried installing the Microsoft Visual C++ 2010 redistributables (both 64-bit and 32-bit). It did not help.

Setting the PYTHONPATH and unregistering/re-registering NatlLink got it working for me.

code-affinity avatar Dec 16 '17 17:12 code-affinity

Thanks for letting me know! I got it working too.

On Sat, Dec 16, 2017 at 9:50 AM, Tim Crews [email protected] wrote:

I had the same problem with a 64-bit installation of Windows 10 in a VM, with Dragon NaturallySpeaking Home version 13. I tried installing the Microsoft Visual C++ 2010 redistributables (both 64-bit and 32-bit). It did not help.

Setting the PYTHONPATH and unregistering/re-registering NatlLink got it working for me.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/simianhacker/code-by-voice/issues/2#issuecomment-352199108, or mute the thread https://github.com/notifications/unsubscribe-auth/ADzy0bYGN8GNR3Y_EBTgk_RbwTY4dpOZks5tBAMDgaJpZM4B2PXt .

priyesh16 avatar Dec 18 '17 05:12 priyesh16

This has been super annoying. I've tried everything here. python2.7.15 32-bits Microsoft Visual C++ 2010 redistributables both registering PYTHONPATH several restarts copied the msvcr71.dl to system32, even tried with SysWOW64 but nothing. So frustrating.

I'm using Windows 10 64-bits 1809; DNS 15.3

Edit: I finally did it. By using scoop and installing everything system wide. Now it works beautifully.

ertwro avatar Feb 23 '19 12:02 ertwro

For anyone experiencing this issue with later versions of Dragon and NatLink, here is what worked, as none of the above worked for me.

DNS version 15.3 NatLink 4.2 Windows 10 64-bit, running on a virtual box virtual machine on Ubuntu Python 2.7.16

I solve the above issue only after following step two on the official NatLink website: https://qh.antenna.nl/unimacro/installation/problemswithinstallation.html

  1. Possibly registering natlink.pyd failed. Remove natlink.py fro the core directory (eg. C:\Natlink\Natlink\MacroSystem\core). Re-run the config program, hopefully this now works. If these steps fail, try to do it manually: Close Dragon Go to the subdirectory PYD of the Core directory. Copy the correct file from the PYD subdirectory into the core directory, and rename the file to natlink.pyd. 2.5, 2.6 and 2.7 referring to the python version you use, and ANSI for Dragon up to version 11, UNICODE for Dragon 12, 13, 14, and Ver15 for version 15. Rename this file to natlink.pyd This is the "dll" file with which NatLink communicates with Dragon. Manually tweak the natlinkstatus.ini file: the line NatlinkPydRegistered = 27;15 should hold something like this, 27 being python2.7 and 15 being Dragon 15. You can register this file to windows manually after you close Dragon. See the short video: https://www.youtube.com/watch?time_continue=53&v=_WnMGOfHYuM&feature=emb_logo

MohamadZeina avatar Feb 26 '20 17:02 MohamadZeina

For anyone experiencing this issue with later versions of Dragon and NatLink, here is what worked, as none of the above worked for me.

DNS version 15.3 NatLink 4.2 Windows 10 64-bit, running on a virtual box virtual machine on Ubuntu Python 2.7.16

I solve the above issue only after following step two on the official NatLink website: https://qh.antenna.nl/unimacro/installation/problemswithinstallation.html

  1. Possibly registering natlink.pyd failed. Remove natlink.py fro the core directory (eg. C:\Natlink\Natlink\MacroSystem\core). Re-run the config program, hopefully this now works. If these steps fail, try to do it manually: Close Dragon Go to the subdirectory PYD of the Core directory. Copy the correct file from the PYD subdirectory into the core directory, and rename the file to natlink.pyd. 2.5, 2.6 and 2.7 referring to the python version you use, and ANSI for Dragon up to version 11, UNICODE for Dragon 12, 13, 14, and Ver15 for version 15. Rename this file to natlink.pyd This is the "dll" file with which NatLink communicates with Dragon. Manually tweak the natlinkstatus.ini file: the line NatlinkPydRegistered = 27;15 should hold something like this, 27 being python2.7 and 15 being Dragon 15. You can register this file to windows manually after you close Dragon. See the short video: https://www.youtube.com/watch?time_continue=53&v=_WnMGOfHYuM&feature=emb_logo

Now I have had to solve this again - I realise this only works after downloading and running vcredist_x86.exe as above. I also added Python to my path, but unsure if that was necessary.

MohamadZeina avatar Mar 13 '20 15:03 MohamadZeina