mohammad2928 / plate-recognition

OCR over Iranian plates
MIT License
1 stars 0 forks source link

pyodbc.InterfaceError #2

Open mohamad1101 opened 3 years ago

mohamad1101 commented 3 years ago

سلام ارور زیر قابل حل نیست با هر سرچ توی گوگل گیج تر میشم اگه ممکنه راهنمایی کنید

1. pyodbc.InterfaceError: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)')

mohammad2928 commented 3 years ago

Hi, Firstly, please make sure you have installed Microsoft access. Secondly, put the following lines in a python script and run it. And, replace "{Microsoft Access Driver (.mdb, .accdb)};" in the db.py file with the printed line.

import pyodbc
msa_drivers = [x for x in pyodbc.drivers() if 'ACCESS' in x.upper()]
print(msa_driver)

Also, please read the Troubleshooting section of README carefully.

Best, Mohammad

mohamad1101 commented 3 years ago

Hi , thank you so much . I installed Microsoft access and replaces that line in db.py .but the problem not fixed thanks for your help to me. Capture