kubernetes_django icon indicating copy to clipboard operation
kubernetes_django copied to clipboard

docker build command errored with psycopg2 issue

Open bsliu17 opened this issue 8 years ago • 3 comments

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.

bsliu17 avatar Jul 27 '18 12:07 bsliu17

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.

gitumarkk avatar Jul 28 '18 02:07 gitumarkk

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).

bkovacev avatar Aug 19 '18 20:08 bkovacev

Yeah, that's one way to fix it, it seems the version update brought about some breaking changes.

gitumarkk avatar Aug 24 '18 05:08 gitumarkk