-
Notifications
You must be signed in to change notification settings - Fork 52

Description
Hello,
I recently installed pyvips in accordance to the description in https://pypi.org/project/pyvips/. However, when I try to import pyvips, I always get the very same error.
OSError: cannot load library 'C:\MorePythonSidePackages\vips-dev-8.9\bin\libvips-42.dll': error 0x7f
I downloaded the windows binary vips-dev-w64-all-8.9.2.zip from https://github.com/libvips/libvips/releases, set the bin folder to my path and executed to command "pip install pyvips".
It is possible to run vips.exe via cmd but not via python.
I am using windows 10 and python3.6.7.
I also tried different versions of vips but i always get the very same error.
The above mentioned file 'C:\MorePythonSidePackages\vips-dev-8.9\bin\libvips-42.dll' does exit, it can just not be loaded.
The complete error message is the following:
Traceback (most recent call last):
File "C:\Program Files\Python36\lib\site-packages\pyvips_init_.py", line 19, in
import _libvips
ModuleNotFoundError: No module named '_libvips'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Targos_AI/pathology-streaming-pipeline/streaming/train.py", line 21, in
from streaming.tissue_dataset import TissueDataset
File "C:\Targos_AI\pathology-streaming-pipeline\streaming\tissue_dataset.py", line 8, in
import pyvips
File "C:\Program Files\Python36\lib\site-packages\pyvips_init_.py", line 71, in
vips_lib = ffi.dlopen(_vips_libname)
File "C:\Program Files\Python36\lib\site-packages\cffi\api.py", line 150, in dlopen
lib, function_cache = _make_ffi_library(self, name, flags)
File "C:\Program Files\Python36\lib\site-packages\cffi\api.py", line 832, in _make_ffi_library
backendlib = _load_backend_lib(backend, libname, flags)
File "C:\Program Files\Python36\lib\site-packages\cffi\api.py", line 828, in _load_backend_lib
return backend.load_library(path, flags)
OSError: cannot load library 'C:\MorePythonSidePackages\vips-dev-8.9\bin\libvips-42.dll': error 0x7f
Process finished with exit code 1
When I try to load a different dll file using the command "backend.load_library(path, flags)" I get no error.
I searched previouse Issues, such as #44 but they don't solve my problem.
Do you have any suggestions what I could try?
Thank you in advance