dll

Python won't load C-language DLL in Windows 11 (that loads in Windows 10)

Python won't load C-language DLL in Windows 11 (that loads in Windows 10) Question: I’m running Python 3.8.5 on Windows 10 Pro, Version 10.0.19045 Build 19045. I have an application where I have moved part of the processing to a DLL, written in C using Microsoft Visual Studio C++ 2019. I’m loading my library DLL …

Total answers: 1

Discover missing module using command-line ("DLL load failed" error)

Discover missing module using command-line ("DLL load failed" error) Question: On Windows, when we try to import a .pyd file, and a DLL that the .pyd depends on cannot be found, we get this traceback: Traceback (most recent call last): … ImportError: DLL load failed: The specified module could not be found. When this happens, …

Total answers: 1

OSError: Cannot find pyvips library (DLLs)

OSError: Cannot find pyvips library (DLLs) Question: I’m facing a problem where I can’t import pyvips as the OS doesn’t find the directory where all the DLLs are located. >>> import pyvips Traceback (most recent call last): File "C:Usersistab.virtualenvsRPAS_DS_UI-v4ujo25hlibsite-packagespyvips__init__.py", line 19, in <module> import _libvips ModuleNotFoundError: No module named ‘_libvips’ During handling of the above …

Total answers: 2

ImportError: DLL load failed while importing _gdal: The specified module could not be found

ImportError: DLL load failed while importing _gdal: The specified module could not be found Question: I have a python script that previously worked but that now throws the error:ImportError: DLL load failed while importing _gdal: The specified module could not be found. I am trying to upload a shapefile using fiona and originally the message …

Total answers: 2

Allocation of Memory with python to pass to dll

Allocation of Memory with python to pass to dll Question: I got a dll which expects a memory pointer to a C Type Byte Array. The dll will read and modify the Array and will also put some extra data at the end of the array. How do I allocate 1MB memory as C Type …

Total answers: 2

Software based on Python 3.9 is not working on Windows 7

Software based on Python 3.9 is not working on Windows 7 Question: I made a standalone software using python3.9 which properly works on my system and another windows 10 system also, but I tried running that software on Windows 7 Ultimate and it shows some errors. Please note that I made the software by binding …

Total answers: 2

error while import pytorch module. (The specified module could not be found.)

error while import pytorch module. (The specified module could not be found.) Question: I just newly install python 3.8 via anaconda installer and install pytorch using command conda install pytorch torchvision cpuonly -c pytorch when i try to import torch, I got this error message. OSError: [WinError 126] The specified module could not be found. …

Total answers: 4

Pybind11: "ImportError: DLL not found" when trying to import *.pyd in Python Interpreter

Pybind11: "ImportError: DLL not found" when trying to import *.pyd in Python Interpreter Question: I built a .pyd in Visual Studio 2019 (Community) that provides a wrapper for some functionality that’s only present in the LibRaw. The solution compiles successfully without any warnings or errors. The project uses LibRaw, OpenCV and pybind11 as well as …

Total answers: 2