python - sqlite3 DatabaseError: database disk image is malformed multithread -


i trying query sqlite3 database multiple threads , getting error intermittently (some times when run , other times not) idea of how prevent happening

thanks

process process-72: traceback (most recent call last): traceback (most recent call last):   file "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap   file "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap     self.run()     self.run()   file "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run     self._target(*self._args, **self._kwargs)   file "/scratch/retrosynth/retrosynth/rs/rs.py", line 341, in _retrieve_shortestpath   file "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run     self._target(*self._args, **self._kwargs)   file "/scratch/retrosynth/retrosynth/rs/rs.py", line 341, in _retrieve_shortestpath     optimal_pathways[0])   file "/scratch/retrosynth/retrosynth/rs/parser/generate_output.py", line 68, in output_shortest_paths     optimal_pathways[0])   file "/scratch/retrosynth/retrosynth/rs/parser/generate_output.py", line 68, in output_shortest_paths     self.db.get_organism_name(target_org)))   file "/scratch/retrosynth/retrosynth/rs/database/query.py", line 60, in get_organism_name     self.db.get_organism_name(target_org)))   file "/scratch/retrosynth/retrosynth/rs/database/query.py", line 60, in get_organism_name     q = self.cnx.execute(query, (organism_id,)) databaseerror: database disk image malformed 


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -