Yes, I'm sure it was compiled with ocio enabled and properly linked. If I ldd 
oiio shared lib, ocio is listed in the dependencies.

Sent from my iPhone

> On Nov 28, 2018, at 03:04, Daniel Flehner Heen <[email protected]> 
> wrote:
> 
> Also.. I may be grasping at straws here, but are you sure OIIO was compiled 
> with OCIO enabled?
> 
>> On Wed, Nov 28, 2018 at 9:03 AM Daniel Flehner Heen 
>> <[email protected]> wrote:
>> Have you tried using ImageBufAlgo.colorconvert() instead?
>> 
>>> On Wed, Nov 28, 2018 at 4:14 AM Stephen Mackenzie <[email protected]> wrote:
>>> Yes, I had the same issue described here. The pybind11 work being done for 
>>> then-oiio-1.9-alpha fixed it for me, so I've just been awaiting the oiio-2 
>>> release as a solve.
>>> YMMV.
>>> 
>>>> On Tue, Nov 27, 2018 at 9:00 PM Etienne Fleurant 
>>>> <[email protected]> wrote:
>>>> 
>>>> Hi,
>>>> 
>>>> We are getting a seg fault using ImageBufAlgo ociodisplay in python. We're 
>>>> using:
>>>> oiio 1.8.10
>>>> compiled on CentOS 7 64bit
>>>> 
>>>> Here's a code snippet of what I'm doing:
>>>> 
>>>>> print os.getenv( 'OCIO' ) # ---> prints '<SOME_PATH>/spi-anim/config.ocio'
>>>>> inputPath  = '<MY_PATH>/test_for_ocio.tif'
>>>>> outputPath = '<MY_PATH>/output.tif'
>>>>> srcBuf = OpenImageIO.ImageBuf( inputPath )
>>>>> OpenImageIO.ImageBufAlgo.ociodisplay( srcBuf , dstBuf , 'sRGB' , 'Film' )
>>>>> dstBuf.write( outputPath )
>>>> 
>>>> ---> outputs : Segmentation fault (core dumped)
>>>> 
>>>> I'm able to make it work through oiiotool though:
>>>> oiiotool '<MY_PATH>/test_for_ocio.tif' --iscolorspace 'lnh' --ociodisplay 
>>>> 'sRGB' 'Film' -o '<MY_PATH>/output.tif'
>>>> 
>>>> but ultimately I'd like to make it work in python. It's a bit hard to 
>>>> debug since I have no idea why it's seg faulting...
>>>> 
>>>> By the way, I also tried adding:
>>>> srcBuf.specmod().attribute( 'oiio:ColorSpace' , 'lnh' ) after my srcBuf 
>>>> declaration above to no avail.
>>>> 
>>>> That was to replicate what I have in my oiiotool example, since if I omit 
>>>> this from that command line, I was getting the following error:
>>>> oiiotool ERROR: ociodisplay : DisplayTransform error. Cannot find 
>>>> inputColorSpace, named 'Linear'.
>>>> 
>>>> Maybe I'm having a similar error with python resulting in the seg fault, 
>>>> but I'm not sure.
>>>> 
>>>> I'm using the spi-anim config with this example.
>>>> Any help would be appreciated. I could send an example files if needed.
>>>> 
>>>> Thanks in advance
>>>> 
>>>> _______________________________________________
>>>> Oiio-dev mailing list
>>>> [email protected]
>>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>>> _______________________________________________
>>> Oiio-dev mailing list
>>> [email protected]
>>> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>> 
>> 
>> -- 
>> -Daniel
> 
> 
> -- 
> -Daniel
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to