From 807bf8735167028365d23d8482888134899ac449 Mon Sep 17 00:00:00 2001 From: Carl van Tonder Date: Sun, 23 Sep 2018 17:04:22 -0400 Subject: [PATCH] More detailed psycopg troubleshooting instructions --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 15f4414..88e40c9 100644 --- a/README.md +++ b/README.md @@ -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