python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4935' -s datou_current_4935 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] process id : 1996393 load datou : 4935 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! Unexpected type for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current TODO datou_current to load to do maybe to take outside batchDatouExec no input labels no input values updating current state to 1 list_input_json: {} Current got : datou_id : 4935, datou_cur_ids : ['4043843'] with mtr_portfolio_ids : ['28503877'] and first list_photo_ids : [] new path : /proc/1996393/ Inside batchDatouExec : verbose : 0 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! List Step Type Loaded in datou : merge_dashboard over limit max, limiting to limit_max 100 list_input_json : {} origin We have 1 , WARNING: data may be incomplete, need to offset and complete ! we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB time to download the photos : 0.02948284149169922 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:merge_dashboard Fri Nov 14 02:34:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 2022-04-13 10:29:59 0 TODO : Insert select and so on TODO : Insert select and so on to do to do to do to do to do to do to do to do to do to do TODO : Insert select and so on Catched exception ! Connect or reconnect ! Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_results` (`dashboard_run_id`, `hashtag`, `date_debut`, `date_fin`, `nombre_balle`, `mtr_portfolio_id`, `qualite`, `datou_result_id_qualite`, `completion_percentage`, `completion_json`) VALUES (2585566, '_______JRM', '2025-11-14 00:00:14', '2025-11-14 00:14:54', 69, 28504025, 0.050179598565920226, 4043322, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28504025_14-11-2025_00_19_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504059, 'pht': 3726}}" ); INSERT INTO `MTRPhoto`.`dashboard_results` (`dashboard_run_id`, `hashtag`, `date_debut`, `date_fin`, `nombre_balle`, `mtr_portfolio_id`, `qualite`, `datou_result_id_qualite`, `completion_percentage`, `completion_json`) VALUES (2585566, '_______JRM', '2025-11-14 00:15:14', '2025-11-14 00:29:54', 27, 28504648, 0.05553103364842464, 4043382, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28504648_14-11-2025_00_33_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28504652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28504653, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28504654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28504655, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28504656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28504657, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28504658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28504659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28504660, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28504661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28504662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28504663, 'pht': 3726}}" ); INSERT INTO `MTRPhoto`.`dashboard_results` (`dashboard_run_id`, `hashtag`, `date_debut`, `date_fin`, `nombre_balle`, `mtr_portfolio_id`, `qualite`, `datou_result_id_qualite`, `completion_percentage`, `completion_json`) VALUES (2585566, '_______JRM', '2025-11-14 00:30:04', '2025-11-14 00:41:54', 39, 28505140, 0.030113285884549097, 4043410, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28505140_14-11-2025_00_49_04.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28505162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505170, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505175, 'pht': 3726}}" ); INSERT INTO `MTRPhoto`.`dashboard_results` (`dashboard_run_id`, `hashtag`, `date_debut`, `date_fin`, `nombre_balle`, `mtr_portfolio_id`, `qualite`, `datou_result_id_qualite`, `completion_percentage`, `completion_json`) VALUES (2585566, '_______JRM', '2025-11-14 00:46:24', '2025-11-14 00:58:54', 58, 28505764, 0.07231303291651762, 4043455, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28505764_14-11-2025_01_03_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28505805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28505806, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28505807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28505808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28505809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28505810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28505811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28505812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28505813, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28505814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28505815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28505816, 'pht': 3726}}" ); INSERT INTO `MTRPhoto`.`dashboard_results` (`dashboard_run_id`, `hashtag`, `date_debut`, `date_fin`, `nombre_balle`, `mtr_portfolio_id`, `qualite`, `datou_result_id_qualite`, `completion_percentage`, `completion_json`) VALUES (2585566, '_______JRM', '2025-11-14 01:32:24', '2025-11-14 01:44:44', 29, 28507316, 0.04322543651946114, 4043592, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507316_14-11-2025_01_47_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28507317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507323, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507325, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507328, 'pht': 3726}}" ); INSERT INTO `MTRPhoto`.`dashboard_results` (`dashboard_run_id`, `hashtag`, `date_debut`, `date_fin`, `nombre_balle`, `mtr_portfolio_id`, `qualite`, `datou_result_id_qualite`, `completion_percentage`, `completion_json`) VALUES (2585566, '_______JRM', '2025-11-14 01:45:34', '2025-11-14 01:58:44', 59, 28507473, 0.040445470241152116, 4043617, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507473_14-11-2025_02_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507476, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507478, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28507486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507487, 'pht': 3726}}" ); INSERT INTO `MTRPhoto`.`dashboard_results` (`dashboard_run_id`, `hashtag`, `date_debut`, `date_fin`, `nombre_balle`, `mtr_portfolio_id`, `qualite`, `datou_result_id_qualite`, `completion_percentage`, `completion_json`) VALUES (2585566, '_______JRM', '2025-11-14 02:00:14', '2025-11-14 02:14:54', 63, 28507781, 0.0645780665846061, 4043682, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28507781_14-11-2025_02_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28507788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28507789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28507790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28507791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28507792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28507793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28507794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28507795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28507796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28507797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28507798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28507799, 'pht': 3726}}" ); INSERT INTO `MTRPhoto`.`dashboard_results` (`dashboard_run_id`, `hashtag`, `date_debut`, `date_fin`, `nombre_balle`, `mtr_portfolio_id`, `qualite`, `datou_result_id_qualite`, `completion_percentage`, `completion_json`) VALUES (2585566, '_______JRM', '2025-11-14 02:15:24', '2025-11-14 02:29:44', 63, 28508415, 0.04407362175948887, 4043758, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28508415_14-11-2025_02_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28508425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28508426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28508427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28508428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28508429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28508430, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28508431, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28508432, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28508433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28508434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28508435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28508436, 'pht': 3726}}" ); INSERT INTO `MTRPhoto`.`dashboard_results` (`dashboard_run_id`, `hashtag`, `date_debut`, `date_fin`, `nombre_balle`, `mtr_portfolio_id`, `qualite`, `datou_result_id_qualite`, `completion_percentage`, `completion_json`) VALUES (2585566, '_______JRM', '2025-11-14 02:30:24', '2025-11-14 02:33:34', 16, 28508891, -1.0, -1, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28508891_14-11-2025_02_33_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28508900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28508901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28508902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28508903, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28508904, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28508905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28508906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28508907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28508908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28508909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28508910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28508911, 'pht': 3726}}" ); Inside saveOutput : final : True verbose : 0 ouput is None saving photo_ids in datou_result begin to insert list_values into mtr_datou_result : length of list_values in save_final : 100 time used for this insertion : 0.025119304656982422 time spend for datou_step_exec : 0.3999671936035156 time spend to save output : 0.025548458099365234 total time spend for step 1 : 0.42551565170288086 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment 1.00user 0.49system 0:03.57elapsed 41%CPU (0avgtext+0avgdata 100480maxresident)k 0inputs+40outputs (4major+48366minor)pagefaults 0swaps