Open sdenathaniel opened 4 years ago
Have libraw .19.5 installed, was hoping it was just a version number error
well, no
@paroj sent you an email as well ;)
Having same issue trying to use the library.
you must use libraw == 0.17
. As libraw does not provide ABI stability, these bindings must be changed for every release.
Have tried both brew install and make from source files using gcc
VP-Nathaniel:libraw.py Local$ brew install libraw Warning: libraw 0.19.5 is already installed and up-to-date To reinstall 0.19.5, run
brew reinstall libraw
VP-Nathaniel:libraw.py Local$VP-Nathaniel:libraw.py Local$ python3 example.py Traceback (most recent call last): File "example.py", line 3, in
import libraw # for loading
File "/Applications/XAMPP/xamppfiles/htdocs/AI-Cull/poc/libraw.py/libraw.py", line 21, in
_hdl = cdll.LoadLibrary("libraw.so.15.0.0")
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/init.py", line 442, in LoadLibrary
return self._dlltype(name)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/init.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libraw.so.15.0.0, 6): image not found
Have libraw .19.5 installed, was hoping it was just a version number error but both _hdl = cdll.LoadLibrary("libraw.so.19.5.0") _hdl = cdll.LoadLibrary("libraw.so.0.19.5") Do not Work
Changing it to the dylib _hdl = cdll.LoadLibrary("libraw.19.dylib") results in
libraw.py: warning - structure definitions are not compatible with your version. Traceback (most recent call last): File "example.py", line 18, in
black = mosaic.min()#proc.imgdata.color.black
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/_methods.py", line 34, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity