GraphtyLove / Face-recognition-project

Automate attendance record. React & Python
MIT License
129 stars 107 forks source link

DATABASE_USER keyerror #21

Closed rsingh2083 closed 4 years ago

rsingh2083 commented 4 years ago

Hi buddy,

Im getting this error while running python3 app.py

Traceback (most recent call last):
  File "app.py", line 21, in <module>
    DATABASE_USER = os.environ['face_recog']
  File "/home/anaconda3/lib/python3.7/os.py", line 678, in __getitem__
    raise KeyError(key) from None
KeyError: 'face-recog'
GraphtyLove commented 4 years ago

It's because this is an environment variable. You have to set it in your system according to your DB user.

rsingh2083 commented 4 years ago

@GraphtyLove thanks buddy. Just one minor final issue left. Can you please help on that too. Ive raised a new issue, please have a look