python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4189' -s datou_current_4189 -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 : 2543636 load datou : 4189 # 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 : 4189, datou_cur_ids : ['4209141'] with mtr_portfolio_ids : ['29334334'] and first list_photo_ids : [] new path : /proc/2543636/ 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 : 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.02670764923095703 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Thu Dec 11 15:00:31 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 split time score 2022-04-13 10:29:59 0 TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 3379, 'mtr_user_id': 31, 'name': 'learn_classif_flux_maj_generique_effnet_v2_s_02062022', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'aluminium,ela,film_pedb,flux_dev,jrm,pcm,pcnc,pehd_pp,pet_clair,refus,tapis_vide', 'svm_portfolios_learning': '5515864,5515840,5515844,5515850,6244400,6237996,6237998,5515847,5515841,5515868,5515866', 'photo_hashtag_type': 4374, 'photo_desc_type': 5680, 'type_classification': 'tf_classification2', 'hashtag_id_list': '493546845,492741797,2107760237,2107760238,495916461,560181804,1284539308,2107760239,2107755846,538914404,2107748999'}] thcls : [{'id': 3513, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2_tf', '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': 4557, 'photo_desc_type': 5767, 'type_classification': 'tf_classification2', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('10', 254),) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 254} 11122025 29334334 Nombre de photos uploadées : 254 / 23040 (1%) 11122025 29334334 Nombre de photos taguées (types de déchets): 254 / 254 (100%) 11122025 29334334 Nombre de photos taguées (volume) : 254 / 254 (100%) elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 0.00011229515075683594 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL elapsed_time : fill_and_build_computed_from_old_data 0.013256549835205078 Catched exception ! Connect or reconnect ! Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2468855381011963 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL Creating list_photo_by_hashtags elapsed_time : list_photo_by_hashtags 0.033704519271850586 Creating list_photo_total elapsed_time : select_descriptors 13.168267488479614 11122025 29334334 Nombre de photos avec descriptors (type 5680) : 254 / 254 (100%) ERROR : Hum hum, what can we do for different size of descriptors (ignore the difference ) : 0 vs 1280 photo_id : 1398857592 photo_id_prec : 0 0:00:00|ON:0:02:00.310899|OFF:LLLL0:00:00|ON:0:05:59.802510|OFF:LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL0:09:59.981202|ON:LL0:02:59.549585|OFF:LL0:00:00|ON:LL0:00:59.760035|OFF:0:00:00|ON:LL0:04:00.424394|OFF:LL0:00:59.658640|ON:LLLLLLLLLLLLLLLLLLLLLLL0:10:59.964574|OFF:LLLLLLL0:00:59.960278|ON:LLLL 11122025 Removing 81 photos because of the 'same image' condition Total on : 1619.811997 list_time_on Total off : 719.6001200000001 list_time_off dist_desc begin to insert list_values into photo_hahstag_ids : length of list_valuse in save_photo_hashtag_id_type : 254 time used for this insertion : 0.04884600639343262 photos_removed : len 81 elapsed_time : remove_photo_duplicate 0.08980798721313477 To do, maybe not at the correct place ! ..............L.L........................................L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.................L.L....L.................................L.L.................................................L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.L.Lforce hashtag to JRM elapsed_time : CREATE_PORT_BATCH_BY_HOUR 0.013045787811279297 NUMBER BATCH : 3 list_ponderation used : [1e-05, 1e-05, 1e-05, 1e-05, 1e-05] , list_hashtag_class_create_as_list : ['jrm'] result_one_balle_Type_JRM:{'day': '11122025', 'map_nb_amount': {0: 8, 1: 40, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 419.3485541343689, 'nb_balles_papier': 0.0004800000000000006, 'begin_time_port': 'image_11122025_10_00_02_900658m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0004800000000000006 result_one_balle_Type_JRM:{'day': '11122025', 'map_nb_amount': {0: 11, 1: 56, 2: 2, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 660.0211608409882, 'nb_balles_papier': 0.0006900000000000012, 'begin_time_port': 'image_11122025_10_18_02_995269m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0006900000000000012 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLresult_one_balle_Type_JRM:{'day': '11122025', 'map_nb_amount': {0: 7, 1: 46, 2: 2, 3: 1, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 539.4884560108185, 'nb_balles_papier': 0.0005600000000000008, 'begin_time_port': 'image_11122025_10_30_02_824319m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0005600000000000008 We have rejected 0 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 3 list_same_port_ids : [29339470] find same portfolio which already exist 29339470 , we will use it list_same_port_ids : [29340567] find same portfolio which already exist 29340567 , we will use it Catched exception ! (1213, 'Deadlock found when trying to get lock; try restarting transaction') Connect or reconnect ! ERROR in datou_step_exec, will save and exit ! (1213, 'Deadlock found when trying to get lock; try restarting transaction') File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2339, 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 2523, 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 878, 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 3128, in create_portfolio_and_launch_datou_carac context.pq.order_portfolio_for_veolia(portfolio_id, verbose) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/portfolio_queries.py", line 364, in order_portfolio_for_veolia nb = self.gq.insert(query) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 151, in insert number = cursor.execute(query, args) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 179, in execute res = self._query(mogrified_query) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 330, in _query db.query(q) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/connections.py", line 280, in query _mysql.connection.query(self, query) [1398886101, 1398886100, 1398886098, 1398886092, 1398886088, 1398886084, 1398885826, 1398885814, 1398885810, 1398885787, 1398885779, 1398885777, 1398885557, 1398885544, 1398885537, 1398885532, 1398885522, 1398885520, 1398884903, 1398884900, 1398884897, 1398884895, 1398884893, 1398884890, 1398884690, 1398884687, 1398884683, 1398884679, 1398884674, 1398884671, 1398884532, 1398884530, 1398884528, 1398884520, 1398884516, 1398884511, 1398884330, 1398884327, 1398884323, 1398884321, 1398884318, 1398884314, 1398884094, 1398884091, 1398884086, 1398884083, 1398884080, 1398884077, 1398883069, 1398882979, 1398882922, 1398882835, 1398882787, 1398882729, 1398880473, 1398880467, 1398880466, 1398880465, 1398880462, 1398880459, 1398880153, 1398880149, 1398880144, 1398880141, 1398880138, 1398880135, 1398879945, 1398879942, 1398879938, 1398879937, 1398879936, 1398879933, 1398879789, 1398879785, 1398879783, 1398879782, 1398879781, 1398879779, 1398879671, 1398879668, 1398879664, 1398879662, 1398879660, 1398879658, 1398879529, 1398879527, 1398879524, 1398879521, 1398879518, 1398879516, 1398879393, 1398879391, 1398879389, 1398879385, 1398879381, 1398879379, 1398878175, 1398878126, 1398878096, 1398878094] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 100 time used for this insertion : 0.043291330337524414 save_final ERROR in last step split_time_score, (1213, 'Deadlock found when trying to get lock; try restarting transaction') time spend for datou_step_exec : 16.186469554901123 time spend to save output : 0.04886174201965332 total time spend for step 0 : 16.235331296920776 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 ! 2.19user 0.50system 0:21.28elapsed 12%CPU (0avgtext+0avgdata 112068maxresident)k 1112inputs+2072outputs (0major+53079minor)pagefaults 0swaps