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 : 3347638 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 : ['4132277'] with mtr_portfolio_ids : ['28974941'] and first list_photo_ids : [] new path : /proc/3347638/ 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.03190040588378906 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:merge_dashboard Fri Nov 28 02:36:26 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 (2665405, '_______JRM', '2025-11-28 00:00:14', '2025-11-28 00:12:03', 20, 28975051, 0.041448810976491474, 4131633, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_00_25_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, '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 (2665405, '_______JRM', '2025-11-28 00:18:43', '2025-11-28 00:29:54', 42, 28975640, 0.026505368073771105, 4131681, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_02_01_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, '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 (2665405, '_______JRM', '2025-11-28 00:30:04', '2025-11-28 00:44:54', 83, 28976061, 0.042472336458363125, 4131718, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_00_47_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, '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 (2665405, '_______JRM', '2025-11-28 00:45:04', '2025-11-28 00:58:43', 79, 28976505, 0.06412778247717851, 4131750, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976505_28-11-2025_01_07_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, '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 (2665405, '_______JRM', '2025-11-28 01:30:34', '2025-11-28 01:44:54', 69, 28978093, 0.04418266088507693, 4131962, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978093_28-11-2025_01_47_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, '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 (2665405, '_______JRM', '2025-11-28 01:45:04', '2025-11-28 01:58:53', 66, 28978470, 0.035581685613606896, 4132016, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978470_28-11-2025_02_03_09.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, '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 (2665405, '_______JRM', '2025-11-28 02:00:14', '2025-11-28 02:14:44', 76, 28978907, 0.047752980846563486, 4132106, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978907_28-11-2025_02_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, '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 (2665405, '_______JRM', '2025-11-28 02:15:14', '2025-11-28 02:28:14', 49, 28979483, 0.047112039521059176, 4132195, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979483_28-11-2025_02_32_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, '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 (2665405, '_______JRM', '2025-11-28 02:30:14', '2025-11-28 02:33:44', 15, 28979969, -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_P28979969_28-11-2025_02_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, '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.029479265213012695 time spend for datou_step_exec : 0.48304033279418945 time spend to save output : 0.030017375946044922 total time spend for step 1 : 0.5130577087402344 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.26user 0.53system 0:02.44elapsed 73%CPU (0avgtext+0avgdata 99036maxresident)k 0inputs+32outputs (1major+48414minor)pagefaults 0swaps