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 : 219427 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 : ['3732007'] with mtr_portfolio_ids : ['26918391'] and first list_photo_ids : [] new path : /proc/219427/ 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.047972917556762695 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:merge_dashboard Wed Sep 17 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 (2308563, '_______JRM', '2025-09-17 00:00:44', '2025-09-17 00:10:24', 35, 26918428, 0.03660753182015944, 3731438, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918428_17-09-2025_00_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918444, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918449, '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 (2308563, '_______JRM', '2025-09-17 00:16:05', '2025-09-17 00:29:24', 57, 26918876, 0.04391700835636484, 3731477, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26918876_17-09-2025_00_32_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26918880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26918881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26918882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26918883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26918884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26918885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26918886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26918887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26918888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26918889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26918890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26918891, '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 (2308563, '_______JRM', '2025-09-17 00:30:24', '2025-09-17 00:44:54', 56, 26919228, 0.041403661657528776, 3731525, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919228_17-09-2025_00_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919240, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919245, '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 (2308563, '_______JRM', '2025-09-17 00:45:04', '2025-09-17 00:56:24', 46, 26919628, 0.06635756464650115, 3731581, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26919628_17-09-2025_01_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26919633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26919634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26919635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26919636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26919637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26919638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26919639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26919640, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26919641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26919642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26919643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26919644, '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 (2308563, '_______JRM', '2025-09-17 01:30:14', '2025-09-17 01:44:54', 53, 26920486, 0.030066156856176727, 3731710, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920486_17-09-2025_01_47_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26920491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920495, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920499, '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 (2308563, '_______JRM', '2025-09-17 01:45:14', '2025-09-17 01:59:54', 63, 26920775, 0.02746413667816025, 3731753, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26920775_17-09-2025_02_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26920781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26920782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26920783, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26920784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26920785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26920786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26920787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26920788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26920789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26920790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26920791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26920792, '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 (2308563, '_______JRM', '2025-09-17 02:00:04', '2025-09-17 02:14:53', 60, 26921240, 0.0498102020882696, 3731835, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921240_17-09-2025_02_16_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921249, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921251, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921255, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26921258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921260, '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 (2308563, '_______JRM', '2025-09-17 02:15:24', '2025-09-17 02:29:44', 49, 26921882, 0.06355330349819159, 3731919, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26921882_17-09-2025_02_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26921893, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26921894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26921895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26921896, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26921897, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26921898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26921899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26921900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26921901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26921902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26921903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26921904, '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 (2308563, '_______JRM', '2025-09-17 02:30:13', '2025-09-17 02:31:04', 4, 26922389, -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_P26922389_17-09-2025_02_33_33.pdf'}" ); 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.02740025520324707 time spend for datou_step_exec : 0.4677457809448242 time spend to save output : 0.027797698974609375 total time spend for step 1 : 0.4955434799194336 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.02user 0.62system 0:04.04elapsed 40%CPU (0avgtext+0avgdata 98524maxresident)k 0inputs+40outputs (35major+48518minor)pagefaults 0swaps