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 : 1346038 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 : ['3441620'] with mtr_portfolio_ids : ['25656691'] and first list_photo_ids : [] new path : /proc/1346038/ 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.051967620849609375 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:merge_dashboard Tue Aug 5 02:32: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 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 (2069957, '_______JRM', '2025-08-05 00:00:04', '2025-08-05 00:14:54', 69, 25656824, 0.058907875279875815, 3440437, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25656824_05-08-2025_00_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25656832, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25656833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25656834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25656835, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25656836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25656837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25656838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25656839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25656840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25656841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25656842, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25656843, '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 (2069957, '_______JRM', '2025-08-05 00:15:04', '2025-08-05 00:29:44', 73, 25657102, 0.06500437511109095, 3440493, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25657102_05-08-2025_00_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25657125, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25657126, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25657127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25657128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25657129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25657130, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25657131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25657132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25657133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25657134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25657135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25657136, '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 (2069957, '_______JRM', '2025-08-05 00:30:24', '2025-08-05 00:44:34', 75, 25657469, 0.05577297802820157, 3440594, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25657469_05-08-2025_00_47_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25657480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25657481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25657482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25657483, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25657484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25657485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25657486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25657487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25657488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25657489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25657490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25657491, '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 (2069957, '_______JRM', '2025-08-05 00:45:04', '2025-08-05 00:58:34', 52, 25657869, 0.055433274007320496, 3440737, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25657869_05-08-2025_01_33_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25657874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25657875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25657876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25657877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25657878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25657879, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25657880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25657881, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25657882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25657883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25657884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25657885, '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 (2069957, '_______JRM', '2025-08-05 01:30:14', '2025-08-05 01:44:54', 62, 25659113, 0.05135286118226185, 3441137, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25659113_05-08-2025_01_48_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25659118, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25659119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25659120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25659121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25659122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25659123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25659124, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25659125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25659126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25659127, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25659128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25659129, '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 (2069957, '_______JRM', '2025-08-05 01:45:55', '2025-08-05 01:58:54', 58, 25659455, 0.07478317085122338, 3441204, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25659455_05-08-2025_02_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25659464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25659465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25659466, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25659467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25659468, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25659469, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25659470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25659471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25659472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25659473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25659474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25659475, '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 (2069957, '_______JRM', '2025-08-05 02:00:14', '2025-08-05 02:14:55', 67, 25659773, 0.048114372379386865, 3441307, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25659773_05-08-2025_02_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25659806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25659807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25659808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25659809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25659810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25659811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25659812, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25659813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25659814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25659815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25659816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25659817, '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 (2069957, '_______JRM', '2025-08-05 02:15:15', '2025-08-05 02:29:45', 53, 25660335, 0.05824192758042338, 3441402, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25660335_05-08-2025_02_30_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25660346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25660347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25660348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25660349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25660350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25660351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25660352, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25660353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25660354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25660355, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25660356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25660357, '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.02784109115600586 time spend for datou_step_exec : 0.4520108699798584 time spend to save output : 0.028334617614746094 total time spend for step 1 : 0.4803454875946045 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.06user 0.98system 0:03.73elapsed 55%CPU (0avgtext+0avgdata 99444maxresident)k 0inputs+32outputs (3major+48397minor)pagefaults 0swaps