Python DLL Import Problem

Hello,

I just purchased 2 of your units and I’m using Python 2.3 on many machines. I can’t easily deploy version 2.4 at the present moment due to logistical reasons. I’m getting the following message…

import ok
Traceback (most recent call last):
File “”, line 1, in ?
File “C:\Python23\lib\site-packages\ok_init_.py”, line 12, in ?
from ok import *
File “C:\Python23\lib\site-packages\ok\ok.py”, line 5, in ?
import _ok
ImportError: DLL load failed: The specified module could not be found.

I know this has to do with Python version compatibility issues. I made the site-package for ok as recommended in another tread but no luck.

Is there any way to get around this version difference? I wish to use a method that is not version sensitive, maybe using cytpes and calling the DLL directly, using the methods. I ultimately plan to drive the XEM3001v2 directy using code and not the FrontPanel GUI.

Any assistance with this matter is greatly apprecated. Please advise. Thank you.

John

We will look into generating a Python 2.3 version of the API for legacy purposes and get back to you shortly.

For version independence, you may want to use the okFrontPanel.dll directly and write a custom Python wrapper around that using the windll() stuff. I’m not sure which would be a better option, really.