python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 8 -a ' -a 4311 ' -s datou_current_4220 -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 : 498506 load datou : 4311 # 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) All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11939 matching_dashboard is not consistent : 1 used against 0 in the step definition ! Step 11940 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! WARNING : type of output 0 of step 11939 doesn't seem to be define in the database( WARNING : type of input 2 of step 11940 doesn't seem to be define in the database( DataTypes for each output/input checked ! 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 ? 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 we have a portfolio with more photos than limit : 2556>1000 please execute split_portfolio.py -i 23444892 -l 1000 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4311, datou_cur_ids : ['2986592'] with mtr_portfolio_ids : ['23444892'] and first list_photo_ids : [] new path : /proc/498506/ 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) All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11939 matching_dashboard is not consistent : 1 used against 0 in the step definition ! Step 11940 split_time_score have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! WARNING : type of output 0 of step 11939 doesn't seem to be define in the database( WARNING : type of input 2 of step 11940 doesn't seem to be define in the database( DataTypes for each output/input checked ! List Step Type Loaded in datou : matching_dashboard, split_time_score 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.029661178588867188 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 2 step1:matching_dashboard Fri May 30 13:00:47 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 begin datou step matching dashboard 2022-04-13 10:29:59 0 todo a Inside saveOutput : final : False verbose : 0 ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.3837764263153076 time spend to save output : 0.00010180473327636719 total time spend for step 1 : 0.383878231048584 step2:split_time_score Fri May 30 13:00:48 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure begin split time score forced hashtag should be used only with CREATE_PORT_BATCH_BY_HOUR or CONSOLIDATE task, truck value will be ignored (VR 14-3-21 feels it is a too subtle behavior, why not quitting ?) . TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 3442, 'mtr_user_id': 31, 'name': 'classifieur_2camions_valcor_021122_v1', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'deux_camions,camion_droite,camion_gauche,pas_de_camion', 'svm_portfolios_learning': '7659379,7659034,7657685,7657114', 'photo_hashtag_type': 4458, 'photo_desc_type': 5723, 'type_classification': 'tf_classification2', 'hashtag_id_list': '2107760533,2107760534,2107760535,2107760536'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('00', 358), ('01', 344), ('02', 351), ('03', 357), ('04', 369), ('05', 359), ('06', 342), ('07', 76)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30052025 23444892 Nombre de photos uploadées : 2556 / 23040 (11%) 30052025 23444892 Nombre de photos taguées (types de déchets): 2532 / 2556 (99%) 30052025 23444892 Nombre de photos taguées (volume) : 0 / 2556 (0%) elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 1.5497207641601562e-05 ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.06537675857543945 elapsed_time : insert_dashboard_record_day_entry 0.022483348846435547 ***** BEGIN SPLIT TRUCK ***** inside split by truck info ````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````````list printed: [[462], [2365, 2366], [2381], [2505]] forced_hashtag: truck force hashtag to truck elapsed_time : SPLIT_TRUCK 0.07724952697753906 ***** END SPLIT TRUCK ***** NUMBER BATCH : 4 list_ponderation used : [0.001, 0.001, 0.001, 0.001, 0.001] , list_hashtag_class_create_as_list : ['truck'] ERROR missing amount info ERROR missing amount info result_one_balle_Type_truck:{'day': '30052025', 'map_nb_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 0, 'nb_balles_papier': 0, 'begin_time_port': 'image'} Production hashtag (incorrect ponderation at 20-10-18) : 0 We have rejected 3 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 1 to update_plate_info False list_same_port_ids : [] https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=truck_diff_batch__30052025_06_38_35_009173&access_token=f1621a5ac35fdbb2264e149659fde12f ERROR in datou_step_exec, will save and exit ! HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/portfolio/new?name=truck_diff_batch__30052025_06_38_35_009173&access_token=f1621a5ac35fdbb2264e149659fde12f (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2329, in datou_exec output = datou_step_exec(sNext, args, cache, context, map_info, verbose, mtr_user_id) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2513, in datou_step_exec return lib_process.datou_step_split_time_score(param, json_param, args, context, map_info, verbose, mtr_user_id) File "/home/admin/workarea/git/Velours/python/mtr/datou/lib_step_exec/lib_step_process.py", line 2295, in datou_step_split_time_score one_result = split_port_in_batch_balle( File "/home/admin/workarea/git/Velours/python/misc/split_time_score.py", line 844, in split_port_in_batch_balle list_of_portfolios_created, dict_port = create_portfolio_and_launch_datou_carac(list_of_portfolios_to_create, File "/home/admin/workarea/git/Velours/python/mtr/math_fotonower/timeseries/lib_split_time_score.py", line 3114, in create_portfolio_and_launch_datou_carac portfolio_id = fc.get_new_portfolio(name_port_to_create, verbose) File "/home/admin/workarea/git/Velours/python/mtr/lib/fotonower_api/fotonower_connect.py", line 66, in get_new_portfolio r = requests.get(url) File "/home/admin/.local/lib/python3.8/site-packages/requests/api.py", line 73, in get return request("get", url, params=params, **kwargs) File "/home/admin/.local/lib/python3.8/site-packages/requests/api.py", line 59, in request return session.request(method=method, url=url, **kwargs) File "/home/admin/.local/lib/python3.8/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "/home/admin/.local/lib/python3.8/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "/home/admin/.local/lib/python3.8/site-packages/requests/adapters.py", line 519, in send raise ConnectionError(e, request=request) [1361757666, 1361757659, 1361757655, 1361757651, 1361757645, 1361757641, 1361757626, 1361757624, 1361757623, 1361757622, 1361757620, 1361757616, 1361757594, 1361757592, 1361757582, 1361757568, 1361757563, 1361757558, 1361757532, 1361757529, 1361757526, 1361757523, 1361757519, 1361757515, 1361757492, 1361757488, 1361757485, 1361757481, 1361757477, 1361757472, 1361757461, 1361757457, 1361757453, 1361757450, 1361757447, 1361757443, 1361757402, 1361757399, 1361757397, 1361757394, 1361757391, 1361757386, 1361757351, 1361757347, 1361757345, 1361757343, 1361757340, 1361757336, 1361757305, 1361757300, 1361757297, 1361757293, 1361757288, 1361757276, 1361757172, 1361757165, 1361757152, 1361757145, 1361757138, 1361757115, 1361757085, 1361757082, 1361757079, 1361757076, 1361757073, 1361757069, 1361757042, 1361757039, 1361757037, 1361757034, 1361757030, 1361757027, 1361756998, 1361756995, 1361756992, 1361756989, 1361756986, 1361756982, 1361756951, 1361756948, 1361756947, 1361756945, 1361756943, 1361756939, 1361756909, 1361756906, 1361756903, 1361756900, 1361756896, 1361756890, 1361756863, 1361756859, 1361756856, 1361756853, 1361756849, 1361756845, 1361756814, 1361756812, 1361756810, 1361756808] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 100 time used for this insertion : 0.043519020080566406 save_final ERROR in last step split_time_score, HTTPSConnectionPool(host='marlene.fotonower.com', port=443): Max retries exceeded with url: /api/v1/secured/portfolio/new?name=truck_diff_batch__30052025_06_38_35_009173&access_token=f1621a5ac35fdbb2264e149659fde12f (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 111] Connection refused')) time spend for datou_step_exec : 0.45086669921875 time spend to save output : 0.04756927490234375 total time spend for step 1 : 0.49843597412109375 need to delete datou_research and reload, so keep current state 1 need to delete datou_research and reload, so keep current state 1 caffe_path_current : About to save ! 2 After save, about to update current ! 1.12user 0.83system 0:03.39elapsed 57%CPU (0avgtext+0avgdata 112728maxresident)k 0inputs+40outputs (2major+38452minor)pagefaults 0swaps