Open zdenop opened 4 years ago
Not sure why the install in your output shows 'C:\program files', in theory it should be whatever you have in your MY_PY_DIR. anyway, try copying the pyd from the build directory to your current dir:
D:\Infx\OpenInformix\IfxPy\IfxPy>cp build\lib.win-amd64-3.7\IfxPy.cp37-win_amd64.pyd IfxPy.pyd
on Windows, you can use something like ProcessMonitor when dealing which such errors. It will help you to find out which file or library failed to load, and which path is been used.
my python instalation is on C: driver. in MY_PY_DIR there is python source code.
I found problem:
For some reason import IfxPy
does not try load informix dlls from C:\Program Files\IBM Informix Client SDK\bin\
, even I add it to path (I checked it with echo %path%
or running ilogin
, esql
from command line). How to fix this?
So there is change of python3.8 behavior on windows: it does not look for dlls in path. Also other projects has problem with it (e.g. https://bugs.python.org/issue36085). There are two way how to fix it:
import os
if os.name == 'nt' and hasattr(os, 'add_dll_directory'): informixdir = os.getenv('INFORMIXDIR', None) if informixdir and os.path.exists(informixdir): os.add_dll_directory(os.path.join(informixdir, "bin"))
Is there a way how to debug this error message? I read other similar issues and IMO I have set all I need.
I try to build/use with python3.8 and vs2019. I build it this way:
Then I run: