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 : 43465 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 : ['3420556'] with mtr_portfolio_ids : ['25567928'] and first list_photo_ids : [] new path : /proc/43465/ 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.06846427917480469 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:merge_dashboard Fri Aug 1 03:32:27 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 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 (2050185, '_______JRM', '2025-08-01 00:00:14', '2025-08-01 00:14:54', 64, 25567995, 0.0259186337603348, 3418591, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25567995_01-08-2025_00_18_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25568034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25568035, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25568036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25568037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25568038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25568039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25568040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25568041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25568042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25568043, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25568044, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25568045, '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 (2050185, '_______JRM', '2025-08-01 00:16:14', '2025-08-01 00:29:34', 79, 25568659, 0.08874996684385152, 3418661, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25568659_01-08-2025_00_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25568669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25568670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25568671, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25568672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25568673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25568674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25568675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25568676, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25568677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25568678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25568679, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25568680, '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 (2050185, '_______JRM', '2025-08-01 00:30:24', '2025-08-01 00:44:54', 88, 25569147, 0.030635034689344375, 3418752, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25569147_01-08-2025_00_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25569174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25569175, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25569176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25569177, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25569178, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25569179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25569180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25569181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25569182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25569183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25569184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25569185, '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 (2050185, '_______JRM', '2025-08-01 00:45:04', '2025-08-01 00:58:54', 67, 25569639, 0.041123568891179144, 3418847, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25569639_01-08-2025_01_02_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25569685, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25569686, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25569687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25569688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25569689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25569690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25569691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25569692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25569693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25569694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25569695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25569696, '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 (2050185, '_______JRM', '2025-08-01 01:30:34', '2025-08-01 01:44:54', 69, 25571011, 0.046969635044739486, 3419303, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25571011_01-08-2025_01_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25571015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25571016, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25571017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25571018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25571019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25571020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25571021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25571022, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25571023, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25571024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25571025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25571026, '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 (2050185, '_______JRM', '2025-08-01 01:45:04', '2025-08-01 01:57:24', 66, 25571213, 0.025969965385988843, 3419344, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25571213_01-08-2025_01_58_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25571224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25571225, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25571226, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25571227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25571228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25571229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25571230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25571231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25571232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25571233, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25571234, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25571235, '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 (2050185, '_______JRM', '2025-08-01 02:45:05', '2025-08-01 02:59:34', 76, 25573095, 0.022537774769290895, 3419927, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25573095_01-08-2025_03_05_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25573114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25573115, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25573116, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25573117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25573118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25573119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25573120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25573121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25573122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25573123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25573124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25573125, '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 (2050185, '_______JRM', '2025-08-01 03:00:04', '2025-08-01 03:14:34', 98, 25573629, 0.050952480940127325, 3420150, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25573629_01-08-2025_03_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25573674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25573675, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25573676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25573677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25573678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25573679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25573680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25573681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25573682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25573683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25573684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25573685, '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 (2050185, '_______JRM', '2025-08-01 03:15:14', '2025-08-01 03:15:44', 3, 25574242, -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_P25574242_01-08-2025_03_19_36.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25574274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25574275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25574276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25574277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25574278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25574280, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25574281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25574282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25574283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25574284, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25574285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25574286, '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.030228376388549805 time spend for datou_step_exec : 0.42766642570495605 time spend to save output : 0.03066396713256836 total time spend for step 1 : 0.4583303928375244 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.17user 0.67system 0:02.62elapsed 70%CPU (0avgtext+0avgdata 100612maxresident)k 0inputs+32outputs (0major+48370minor)pagefaults 0swaps