Code Monkey home page Code Monkey logo

Comments (15)

letmaik avatar letmaik commented on September 3, 2024 1

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.

letmaik avatar letmaik commented on September 3, 2024

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.

emanuelelaface avatar emanuelelaface commented on September 3, 2024

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.

letmaik avatar letmaik commented on September 3, 2024

@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.

emanuelelaface avatar emanuelelaface commented on September 3, 2024

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.

letmaik avatar letmaik commented on September 3, 2024

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.

thedhruvn avatar thedhruvn commented on September 3, 2024

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.

letmaik avatar letmaik commented on September 3, 2024

@thedhruvn Before doing pip install . make sure you have cython installed with pip install cython. Does that work?

from rawpy.

thedhruvn avatar thedhruvn commented on September 3, 2024

@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.

letmaik avatar letmaik commented on September 3, 2024

@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.

erkandiken avatar erkandiken commented on September 3, 2024

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.

erkandiken avatar erkandiken commented on September 3, 2024

@letmaik yeap, that solved the issue. thanks.

from rawpy.

Levanterman avatar Levanterman commented on September 3, 2024

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.

letmaik avatar letmaik commented on September 3, 2024

@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 avatar Levanterman commented on September 3, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.