Hi there,
i have a problem when trying to use the FP API from within Python code.
When the ok.py module is loaded, there is an error regarding the imporation of the _ok module (i guess the _ok.pyd file)
I use X64 and python 3.9.16 with cygwin
i work in a TEMPO directory containing the following files (DLLs are X64 DLLs):
DESTester.py _ok.pyd ok.py okFrontPanel.dll okimpl_fpoip.dll
python DESTester.py
Traceback (most recent call last):
File “/cygdrive/c/TEMPO/ok.py”, line 15, in swig_import_helper
return importlib.import_module(mname)
File “/usr/lib/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1030, in _gcd_import
File “”, line 1007, in _find_and_load
File “”, line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‘_ok’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/cygdrive/c/TEMPO/DESTester.py”, line 1, in
import ok
File “/cygdrive/c/TEMPO/ok.py”, line 18, in
_ok = swig_import_helper()
File “/cygdrive/c/TEMPO/ok.py”, line 17, in swig_import_helper
return importlib.import_module(‘_ok’)
File “/usr/lib/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named ‘_ok’
Thanks for your support
Cheers
Jerome