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

2010-05-12 Thread Feist, Doug
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


___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32


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

2010-05-12 Thread Tim Roberts
Feist, Doug wrote:

  

 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


Did you install the 32-bit version of Python?  (I'm guessing you did.) 
You seem to have the 32-bit versions of both pywin32 and PyVisa there. 
If so, you need the 32-bit Visual C++ redistributable
(vcredist_x86.exe), not 64-bit.  The 64-bit operating systems can run
either 32-bit programs or 64-bit programs, but a 32-bit program must use
all 32-bit DLLs.  There is no way to cross between the two.

How did you get a new PC with XP 64?  XP 64 is a weird beast. 
Microsoft never actually built a 64-bit version of XP.  What you have
there is the Windows Server 2003 64-bit kernel, but they took a text
editor to change the version name to XP.

-- 
Tim Roberts, t...@probo.com
Providenza  Boekelheide, Inc.

___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32