[python-win32] Windows Error 126 - PyVisa related??

Feist, Doug Doug.Feist at lsi.com
Thu May 13 00:51:38 CEST 2010


Hi,

Please excuse my ignorance as I am a user of just 2 weeks. I just received a new PC with XP 64-bit OS installed. I am having difficulties with running our applications and it appears to be PyVisa related. I have installed the following:
Python 2.5.1 (due to our internal software apps support level)
pywin32-210.win32-py2.5.exe
vcredist_x64.exe (64-bit DLL library?)
PyVisa-1.2.win32.exe

However, I continue to get the following error stream:

Command: python msetup_u
Within Python, ^Z exits, ^B or ^S interrupts
Initializing Arctic Python . . . . Complete.
Traceback (most recent call last):
  File "c:\arctic\pyscripts\msetup_u.py", line 11, in <module>
    import GPIB.arb
  File "c:\arctic\pyscripts\GPIB\__init__.py", line 11, in <module>
    from visa import *
  File "C:\Python25\Lib\site-packages\visa.py", line 1, in <module>
    from pyvisa.visa import *
  File "C:\Python25\Lib\site-packages\pyvisa\visa.py", line 216, in <module>
    resource_manager = ResourceManager()
  File "C:\Python25\Lib\site-packages\pyvisa\vpp43.py", line 97, in __new__
    it.init(*args, **kwds)
  File "C:\Python25\Lib\site-packages\pyvisa\visa.py", line 212, in init
    self.session = self.vi = vpp43.open_default_resource_manager()
  File "C:\Python25\Lib\site-packages\pyvisa\vpp43.py", line 750, in open_default_resource_manager
    visa_library().viOpenDefaultRM(byref(session))
  File "C:\Python25\Lib\site-packages\pyvisa\vpp43.py", line 167, in __call__
    self.load_library()
  File "C:\Python25\Lib\site-packages\pyvisa\vpp43.py", line 133, in load_library
    self.__lib       = windll.visa32
  File "C:\Python25\Lib\ctypes\__init__.py", line 415, in __getattr__
    dll = self._dlltype(name)
  File "C:\Python25\Lib\ctypes\__init__.py", line 340, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found
Command:


Any insight would be greatly appreciated.

Thanks,
Doug


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20100512/7882fb15/attachment.html>


More information about the python-win32 mailing list