Comments (15)
I just released a new alpha where this issue is fixed. It's based on the latest libraw beta version. Please try with pip install rawpy==0.11.0a1
and comment here if there are still problems.
from rawpy.
In your case pip tries to build rawpy from source by downloading the source distribution first (.tar.gz), however rawpy is available as binary distribution (wheel) for Linux, so this should work out of the box without compilation. Please do a pip --version
, it may be that your pip is too old. If that's the case, try to install it with pip --use-wheel rawpy
(older versions didn't try to install wheels by default).
from rawpy.
I have the same issue in a Debian 9.
The version of pip is 9.0.1 that is the latest and the --use-wheel does not make any difference, but the main question is why it does not compile? I have the libraw-dev installed and i installed it many times with not problems in the past (but not this version).
from rawpy.
@emanuelelaface Are you using a 32bit Linux by any chance? I only supply 64 bit Linux wheels which would explain why pip is trying to install from source. About the fact that it doesn't compile -- this is a bug that's fixed in the next version to be released soon (path issue). You can work-around that by installing cython
via pip first to force re-generation of the C wrapper code (without that it would try to compile the bundled pre-generated C wrapper code which is referenced by the wrong path currently).
from rawpy.
I am trying it on an ARM64, so maybe it is a problem there. I did some test also with cython but it has the same problem. I will wait the next release.
from rawpy.
Yes, ARM64 would need a different wheel. If you need it working before the next release you can also clone the repository and do a pip install .
in the cloned folder. Make sure you have git installed as it's used during building.
from rawpy.
Hi @letmaik , I too am facing the same issue attempting to install rawpy to a Raspberry Pi 3 (ARM64). I attempted the pip install .
after cloning the repository, but I receive a similar error at
gcc: error: rawpy/_rawpy.cpp: No such file or directory
I've installed libraw from github (pkg-config --libs libraw
returns -L/usr/local/lib lraw
) and I've tried all solutions given here to no avail :( Looking forward to a hopefully ARM64-compatible future release!
from rawpy.
@thedhruvn Before doing pip install .
make sure you have cython installed with pip install cython
. Does that work?
from rawpy.
@letmaik , Yes, That did it! Word of warning - I am working with Python3.6 on my Pi, so cython made weird filenames for the .so binaries that led to import errors for >>>import rawpy
. I had to go into the site-packages folder within my virtualenv (or go the site-packages within the python installation you have), go to the rawpy/
folder and rename this: _rawpy.cpython-36m-arm-linux-gnueabihf.so
to _rawpy.so
. Then, after fixing a weird symlink error for my libraw installation and adding it to the shared library path, everything worked. (add a *.conf file [name doesn't matter] with the path to the folder containing libraw.so.16 inside this directory: /etc/ld.so.conf.d/
and then run sudo ldconfig
to update your shared path directories).
from rawpy.
@thedhruvn Great that you got it working. The weird filename you saw is normal and also similar on other platforms (e.g. _rawpy.cpython-36m-x86_64-linux-gnu.so
on 64 bit Linux), so it's a bit weird that the import failed. The fact that _rawpy.so
works is really just a hack but is not how it should be. On your Python that couldn't import the module, can you do pip install wheel
and then:
from wheel.pep425tags import get_abbr_impl, get_impl_ver, get_abi_tag, get_platform
print("{0}{1}-{2}-{3}".format(get_abbr_impl(), get_impl_ver(), get_abi_tag(), get_platform()))
That should print cpython-36m-arm-linux-gnueabihf
. If not, what does it print?
from rawpy.
Hello all,
I am having the same issue as explained in the first post. I am trying to install rawpy on raspbian OS running on raspberry pi model 3. As far as I understood, rawpy install via pip only works for 64-bit OS. Raspbian is 32-bit OS, in this case, is there a way to install rawpy on raspbian ? Thanks.
from rawpy.
@letmaik yeap, that solved the issue. thanks.
from rawpy.
I just released a new alpha where this issue is fixed. It's based on the latest libraw beta version. Please try with
pip install rawpy==0.11.0a1
and comment here if there are still problems.
Hi, I am also trying to install this on a RaspberryPi , I tried pip install rawpy==0.11.0a1 but still get the same error, did you release a fix please :-)
Thanks
from rawpy.
@Levanterman Can you post the exact error? You shouldn't have to use the old rawpy version anymore. If the error is not exactly the same, please open a new issue.
from rawpy.
@Levanterman Can you post the exact error? You shouldn't have to use the old rawpy version anymore. If the error is not exactly the same, please open a new issue.
Hi @letmaik
My bad its working now, i hadn't installed libraw first , oops
Big thanks for RAWPY :-)
from rawpy.
Related Issues (20)
- Adobe DNG SDK support HOT 1
- No source on pipy HOT 2
- “Image too big” thrown when file does not exist HOT 2
- Adobe DNG GainMap support HOT 5
- Support for Python 3.12 (was: ERROR: Could not find a version that satisfies the requirement rawpy) HOT 1
- Cannot read thumbnail of NEF file HOT 1
- Mimic Adobe Photoshop Open-Save quality HOT 1
- Setting manual raw_pattern HOT 10
- Support arm64 MacOS HOT 1
- new API to get wb factors from gray box HOT 2
- How to process bayer10? HOT 1
- How could I do some transform in raw domain and transform it into rgb domain? HOT 1
- Support for StripOffsets and StripByteCounts in DNG tags HOT 1
- Questions about support for the Z9
- Include Libraw snapshot releases? HOT 2
- catching corruptions HOT 2
- 12bit raw data- Maximum pixel value around 2200
- Compatibility issue with NumPy 2.0.0 HOT 5
- Rawpy support for MacOS and python version 3.8 and 3.9 HOT 5
- Is there any method to convert a .npy file to .png image?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rawpy.