I have confirmed: MSFTFTCJTAG.dll exists in C:\ddey_documents. Having issue in loading it. Any help?
import os
from ctypes import *
os.chdir(r'c:\ddey_documents')
Flywatter2 = WinDLL(r"C:\ddey_documents\MSFTFTCJTAG.dll")
Error:
File "C:\Python39\lib\ctypes\__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\ddey_documents\MSFTFTCJTAG.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Things I have tried:
tried adding following without help:
os.add_dll_directory(r"C:\ddey_documents)
Was getting following error initially,
OSError: [WinError 193] %1 is not a valid Win32 application.
It got fixed by applying following two steps:- swtiching to Python 32 bit version. OSError: [WinError 193] %1 is not a valid Win32 application - nltk
- Installing plugins: https://www.microsoft.com/en-us/download/details.aspx?id=40784