jamesbowman / openexrpython

OpenEXR bindings for Python
Other
94 stars 35 forks source link

Does this openexrpython support for Python 2.7? #24

Open ikedakeiart opened 5 years ago

ikedakeiart commented 5 years ago

I tried pip install openexr on my machine, but the installation failed . I would like to keep using Python 2.7 for a while, and I'm wondering if does the openexrpython support for Python 2.7.

jamesbowman commented 5 years ago

Yes, it supports Python 2.7 (and 2.6, 3.2 and 3.5):

https://github.com/jamesbowman/openexrpython/blob/master/.travis.yml

What is the installation failure?

ikedakeiart commented 5 years ago

I attached an image of logs after trying pip install openexr, https://drive.google.com/file/d/1Hi-VfEbcZ1KQdLf-AsbgXBc3CTgUAAj4/view?usp=sharing

ikedakeiart commented 5 years ago

The link is not working. Trying again, https://drive.google.com/file/d/1Hi-VfEbcZ1KQdLf-AsbgXBc3CTgUAAj4/view?usp=sharing

jamesbowman commented 5 years ago

OK, the Python module requires that the OpenEXR library itself is already installed.

Have you considered installing from this page instead? https://www.lfd.uci.edu/~gohlke/pythonlibs/

tiagoshibata commented 5 years ago

@jamesbowman since these trivial build issues pop up frequently, how about we add more descriptive build instructions to README.md? Eg. telling users they need the OpenEXR library and headers, and a C++ compiler. I could do it over the weekend.

jamesbowman commented 5 years ago

Yes, that would be great!

ikedakeiart commented 5 years ago

@jamesbowman thank you for the quick response. My goal is to use OpenEXR as python module in Foundry Nuke, https://www.foundry.com/products/nuke for Windows. I'm using Nuke 9.0v9, and the plugins for the software need to be built with Microsoft Visual Studio 2010 (the details are found in https://learn.foundry.com/nuke/developers/90/ndkdevguide/appendixa/windows.html ). Okay, I will try to build OpenEXR library against Visual Studio 2010, install and maybe borrow your setup.py for python binding.

ikedakeiart commented 5 years ago

@tiagoshibata that would be great! I've been googling around a solution for the build issue a lot, so. I appreciate your help!