letmaik / rawpy

📷 RAW image processing for Python, a wrapper for libraw
https://pypi.python.org/pypi/rawpy
MIT License
591 stars 67 forks source link

Exception: git failed / macOS 10.9.5 unsupported #37

Closed kdottiemo closed 6 years ago

kdottiemo commented 6 years ago

Hello @letmaik, I'm not sure if this is something that you can help me with, but I am trying to pip install rawpy on my Mac OS X 10.9.5 with "pip install --user rawpy," but I run into this error:

Installing collected packages: rawpy
  Running setup.py install for rawpy ... error
    Complete output from command /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;__file__='/private/var/folders/yt/47j3bxc91z7b3_j9pjdq5kb40000gn/T/pip-build-xJgffe/rawpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/yt/47j3bxc91z7b3_j9pjdq5kb40000gn/T/pip-4GBXMf-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    LibRaw git submodule is not cloned yet, will invoke "git submodule update --init" now
    fatal: Not a git repository (or any of the parent directories): .git
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/yt/47j3bxc91z7b3_j9pjdq5kb40000gn/T/pip-build-xJgffe/rawpy/setup.py", line 322, in <module>
        mac_libraw_compile()
      File "/private/var/folders/yt/47j3bxc91z7b3_j9pjdq5kb40000gn/T/pip-build-xJgffe/rawpy/setup.py", line 283, in mac_libraw_compile
        clone_submodules()
      File "/private/var/folders/yt/47j3bxc91z7b3_j9pjdq5kb40000gn/T/pip-build-xJgffe/rawpy/setup.py", line 127, in clone_submodules
        raise Exception('git failed')
    Exception: git failed

Not sure why this is happening, or if it's on my end or the installer's end. Any thoughts? Thanks.

letmaik commented 6 years ago

That shouldn't happen. Can you run the following on the terminal please and copy paste the output?

pip --version
python --version
kdottiemo commented 6 years ago

Yep!

pip --version:

pip 8.0.3 from /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (python 2.7)

python --version:

Python 2.7.11
letmaik commented 6 years ago

OK, it doesn't have to do with your Python, but the binary wheels I provide are only for macOS >= 10.10 and you have 10.9.5. Can you upgrade?

kdottiemo commented 6 years ago

Hi @letmaik, I've tried to do that, but I've run into High Sierra issues. Will have to address those first. In the meantime, I am now trying to install rawpy on the 32-bit Linux Ubuntu partition of my netbook, and I ran into an issue there. Will open a ticket related to that. Sorry for the trouble...

letmaik commented 6 years ago

Let's try one more thing that might work for your Mac.

This kind of stuff is not guaranteed to work in all cases but there are good chances it will. By doing that we're pretending that the wheel was built on an older macOS version and is hence compatible to it.

kdottiemo commented 6 years ago

@letmaik! That worked. Thank you so much. Clever solution. The High Sierra upgrade dependencies will take more time than I want to devote right now, so I appreciate the workaround.