diff --git a/README.md b/README.md index 2c015091a0905a84ad00c50dd9c811d41552e7d3..55f4bdb00c68f189981729ea4083f6d39faed4bd 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,17 @@ $ flask run ----- ### Known Problems -1. flask development mode WARNING +1. Error for installing mysqlclient and mysql + + **Solution** + Add these commands within the enviorment + ```shell + $ env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip install mysqlclient + $ env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip install mysql + ``` + + +2. flask development mode WARNING ```shell $ flask run @@ -108,7 +118,7 @@ $ flask run $ export FLASK_ENV=development ``` -2. ValueError when click on Assign in employees admin page +3. ValueError when click on Assign in employees admin page ```shell file "APP_ROOT/venv/lib/python2.7/site-packages/wtforms/ext/sqlalchemy/fields.py", line 189, in get_pk_from_identity @@ -130,7 +140,7 @@ $ flask run 190 return ':'.join(text_type(x) for x in key) ``` -3. When use SQLite as database +4. When use SQLite as database ```shell OperationalError: (sqlite3.OperationalError) no such table @@ -152,7 +162,7 @@ $ flask run SQLALCHEMY_DATABASE_URI='sqlite:////tmp/app.db' ``` -4. **FSADeprecationWarning** while accessing database using SQLAlchemy +5. **FSADeprecationWarning** while accessing database using SQLAlchemy ```shell APP_ROOT/venv/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py:794: FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS