docker build command errored with psycopg2 issue
Hi mark, first of all awesome tutorial on k8s and django. There's an issue with running docker build command, and the issue is below:
/psycopg2–2.7.3.2.tar.gz (425kB)
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing manifest file ‘pip-egg-info/psycopg2.egg-info/SOURCES.txt’
Error: pg_config executable not found.
I think you mentioned in your medium post that this has been updated, but i still get the issue as of 7/26/2018.
Hi, I fixed it for the one branch but never got around to updating all the other branches, everything should be up to date now, the pyscopg2 version should be 2.7.5.
I was skimming the tutorial so I haven't religiously followed all the steps, but I fixed the error by changing the python version from 3-slim to 3.6 (we can't use 3.7 as of yet).
Yeah, that's one way to fix it, it seems the version update brought about some breaking changes.