More detailed psycopg troubleshooting instructions

This commit is contained in:
Carl van Tonder 2018-09-23 17:04:22 -04:00
parent c8fc35ad57
commit eead00ccca

View File

@ -203,7 +203,16 @@ $ pytest -v
# Troubleshooting
If you run into issues with `psycopg2` you may need to run the following:
Sometimes, you see crashes like the following with `psycopg`:
```
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module:
$USER/.virtualenvs/ojuso-map/lib/python3.6/site-packages/psycopg2/.libs/libresolv-2-c4c53def.5.so:
symbol __res_maybe_init version GLIBC_PRIVATE not defined in file libc.so.6 with
link time reference
```
In which case the following can help:
```bash
$ pip3 uninstall psycopg2 && pip3 install --no-binary :all: psycopg2