faisalthaheem/open-lpr-pretrained-models

sqlite3.OperationalError: unable to open database file

moeiscool opened this issue · 0 comments

Running this command creates an error

docker run --rm -it -u $UID \
-v $PWD:/datasets \
faisalthaheem/simanno-scripts:main "/usr/local/bin/python3.8 /simanno/scripts/mergedbs.py -c /datasets/mergedbs.yaml"

it says the database isn't working

root@kratos:/home/kratos/test3/datasets# docker run --rm -it -u $UID -v $PWD:/datasets faisalthaheem/simanno-scripts:main "python3 /simanno/scripts/mergedbs.py -c /datasets/mergedbs.yaml"
Opening sqlite dbs
Opening database [/datasets/openlpr/train.db]
Traceback (most recent call last):
  File "/simanno/scripts/mergedbs.py", line 164, in <module>
    loadsqlitedbs()
  File "/simanno/scripts/mergedbs.py", line 48, in loadsqlitedbs
    db_dest['train_db_conn'] = sqlite3.connect(config['dest']['train_db'])
sqlite3.OperationalError: unable to open database file