pgsql-io / multicorn2

http://multicorn2.org
Other
73 stars 16 forks source link

ERROR: unknown command "pip3" ( debian:11 bullseye ) #23

Closed ImreSamu closed 1 year ago

ImreSamu commented 1 year ago

With

I have received this error: ERROR: unknown command "pip3" Probably the side effects of https://github.com/pgsql-io/multicorn2/pull/21

#10 [7/7] RUN cat /etc/debian_version     && pip3 --version     && which pip3     && make     && make install
#10 0.425 11.7
#10 0.774 pip 23.1.2 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9)
#10 0.820 /usr/local/bin/pip3
#10 0.927 Python version is 3.9
#10 0.930 [ -d sql ] || mkdir sql
#10 0.931 [ -d src ] || mkdir src
#10 0.931 touch directories.stamp

...
#10 4.269 Python version is 3.9
#10 4.273 cp sql/multicorn.sql sql/multicorn--2.4.sql
#10 4.275 /bin/mkdir -p '/usr/lib/postgresql/15/lib'
#10 4.276 /bin/mkdir -p '/usr/share/postgresql/15/extension'
#10 4.277 /bin/mkdir -p '/usr/share/postgresql/15/extension'
#10 4.278 /bin/mkdir -p '/usr/share/doc/postgresql-doc-15/extension'
#10 4.279 /usr/bin/install -c -m 755  multicorn.so '/usr/lib/postgresql/15/lib/multicorn.so'
#10 4.283 pip3.9 pip3 install .
#10 4.566 ERROR: unknown command "pip3"
#10 4.612 make: *** [Makefile:33: python_code] Error 1
#10 ERROR: process "/bin/sh -c pip3 --version     which pip3     && make     && make install" did not complete successfully: exit code: 2
------

minimal Dockerfile

FROM postgres:15-bullseye
RUN    apt-get update \
    && apt-get upgrade -y \
    && apt-get install -y --no-install-recommends \
       build-essential libreadline-dev zlib1g-dev flex bison libxml2-dev libxslt-dev libssl-dev libxml2-utils xsltproc \
       python3 python3-dev python3-setuptools python3-pip \
       git postgresql-server-dev-$PG_MAJOR python-is-python3 \
    && rm -rf /var/lib/apt/lists/*

RUN python3 -m pip install --no-cache-dir --upgrade pip
WORKDIR /multicorn2
RUN git clone --branch main https://github.com/pgsql-io/multicorn2.git .
RUN git checkout e37a09bed97fb376f468bf355cb7ce4474b7ec7e # Commits on Apr 27, 2023 - Error
### RUN git checkout 5c82b820f9df39264bdf561d74408e920cf7b2c7 # Commits on Sep 8, 2022 - OK
RUN cat /etc/debian_version \
    && pip3 --version \
    && which pip3 \
    && make \
    && make install
deathwish commented 1 year ago

I see what's happening, inadequate testing on my part. Sorry about that, I'll put up a PR to fix it sometime today.

deathwish commented 1 year ago

Got you a pull request, go ahead and make sure my branch works if you don't mind.