Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot seem to find so library mentioned, dylib causing errors #3

Open
sdenathaniel opened this issue Feb 24, 2020 · 4 comments
Open

Comments

@sdenathaniel
Copy link

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

@paroj
Copy link
Owner

paroj commented Feb 25, 2020

Have libraw .19.5 installed, was hoping it was just a version number error

well, no

@sdenathaniel
Copy link
Author

@paroj sent you an email as well ;)

@JoshuaHaunty
Copy link

Having same issue trying to use the library.

@paroj
Copy link
Owner

paroj commented Apr 14, 2020

you must use libraw == 0.17. As libraw does not provide ABI stability, these bindings must be changed for every release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants