openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Openexr-devel Digest, Vol 159, Issue 2


From: James Crowther
Subject: Re: [Openexr-devel] Openexr-devel Digest, Vol 159, Issue 2
Date: Sat, 15 Jul 2017 08:25:30 +1000

Hi Samat, thanks, I’ll give home-brew a try, When I read the http://openexr.com/downloads.html and saw "PyIlmBase 2.2.0 source code released” I thought these were python bindings since on the main page the following paragraph l

speaks of them;

    This release includes a refactoring of the optimised read paths for RGBA data, optimisations for some of the python bindings to Imath, improvements to the cmake build environment as well as additional documentation describing deep data in more detail.


I had interpreted python bindings to be a module you can import into python to get read/write access. Seems that is not the case. Incidentally, thanks to Brad, I was missing boost, installing it allowed me to compile the pyilmbase, however, as you point out, it doesn’t create a module that can be imported. From what you wrote below, I am putting two and two together and assuming that what I compiled is what you referred to as:

 IlmBase has Python bindings, and that will give
you support for Halfs, etc, but isn't enough to actually let you read OpenEXR files 

Not a problem! I’d be happy to go ahead and use the current pypi package or brew packages, I’m eventually hoping to package a distributable program that includes support for OpenEXR, so being able to compile a binary that supports read/write of files is really what I am after, the image manipulations are cool, I’m interested mainly in stitching tiles back together since I am building a distributed rendering manager for blender that does bucket/tiled rendering. 

Thanks for the help Samat :D

pyilmbase-2.2.0tar.gzOn 15 Jul 2017, at 2:00 am, address@hidden wrote:

Send Openexr-devel mailing list submissions to
address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.nongnu.org/mailman/listinfo/openexr-devel
or, via email, send a message with subject or body 'help' to
address@hidden

You can reach the person managing the list at
address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Openexr-devel digest..."


Today's Topics:

  1. Re: Getting started with OpenExr python bindings (Brad Hards)
  2. Re: Getting started with OpenExr python bindings (Samat K Jain)


----------------------------------------------------------------------

Message: 1
Date: Thu, 13 Jul 2017 19:18:39 +1000
From: "Brad Hards" <address@hidden>
To: "'James Crowther'" <address@hidden>,
<address@hidden>
Subject: Re: [Openexr-devel] Getting started with OpenExr python
bindings
Message-ID: <address@hidden>

checking for boost::python... no
*** Could not run the boost::python test program, checking why...
*** The test program could not be compiled.  Is boost::python installed?
*** Check that the cflags (below) includes the boost::python include directory
***
*** Flags used by the test:
***
  cflags: -g -O2  -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-g -O2  -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7

This looks to be the problem part. Have you tried installing boost::python?

If its installed somewhere non-standard, some or all of:
--with-boost-include-dir
--with-boost-lib-dir
--with-boost-python-libname
might be useful.

Brad





------------------------------

Message: 2
Date: Thu, 13 Jul 2017 13:02:19 -0600
From: Samat K Jain <address@hidden>
To: address@hidden
Subject: Re: [Openexr-devel] Getting started with OpenExr python
bindings
Message-ID: <address@hidden>
Content-Type: text/plain; charset=utf-8

Are you sure OpenEXR has Python bindings?
$ cd openexr-2.2.0/
$ grep -ir python .
Returns nothing for me. IlmBase has Python bindings, and that will give
you support for Halfs, etc, but isn't enough to actually let you read
OpenEXR files. Someone correct me if wrong.
There's a really old package on PyPi here, but I've never gotten it to
work (I don't think it's compatible w/ OpenEXR 2.x):
https://pypi.python.org/pypi/OpenEXR/1.0.2
I've only successfully read OpenEXR in Python in two ways:
? OpenImageIO's Python bindings, which interface with OpenEXR's C++
interface
? OpenCV's Python bindings, which also interface with OpenEXR's C++
interface
Both are a headache to compile; you might want to see if there's a
package in Homebrew or something since you're on macOS. There are
Debian/Ubuntu packages of both and those worked well enough for me.
Regards,
Samat

On 7/12/17 11:07 PM, James Crowther wrote:
Hi there,
I am a complete noob to the open exr bindings for python, I am running
MacOSX sierra.

--
Samat K Jain ? GPG: 0x4A456FBA ? Pump.IO: https://identi.ca/samatjain
Web: https://samat.io/ ? Twitter: https://twitter.com/SamatJain

This e-mail is: [ ] shareable [x] ask first [ ] private



------------------------------

Subject: Digest Footer

_______________________________________________
Openexr-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/openexr-devel


------------------------------

End of Openexr-devel Digest, Vol 159, Issue 2
*********************************************


reply via email to

[Prev in Thread] Current Thread [Next in Thread]