Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

TypeError in write_image() function issue with aces_ocio 1.2 #4

Open
BushraAlma opened this issue Oct 20, 2020 · 1 comment
Open

TypeError in write_image() function issue with aces_ocio 1.2 #4

BushraAlma opened this issue Oct 20, 2020 · 1 comment

Comments

@BushraAlma
Copy link

I'm using the aces_ocio 1.2 from this repo for the support of OpenImageIO 2 but I'm the following error:

File "python/aces_ocio/generate_config.py", line 1573, in generate_config
lut_directory, lut_resolution_1D, lut_resolution_3D, cleanup)
File "python/aces_ocio/generate_config.py", line 1132, in create_config_data
cleanup)
File "python/aces_ocio/colorspaces/aces.py", line 1950, in create_colorspaces
max_value=1.468)
File "python/aces_ocio/colorspaces/aces.py", line 155, in create_ACEScc
{}, cleanup, aces_ctl_directory, min_value, max_value, 1)
File "python/aces_ocio/generate_lut.py", line 686, in generate_1D_LUT_from_CTL
max_value)
File "python/aces_ocio/generate_lut.py", line 103, in generate_1D_LUT_image
ramp.write_image(data)
TypeError: write_image(): incompatible function arguments. The following argument types are supported:
1. (self: OpenImageIO.ImageOutput, arg0: buffer) -> bool

Invoked with: <OpenImageIO.ImageOutput object at 0x7fdee93e4068>, array('f', [-0.35839998722076416, -0.35839998722076416, -0.35839998722076416, -0.3579539954662323, -0.3579539954662323, -0.3579539954662323, -0.35750797390937805, -0.35750797390937805, -0.35750797390937805, -0.3570619821548462, -0.3570619821548462, -0.3570619821548462, -0.35661596059799194, -0.35661596059799194, -0.35661596059799194, -0.3561699688434601, -0.3561699688434601, -0.3561699688434601, -0.35572394728660583, -0.35572394728660583, -0.35572394728660583, -0.355277955532074, -0.355277955532074, -0.355277955532074, -0.3548319339752197, -0.3548319339752197, -0.3548319339752197, -0.35438594222068787, -0.35438594222068787, -0.35438594222068787, -0.3539399206638336, -0.3539399206638336, -0.3539399206638336, -0.35349392890930176, -0.35349392890930176, -0.35349392890930176, -0.3530479073524475, -0.3530479073524475, -0.3530479073524475, -0.35260191559791565, -0.35260191559791565, -0.35260191559791565, -0.3521558940410614, -0.3521558940410614, -0.3521558940410614, -0.35170990228652954, -0.35170990228652954, -0.35170990228652954, -0.3512638807296753, -0.3512638807296753, -0.3512638807296753, -0.35081788897514343, -0.35081788897514343, -0.35081788897514343, -0.3503718674182892, -0.3503718674182892, -0.3503718674182892, -0.3499258756637573, -0.3499258756637573, -0.3499258756637573, -0.3494798541069031, -0.3494798541069031, -0.3494798541069031, -0.34903383255004883, -0.34903383255004883, -0.34903383255004883, -0.34858784079551697, -0.34858784079551697, -0.34858784079551697, -0.3481418192386627, -0.3481418192386627, -0.3481418192386627, -0.34769582748413086, -0.34769582748413086, -0.34769582748413086, -0.3472498059272766, -0.3472498059272766, -0.3472498059272766, -0.34680381417274475, -0.34680381417274475, -0.34680381417274475, -0.3463577926158905, -0.3463577926158905, -0.3463577926158905, -0.34591180086135864, -0.34591180086135864, -0.34591180086135864, -0.3454657793045044, -0.3454657793045044, -0.3454657793045044, -0.34501978754997253, -0.34501978754997253, -0.34501978754997253, -0.3445737659931183, -0.3445737659931183, -0.3445737659931183, -0.3441277742385864, -0.3441277742385864, -0.3441277742385864, -0.3436817526817322, -0.3436817526817322, -0.3436817526817322, -0.3432357609272003, -0.3432357609272003, -0.3432357609272003, -0.34278973937034607, -0.34278973937034607, -0.34278973937034607, -0.3423437476158142, -0.3423437476158142, -0.3423437476158142, -0.34189772605895996, -0.34189772605895996, -0.34189772605895996, -0.3414517343044281, -0.3414517343044281, -0.3414517343044281, -0.34100571274757385, -0.34100571274757385, -0.34100571274757385, -0.340559720993042, -0.340559720993042, -0.340559720993042, -0.34011369943618774, -0.34011369943618774, -0.34011369943618774, -0.3396676778793335, -0.3396676778793335, -0.3396676778793335, -0.33922168612480164, -0.33922168612480164, -0.33922168612480164, -0.3387756645679474, -0.3387756645679474, -0.3387756645679474, -0.3383296728134155, -0.3383296728134155, -0.3383296728134155, -0.3378836512565613, -0.3378836512565613, -0.3378836512565613, -0.3374376595020294, -0.3374376595020294, -0.3374376595020294, -0.33699163794517517, -0.33699163794517517, -0.33699163794517517, -0.3365456461906433, -0.3365456461906433, -0.3365456461906433, -0.33609962463378906, -0.33609962463378906, -0.33609962463378906, -0.3356536328792572, -0.3356536328792572, -0.3356536328792572, -0.33520761132240295, -0.33520761132240295, -0.33520761132240295, -0.3347616195678711, -0.3347616195678711, -0.3347616195678711, -0.33431559801101685, -0.33431559801101685, -0.33431559801101685, -0.333869606256485, -0.333869606256485, -0.333869606256485, -0.33342358469963074, -0.33342358469963074, -0.33342358469963074, -0.3329775929450989, -0.3329775929450989, -0.3329775929450989, -0.33253157138824463, -0.33253157138824463, -0.33253157138824463, -0.33208557963371277, -0.33208557963371277, -0.33208557963371277, -0.3316395580768585, -0.3316395580768585, -0.3316395580768585, -0.33119356632232666, -0.33119356632232666, -0.33119356632232666, -0.3307475447654724, -0.3307475447654724, -0.3307475447654724, -0.33030155301094055, -0.33030155301094055, -0.33030155301094055, -0.3298555314540863, -0.3298555314540863, -0.3298555314540863, -0.32940950989723206, -0.32940950989723206, -0.32940950989723206, -0.3289635181427002, -0.3289635181427002, -0.3289635181427002, -0.32851749658584595, -0.32851749658584595, -0.32851749658584595, -0.3280715048313141, -0.3280715048313141, -0.3280715048313141, -0.32762548327445984, -0.32762548327445984, -0.32762548327445984, -0.327179491519928, -0.327179491519928, -0.327179491519928, -0.32673346996307373, -0.32673346996307373, -0.32673346996307373, -0.32628747820854187, -0.32628747820854187, -0.32628747820854187, -0.3258414566516876, -0.3258414566516876, -0.3258414566516876, -0.32539546489715576, -0.32539546489715576, -0.32539546489715576, -0.3249494433403015, -0.3249494433403015, -0.3249494433403015, -0.32450345158576965, -0.32450345158576965, -0.32450345158576965, -0.3240574300289154, -0.3240574300289154, -0.3240574300289154, -0.32361143827438354, -0.32361143827438354, -0.32361143827438354, -0.3231654167175293, -0.3231654167175293, -0.3231654167175293, -0.32271942496299744, -0.32271942496299744, -0.32271942496299744, -0.3222734034061432, -0.3222734034061432, -0.3222734034061432, -0.32182741165161133, -0.32182741165161133, -0.32182741165161133, -0.3213813900947571, -0.3213813900947571, -0.3213813900947571, -0.3209353983402252, -0.3209353983402252, -0.3209353983402252, -0.32048937678337097, -0.32048937678337097, -0.32048937678337097, -0.3200433552265167, -0.3200433552265167, -0.3200433552265167, -0.31959736347198486, -0.31959736347198486, -0.31959736347198486, -0.3191513419151306, -0.3191513419151306, -0.3191513419151306, -0.31870535016059875, -0.31870535016059875, -0.31870535016059875, -0.3182593286037445, -0.3182593286037445, -0.3182593286037445, -0.31781333684921265, -0.31781333684921265, -0.31781333684921265, -0.3173673152923584, -0.3173673152923584, -0.3173673152923584, -0.31692132353782654, -0.31692132353782654, -0.31692132353782654, -0.3164753019809723, -0.3164753019809723, -0.3164753019809723, -0.31602931022644043, -0.31602931022644043, -0.31602931022644043, -0.3155832886695862, -0.3155832886695862, -0.3155832886695862, -0.3151372969150543, -0.3151372969150543, -0.3151372969150543, -0.3146912753582001, -0.3146912753582001, -0.3146912753582001, -0.3142452836036682, -0.3142452836036682, -0.3142452836036682, -0.31379926204681396, -0.31379926204681396, -0.31379926204681396, -0.3133532702922821, -0.3133532702922821, -0.3133532702922821, -0.31290724873542786, -0.31290724873542786, -0.31290724873542786, -0.312461256980896, -0.312461256980896, -0.312461256980896, -0.31201523542404175, -0.31201523542404175, -0.31201523542404175, -0.3115692436695099, -0.3115692436695099, -0.3115692436695099, -0.31112322211265564, -0.31112322211265564, -0.31112322211265564, -0.3106772303581238, -0.3106772303581238, -0.3106772303581238, -0.31023120880126953, -0.31023120880126953, -0.31023120880126953, -0.3097851872444153, -0.3097851872444153, -0.3097851872444153, -0.3093391954898834, -0.3093391954898834, -0.3093391954898834, -0.3088931739330292, -0.3088931739330292, -0.3088931739330292, -0.3084471821784973, -0.3084471821784973, -0.3084471821784973, -0.30800116062164307, -0.30800116062164307, -0.30800116062164307, -0.3075551688671112, -0.3075551688671112, -0.3075551688671112, -0.30710914731025696, -0.30710914731025696, -0.30710914731025696, -0.3066631555557251, -0.3066631555557251, -0.3066631555557251, -0.30621713399887085, -0.30621713399887085, -0.30621713399887085, -0.305771142244339, -0.305771142244339, -0.305771142244339, -0.30532512068748474, -0.30532512068748474, -0.30532512068748474, -0.3048791289329529, -0.3048791289329529, -0.3048791289329529, -0.30443310737609863, -0.30443310737609863, -0.30443310737609863, -0.3039871156215668, -0.3039871156215668, -0.3039871156215668, -0.3035410940647125, -0.3035410940647125, -0.3035410940647125, -0.30309510231018066, -0.30309510231018066, -0.30309510231018066, -0.3026490807533264, -0.3026490807533264, -0.3026490807533264, -0.30220308899879456, -0.30220308899879456, -0.30220308899879456, -0.3017570674419403, -0.3017570674419403, -0.3017570674419403, -0.30131107568740845, -0.30131107568740845, -0.30131107568740845, -0.3008650541305542, -0.3008650541305542, -0.3008650541305542, -0.30041906237602234, -0.30041906237602234, -0.30041906237602234, -0.2999730408191681, -0.2999730408191681, -0.2999730408191681, -0.29952701926231384, -0.29952701926231384, -0.29952701926231384, -0.299081027507782, -0.299081027507782, -0.299081027507782, -0.29863500595092773, -0.29863500595092773, -0.29863500595092773, -0.2981890141963959, -0.2981890141963959, -0.2981890141963959, -0.2977429926395416, -0.2977429926395416, -0.2977429926395416, -0.29729700088500977, -0.29729700088500977, -0.29729700088500977, -0.2968509793281555, -0.2968509793281555, -0.2968509793281555, -0.29640498757362366, -0.29640498757362366, -0.29640498757362366, -0.2959589660167694, -0.2959589660167694, -0.2959589660167694, -0.29551297426223755, -0.29551297426223755, -0.29551297426223755, -0.2950669527053833, -0.2950669527053833, -0.2950669527053833, -0.29462096095085144, -0.29462096095085144, -0.29462096095085144, -0.2941749393939972, -0.2941749393939972, -0.2941749393939972, -0.29372894763946533, -0.29372894763946533, -0.29372894763946533, -0.2932829260826111, -0.2932829260826111, -0.2932829260826111, -0.2928369343280792, -0.2928369343280792, -0.2928369343280792, -0.292390912771225, -0.292390912771225, -0.292390912771225, -0.2919449210166931, -0.2919449210166931, -0.2919449210166931, -0.29149889945983887, -0.29149889945983887, -0.29149889945983887, -0.291052907705307, -0.291052907705307, -0.291052907705307, -0.29060688614845276, -0.29060688614845276, -0.29060688614845276, -0.2901608645915985, -0.2901608645915985, -0.2901608645915985, -0.28971487283706665, -0.28971487283706665, -0.28971487283706665, -0.2892688512802124, -0.2892688512802124, -0.2892688512802124, -0.28882285952568054, -0.28882285952568054, -0.28882285952568054, -0.2883768379688263, -0.2883768379688263, -0.2883768379688263, -0.28793084621429443, -0.28793084621429443, -0.28793084621429443, -0.2874848246574402, -0.2874848246574402, -0.2874848246574402, -0.2870388329029083, -0.2870388329029083, -0.2870388329029083, -0.2865928113460541, -0.2865928113460541, -0.2865928113460541, -0.2861468195915222, -0.2861468195915222, -0.2861468195915222, -0.28570079803466797, -0.28570079803466797, -0.28570079803466797, -0.2852548062801361, -0.2852548062801361, -0.2852548062801361, -0.28480878472328186, -0.28480878472328186, -0.28480878472328186, -0.28436279296875, -0.28436279296875, -0.28436279296875, -0.28391677141189575, -0.28391677141189575, -0.28391677141189575, -0.2834707796573639, -0.2834707796573639, -0.2834707796573639, -0.28302475810050964, -0.28302475810050964, -0.28302475810050964, -0.2825787663459778, -0.2825787663459778, -0.2825787663459778, -0.28213274478912354, -0.28213274478912354, -0.28213274478912354, -0.2816867530345917, -0.2816867530345917, -0.2816867530345917, -0.2812407314777374, -0.2812407314777374, -0.2812407314777374, -0.28079473972320557, -0.28079473972320557, -0.28079473972320557, -0.2803487181663513, -0.2803487181663513, -0.2803487181663513, -0.27990269660949707, -0.27990269660949707, -0.27990269660949707, -0.2794567048549652, -0.2794567048549652, -0.2794567048549652, -0.27901068329811096, -0.27901068329811096, -0.27901068329811096, -0.2785646915435791, -0.2785646915435791, -0.2785646915435791, -0.27811866998672485, -0.27811866998672485, -0.27811866998672485, -0.277672678232193, -0.277672678232193, -0.277672678232193, -0.27722665667533875, -0.27722665667533875, -0.27722665667533875, -0.2767806649208069, -0.2767806649208069, -0.2767806649208069, -0.27633464336395264, -0.27633464336395264, -0.27633464336395264, -0.2758886516094208, -0.2758886516094208, -0.2758886516094208, -0.27544263005256653, -0.27544263005256653, -0.27544263005256653, -0.27499663829803467, -0.27499663829803467, -0.27499663829803467, -0.2745506167411804, -0.2745506167411804, -0.2745506167411804, -0.27410462498664856, -0.27410462498664856, -0.27410462498664856, -0.2736586034297943, -0.2736586034297943, -0.2736586034297943, -0.27321261167526245, -0.27321261167526245, -0.27321261167526245, -0.2727665901184082, -0.2727665901184082, -0.2727665901184082, -0.27232059836387634, -0.27232059836387634, -0.27232059836387634, -0.2718745768070221, -0.2718745768070221, -0.2718745768070221, -0.27142858505249023, -0.27142858505249023, -0.27142858505249023, -0.270982563495636, -0.270982563495636, -0.270982563495636, -0.27053654193878174, -0.27053654193878174, -0.27053654193878174, -0.2700905501842499, -0.2700905501842499, -0.2700905501842499, -0.26964452862739563, -0.26964452862739563, -0.26964452862739563, -0.26919853687286377, -0.26919853687286377, -0.26919853687286377, -0.2687525153160095, -0.2687525153160095, -0.2687525153160095, -0.26830652356147766, -0.26830652356147766, -0.26830652356147766, -0.2678605020046234, -0.2678605020046234, -0.2678605020046234, -0.26741451025009155, -0.26741451025009155, -0.26741451025009155, -0.2669684886932373, -0.2669684886932373, -0.2669684886932373, -0.26652249693870544, -0.26652249693870544, -0.26652249693870544, -0.2660764753818512, -0.2660764753818512, -0.2660764753818512, -0.26563048362731934, -0.26563048362731934, -0.26563048362731934, -0.2651844620704651, -0.2651844620704651, -0.2651844620704651, -0.2647384703159332, -0.2647384703159332, -0.2647384703159332, -0.264292448759079, -0.264292448759079, -0.264292448759079, -0.2638464570045471, -0.2638464570045471, -0.2638464570045471, -0.26340043544769287, -0.26340043544769287, -0.26340043544769287, -0.262954443693161, -0.262954443693161, -0.262954443693161, -0.26250842213630676, -0.26250842213630676, -0.26250842213630676, -0.2620624303817749, -0.2620624303817749, -0.2620624303817749, -0.26161640882492065, -0.26161640882492065, -0.26161640882492065, -0.2611704170703888, -0.2611704170703888, -0.2611704170703888, -0.26072439551353455, -0.26072439551353455, -0.26072439551353455, -0.2602783739566803, -0.2602783739566803, -0.2602783739566803, -0.25983238220214844, -0.25983238220214844, -0.25983238220214844, -0.2593863606452942, -0.2593863606452942, -0.2593863606452942, -0.25894036889076233, -0.25894036889076233, -0.25894036889076233, -0.2584943473339081, -0.2584943473339081, -0.2584943473339081, -0.2580483555793762, -0.2580483555793762, -0.2580483555793762, -0.257602334022522, -0.257602334022522, -0.257602334022522, -0.2571563422679901, -0.2571563422679901, -0.2571563422679901, -0.25671032071113586, -0.25671032071113586, -0.25671032071113586, -0.256264328956604, -0.256264328956604, -0.256264328956604, -0.25581830739974976, -0.25581830739974976, -0.25581830739974976, -0.2553723156452179, -0.2553723156452179, -0.2553723156452179, -0.25492629408836365, -0.25492629408836365, -0.25492629408836365, -0.2544803023338318, -0.2544803023338318, -0.2544803023338318, -0.25403428077697754, -0.25403428077697754, -0.25403428077697754, -0.2535882890224457, -0.2535882890224457, -0.2535882890224457, -0.25314226746559143, -0.25314226746559143, -0.25314226746559143, -0.25269627571105957, -0.25269627571105957, -0.25269627571105957, -0.2522502541542053, -0.2522502541542053, -0.2522502541542053, -0.25180426239967346, -0.25180426239967346, -0.25180426239967346, -0.2513582408428192, -0.2513582408428192, -0.2513582408428192, -0.25091224908828735, -0.25091224908828735, -0.25091224908828735, -0.2504662275314331, -0.2504662275314331, -0.2504662275314331, -0.25002020597457886, -0.25002020597457886, -0.25002020597457886, -0.249574214220047, -0.249574214220047, -0.249574214220047, -0.24912820756435394, -0.24912820756435394, -0.24912820756435394, -0.2486822009086609, -0.2486822009086609, -0.2486822009086609, -0.24823619425296783, -0.24823619425296783, -0.24823619425296783, -0.24779018759727478, -0.24779018759727478, -0.24779018759727478, -0.24734418094158173, -0.24734418094158173, -0.24734418094158173, -0.24689817428588867, -0.24689817428588867, -0.24689817428588867, -0.24645216763019562, -0.24645216763019562, -0.24645216763019562, -0.24600616097450256, -0.24600616097450256, -0.24600616097450256, -0.24556013941764832, -0.24556013941764832, -0.24556013941764832, -0.24511413276195526, -0.24511413276195526, -0.24511413276195526, -0.2446681261062622, -0.2446681261062622, -0.2446681261062622, -0.24422211945056915, -0.24422211945056915, -0.24422211945056915, -0.2437761127948761, -0.2437761127948761, -0.2437761127948761, -0.24333010613918304, -0.24333010613918304, -0.24333010613918304, -0.24288409948349, -0.24288409948349, -0.24288409948349, -0.24243809282779694, -0.24243809282779694, -0.24243809282779694, -0.24199208617210388, -0.24199208617210388, -0.24199208617210388, -0.24154607951641083, -0.24154607951641083, -0.24154607951641083, -0.24110007286071777, -0.24110007286071777, -0.24110007286071777, -0.24065406620502472, -0.24065406620502472, -0.24065406620502472, -0.24020805954933167, -0.24020805954933167, -0.24020805954933167, -0.2397620528936386, -0.2397620528936386, -0.2397620528936386, -0.23931604623794556, -0.23931604623794556, -0.23931604623794556, -0.2388700395822525, -0.2388700395822525, -0.2388700395822525, -0.23842403292655945, -0.23842403292655945, -0.23842403292655945, -0.2379780262708664, -0.2379780262708664, -0.2379780262708664, -0.23753201961517334, -0.23753201961517334, -0.23753201961517334, -0.23708601295948029, -0.23708601295948029, -0.23708601295948029, -0.23664000630378723, -0.23664000630378723, -0.23664000630378723, -0.23619399964809418, -0.23619399964809418, -0.23619399964809418, -0.23574797809123993, -0.23574797809123993, -0.23574797809123993, -0.23530197143554688, -0.23530197143554688, -0.23530197143554688, -0.23485596477985382, -0.23485596477985382, -0.23485596477985382, -0.23440995812416077, -0.23440995812416077, -0.23440995812416077, -0.2339639514684677, -0.2339639514684677, -0.2339639514684677,....it goes on and on

@BushraAlma
Copy link
Author

i believe array needs to be created in numpy .. giving that a try

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant