# Accounting Run

### Dependency Handling
When adjusting dependencies, make changes to `requirements-to-freeze.txt` and
then run `make pip_lock_versions` to lock dependency versions for deployment.

### Notes
The mysqlclient package may need extra configuration on macs. First make sure mysql is installed locally.  In the case where you get an error like:
```
ImportError: dlopen(.../python-load-fact-sales/env/lib/python3.6/site-packages/MySQLdb/_mysql.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libmysqlclient.21.dylib
```
You can run:
```sh
install_name_tool -change @rpath/libmysqlclient.21.dylib \
> /usr/local/mysql/lib/libmysqlclient.21.dylib \
> /Users/{username}/python-load-fact-sales/env/lib/python3.6/site-packages/MySQLdb/_mysql.cpython-36m-darwin.so
```
Where the first path is the actual path to libmysqlclient.21.dylib on your computer and the second path is the path from the error.
