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 : 3393887 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 updating current state to 1 we have a portfolio with more photos than limit : 7275>1000 please execute split_portfolio.py -i 22650208 -l 1000 size over we load limit photo not treated list_input_json: [] Current got : datou_id : 4311, datou_cur_ids : ['2816220'] with mtr_portfolio_ids : ['22650208'] and first list_photo_ids : [] new path : /proc/3393887/ 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 : 3.0203800201416016 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 2 step1:matching_dashboard Sat May 10 08:39:52 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 Catched exception ! 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 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 2485, in datou_step_exec return datou_step_match_dashboard(param, json_param, args, context, map_info, verbose) File "/home/admin/workarea/git/Velours/python/mtr/datou/lib_step_exec/lib_step_sort.py", line 113, in datou_step_match_dashboard context.DQ.save_matching_info( list_values_to_insert, verbose) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/datou_queries.py", line 1607, in save_matching_info return self.gq.insert_many(query, list_values) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 157, in insert_many cursor.executemany(query, args[:limit]) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 235, in executemany return self._do_execute_many(q_prefix, q_values, q_postfix, args, File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 264, in _do_execute_many rows += self.execute(sql + postfix) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 209, in execute res = self._query(query) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 315, in _query db.query(q) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/connections.py", line 239, in query _mysql.connection.query(self, query) [1357335172, 1357335118, 1357335086, 1357334865, 1357334841, 1357334798, 1357334775, 1357334770, 1357334769, 1357334652, 1357334624, 1357334586, 1357334558, 1357334532, 1357334508, 1357334461, 1357334458, 1357334455, 1357334453, 1357334450, 1357334446, 1357334404, 1357334386, 1357334384, 1357334381, 1357334377, 1357334372, 1355913154, 1355913153, 1355913151, 1355913148, 1355913145, 1355913142, 1355913025, 1355912997, 1355912971, 1355912945, 1355912919, 1355912891, 1355912666, 1355912665, 1355912664, 1355912663, 1355912661, 1355912659, 1355912648, 1355912647, 1355912646, 1355912644, 1355912642, 1355912640, 1355912629, 1355912628, 1355912627, 1355912625, 1355912623, 1355912621, 1355912610, 1355912609, 1355912608, 1355912606, 1355912604, 1355912602, 1355912591, 1355912589, 1355912587, 1355912585, 1355912583, 1355912581, 1355912570, 1355912569, 1355912568, 1355912566, 1355912564, 1355912562, 1355912552, 1355912550, 1355912538, 1355912537, 1355912535, 1355912533, 1355912523, 1355912522, 1355912521, 1355912519, 1355912517, 1355912515, 1355912504, 1355912503, 1355912502, 1355912500, 1355912497, 1355912494, 1355912480, 1355912478, 1355912476, 1355912474, 1355912472, 1355912470, 1355912468] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 100 time used for this insertion : 0.19577240943908691 save_final ERROR in last step matching_dashboard, (1213, 'Deadlock found when trying to get lock; try restarting transaction') time spend for datou_step_exec : 185.3049418926239 time spend to save output : 0.3921468257904053 total time spend for step 0 : 185.6970887184143 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.23user 1.03system 3:12.77elapsed 1%CPU (0avgtext+0avgdata 111812maxresident)k 376inputs+32outputs (3major+51801minor)pagefaults 0swaps