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 : 372994 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 : ['3262578'] with mtr_portfolio_ids : ['24774035'] and first list_photo_ids : [] new path : /proc/372994/ 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.05664253234863281 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:merge_dashboard Thu Jul 10 01:58: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 TODO : Insert select and so on 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 (1972908, '_______JRM', '2025-07-10 00:00:04', '2025-07-10 00:14:54', 90, 24774220, 0.0439887508083733, 3262208, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24774220_10-07-2025_00_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774262, '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 (1972908, '_______JRM', '2025-07-10 00:15:04', '2025-07-10 00:29:54', 96, 24774919, 0.04397998394299902, 3262258, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24774919_10-07-2025_00_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774956, '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 (1972908, '_______JRM', '2025-07-10 00:30:04', '2025-07-10 00:44:54', 102, 24775410, 0.03411792418508311, 3262300, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24775410_10-07-2025_00_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24775437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24775438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24775439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24775440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24775441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24775442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24775443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24775444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24775445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24775446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24775447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24775448, '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 (1972908, '_______JRM', '2025-07-10 00:45:04', '2025-07-10 00:58:54', 90, 24775941, 0.044946745018685286, 3262342, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24775941_10-07-2025_01_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24775944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24775945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24775946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24775947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24775948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24775949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24775950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24775951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24775952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24775953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24775954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24775955, '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 (1972908, '_______JRM', '2025-07-10 01:00:14', '2025-07-10 01:14:54', 101, 24776384, 0.03134340908142172, 3262393, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24776384_10-07-2025_01_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24776413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24776414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24776415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24776416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24776417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24776418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24776419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24776420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24776421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24776422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24776423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24776424, '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 (1972908, '_______JRM', '2025-07-10 01:15:04', '2025-07-10 01:29:54', 96, 24776944, 0.020695254561592224, 3262449, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24776944_10-07-2025_01_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24776973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24776974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24776975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24776976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24776977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24776978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24776979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24776980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24776981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24776982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24776983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24776984, '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 (1972908, '_______JRM', '2025-07-10 01:30:04', '2025-07-10 01:44:54', 108, 24777415, 0.09581637459819202, 3262493, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24777415_10-07-2025_01_46_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24777445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24777446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24777447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24777448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24777449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24777450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24777451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24777452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24777453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24777454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24777455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24777456, '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 (1972908, '_______JRM', '2025-07-10 01:45:04', '2025-07-10 01:54:54', 66, 24777881, 0.06212990205472722, 3262538, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24777881_10-07-2025_01_56_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24777907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24777908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24777909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24777910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24777911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24777912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24777913, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24777914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24777915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24777916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24777917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24777918, '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.028788089752197266 time spend for datou_step_exec : 0.2492361068725586 time spend to save output : 0.02913951873779297 total time spend for step 1 : 0.27837562561035156 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.07user 0.45system 0:02.21elapsed 68%CPU (0avgtext+0avgdata 100868maxresident)k 0inputs+32outputs (1major+48388minor)pagefaults 0swaps