pyvips icon indicating copy to clipboard operation
pyvips copied to clipboard

VipsOperation: class "dzsave" not found

Open Rasaa84 opened this issue 2 years ago • 1 comments

Hi,

I have installed pyvips using pip on Windows 11 but get the following error calling dzsave.

Traceback (most recent call last): File "C:\Users...\anaconda3\envs\torch\lib\site-packages\pyvips\vimage.py", line 1339, in getattr Introspect.get(name) File "C:\Users...\anaconda3\envs\torch\lib\site-packages\pyvips\voperation.py", line 153, in get cls._introspect_cache[operation_name] = Introspect(operation_name) File "C:\Users...\anaconda3\envs\torch\lib\site-packages\pyvips\voperation.py", line 39, in init op = Operation.new_from_name(operation_name) File "C:\Users...\anaconda3\envs\torch\lib\site-packages\pyvips\voperation.py", line 193, in new_from_name raise Error('no such operation {0}'.format(operation_name)) pyvips.error.Error: no such operation dzsave VipsOperation: class "dzsave" not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "C:\Users...\anaconda3\envs\torch\lib\site-packages\pyvips\vimage.py", line 1343, in getattr raise AttributeError AttributeError

Any ideas what the issue is?

Rasaa84 avatar Jun 05 '23 06:06 Rasaa84

Hi, have you seen https://github.com/libvips/libvips/pull/3476 ?

We've had to remove dzsave from precompiled windows binaries due to licensing issues. It should come back soon.

In the meantime, you can stick with an older libvips version, or build your own binary.

jcupitt avatar Jun 05 '23 08:06 jcupitt