https://meltano.com/ logo
#cli
Title
# cli
i

important-island-7384

07/10/2019, 4:15 PM
So I'm not sure where 19.0.3 is even coming from
OK, I figured out a solution. So ensurepip uses the version that it was installed with and in this case it was 19.0.3.
There's a Python package called
upgrade-ensurepip
that will cause the version uses by ensurepip to be updated.
I also was missing
libpq-dev
and
build-essential
.
So all together:
Copy code
RUN apt update \
  && apt install -y curl libpq-dev build-essential \
  && rm -rf /var/lib/apt/lists/* \
  && pip install upgrade-ensurepip \
  && python -m upgrade_ensurepip
The two Debian packages were required for psycopg to build
e

echoing-needle-59281

07/10/2019, 6:04 PM
Glad you firgured it out, sorry that went under my radar, but yeah you are spot on.
psycopg2
needs to be built.
And IIRC pip 19 is not required for meltano to operate properly.
python3.6 provides pip 10, and python3.7 provides pip 19
i

important-island-7384

07/10/2019, 6:45 PM
When I hadn't upgraded ensurepip I was not seeing any error messages when the build failed. It just notified me that pip was out-of-date. So even if it's not strictly necessary I found it to be valuable.
Thanks for following up, BTW!
e

echoing-needle-59281

07/10/2019, 7:16 PM
👍
Did you manage to get your container running?
i

important-island-7384

07/10/2019, 8:15 PM
I did!
💯 1
I just got bit with a similar issue once again in a different environment. Is there any way to surface the issue installing
target-postgres
so that the user has a clue what caused the failure?
Right now it's a black box and is pretty frustrating to diagnose.
e

echoing-needle-59281

08/22/2019, 4:33 PM
You mean when you
meltano add target-postgres
fails?
i

important-island-7384

08/22/2019, 6:06 PM
No, just
meltano install