Eryk Sun <eryk...@gmail.com> added the comment:

This may be due to changes regarding DLL dependency resolution in 3.8. If so, 
you can find the missing DLL using Process Monitor, configured to monitor file 
access in python.exe and pythonw.exe. Add the DLL's directory to the search 
path via os.add_dll_directory [1] before importing from pyodbc. 

The developers of pyodbc should be directed to the porting notes for the DLL 
search requirements in 3.8 [2]. The interpreter and ctypes no longer support 
the old DLL search path that includes the working directory and PATH [3].

[1] https://docs.python.org/3/library/os.html#os.add_dll_directory
[2] https://docs.python.org/3/whatsnew/3.8.html#bpo-36085-whatsnew
[3] 
https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order

----------
nosy: +eryksun

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39120>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to