Closed baidut closed 6 years ago
Are you sure you have enough memory? The error message seems pretty self-explanatory, but yes, it's coming directly from LibRaw and you should ask directly over there.
Thank you for your kindly reply. Problem solved. LibRaw 0.19-Release might output this error. LibRaw 0.18.13 works fine.
Interesting, is this a bug then in LibRaw? Is it reported?
I've just encountered the same issue as well.
In my case, same code:
@takanokage Does that mean you're building rawpy from source? If not, then you would use the Python binary wheel of rawpy which has libraw 0.19 bundled.
hmm, I didn't know it was bundled. I was just trying to figure out why one machine works and one doesn't (same pip install rawpy on both, same code).
any chance your install depends on files you assumed should be on the system? is there a way to check what are all the dependencies of rawpy?
I really need rawpy to work on the machine where it doesn't.
You can figure out the version of libraw with print(rawpy.libraw_version)
. Can you share a minimal example code and possibly a test image that triggers this?
This passes on one machine and fails on two other. Nothing special about the code, I imagine I have inadvertently messed up those machines myself.
In the meantime I have worked around the issue in another way so it's not so hot anymore.
I have inspected the libraw version on the two machines:
I'm also has this problem. Ans I use pip install rawpy
,
and the libraw version with rawpy.libraw_version
is(0,19,0)
Everything is ok when I change the libraw version from 0.19.0 to 0.17.0.
Please provide an example image and example code that reproduces this issue.
I experience the same problem.
Python 2.7.13 |Anaconda custom (64-bit)| (default, Dec 20 2016, 23:09:15) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2 libraw 0.19.0, rawpy 0.11.0
http://www.mannyphoto.com/D700D3/DSC_0658.NEF
import rawpy
path = 'DSC_0658.NEF'
with rawpy.imread(path) as raw:
rgb = raw.postprocess()
Traceback (most recent call last):
File "
Thanks everyone for reporting. I could reproduce the issue on Python 3. It seems it only happens on Linux, while Windows is fine. Anyone had the issue on a Mac? EDIT: Just tested on a Mac and couldn't reproduce.
https://github.com/cchen156/Learning-to-See-in-the-Dark/issues/34 also noticed the error, but no mention of the OS, I assume Linux though.
In https://github.com/LibRaw/LibRaw/issues/171 it looks like it is a bug in libraw fixed in latest master. I'll try that out and report back.
OK, indeed a bug in libraw, works with the latest patches. I'll release a new version of rawpy asap.
A new version is out now which includes a fix for this issue.
I tried
rawpy_demo.py
and Unsufficient memory (libraw error) reported.
rawpy-0.11.0 ubuntu 14.04 Python 2.7.12 |Anaconda 4.2.0 (64-bit)
Could you please kindly help me fix this error? Or should I report the issue at the LibRaw repo instead?