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 : 3771407 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 : ['3393282'] with mtr_portfolio_ids : ['25479781'] and first list_photo_ids : [] new path : /proc/3771407/ 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.05192923545837402 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:merge_dashboard Wed Jul 30 02:14:28 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 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 (2035065, '_______JRM', '2025-07-30 00:00:14', '2025-07-30 00:14:55', 73, 25479976, 0.03378535365462426, 3392471, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25479976_30-07-2025_00_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25479977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25479978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25479979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25479980, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25479981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25479982, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25479983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25479984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25479985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25479986, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25479987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25479988, '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 (2035065, '_______JRM', '2025-07-30 00:15:04', '2025-07-30 00:29:54', 85, 25480144, 0.03724528102387108, 3392510, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480144_30-07-2025_00_32_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480189, '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 (2035065, '_______JRM', '2025-07-30 00:30:04', '2025-07-30 00:44:54', 76, 25480540, 0.030373420337424576, 3392611, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480540_30-07-2025_00_46_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480558, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480563, '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 (2035065, '_______JRM', '2025-07-30 00:45:04', '2025-07-30 00:59:54', 80, 25480974, 0.033100983742398976, 3392697, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25480974_30-07-2025_01_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25480979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25480980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25480981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25480982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25480983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25480984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25480985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25480986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25480987, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25480988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25480989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25480990, '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 (2035065, '_______JRM', '2025-07-30 01:01:04', '2025-07-30 01:14:54', 74, 25481445, 0.03054757430306374, 3392822, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25481445_30-07-2025_01_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25481489, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25481490, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25481491, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25481492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25481493, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25481494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25481495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25481496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25481497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25481498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25481499, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25481500, '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 (2035065, '_______JRM', '2025-07-30 01:15:04', '2025-07-30 01:29:54', 86, 25482072, 0.025735805627455578, 3392974, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482072_30-07-2025_01_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482076, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482080, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482084, '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 (2035065, '_______JRM', '2025-07-30 01:31:04', '2025-07-30 01:44:53', 74, 25482427, 0.027874861101910207, 3393050, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482427_30-07-2025_01_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482443, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482449, '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 (2035065, '_______JRM', '2025-07-30 01:45:04', '2025-07-30 01:58:44', 64, 25482774, 0.03177120082252785, 3393144, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25482774_30-07-2025_02_00_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25482799, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25482800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25482801, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25482802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25482803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25482804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25482805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25482806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25482807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25482808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25482809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25482810, '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 (2035065, '_______JRM', '2025-07-30 02:00:54', '2025-07-30 02:10:45', 46, 25483286, 0.04759275623004017, 3393236, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25483286_30-07-2025_02_12_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25483290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25483291, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25483292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25483293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25483294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25483295, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25483296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25483297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25483298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25483299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25483300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25483301, '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.026835918426513672 time spend for datou_step_exec : 0.4419724941253662 time spend to save output : 0.027390003204345703 total time spend for step 1 : 0.4693624973297119 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 0.96user 0.45system 0:03.89elapsed 36%CPU (0avgtext+0avgdata 100124maxresident)k 0inputs+40outputs (16major+48436minor)pagefaults 0swaps