[
https://issues.apache.org/jira/browse/CASSANDRA-18472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17716337#comment-17716337
]
Brandon Williams commented on CASSANDRA-18472:
----------------------------------------------
[~djoshi] I agree we don't want to be in this situation again, but it's
probably a nuanced enough topic worth raising on dev.
After removing python2, I encountered the same issue I opened this ticket with,
except for python3.6! This revealed the real culprit, virtualenv. It appears to
be specific to virtualenv from pip on 3.11, so I installed the Ubuntu package
instead which should be more stable and allowed removal of my previous
2.7-specific hack. This just left paring the 2.7 requirements down to only
cassandra-driver, which I did
[here|https://github.com/driftx/cassandra-builds/tree/CASSANDRA-18472] and
built and pushed the image to my docker.
||Branch||CI||
|[3.0|https://github.com/driftx/cassandra/tree/CASSANDRA-18472-3.0]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/982/workflows/9240e8b6-bc0e-4fb6-8081-8ec1eef3a6a7]|
|[3.11|https://github.com/driftx/cassandra/tree/CASSANDRA-18472-3.11]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/983/workflows/e9ce73ea-50a5-4f08-8b33-6d52e42b5366]|
|[4.0|https://github.com/driftx/cassandra/tree/CASSANDRA-18472-4.0]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/980/workflows/d35e83b3-e59e-41ee-af08-e1324271037f],
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/980/workflows/836841a0-ebd3-4cef-a123-14c21b424174]|
|[4.1|https://github.com/driftx/cassandra/tree/CASSANDRA-18472-4.1]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/979/workflows/a2d0a0c7-5ca3-4877-ae36-6d5c4a2434d9],
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/979/workflows/298c67a3-0c43-4e7d-9f2d-bd148c868a2b]|
|[trunk|https://github.com/driftx/cassandra/tree/CASSANDRA-18472-trunk]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/981/workflows/4dfe9389-856e-4035-a18c-9adbc1e95617],
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/981/workflows/18ae1bd8-9630-4579-885d-2785a98508dd]|
> Docker images can no longer be built due to python2.7
> -----------------------------------------------------
>
> Key: CASSANDRA-18472
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18472
> Project: Cassandra
> Issue Type: Bug
> Components: CI
> Reporter: Brandon Williams
> Assignee: Brandon Williams
> Priority: Normal
> Fix For: 3.0.x, 3.11.x, 4.0.x, 4.1.x, 5.x
>
>
> {noformat}
> => [linux/amd64 35/56] WORKDIR /home/cassandra
>
> 0.1s
> => [linux/amd64 36/56] RUN echo 'export ANT_HOME=/usr/share/ant' >>
> /home/cassandra/.bashrc && echo 'export
> JAVA8_HOME=/usr/lib/jvm/java-8-openjdk-$(dpkg --print-architecture)' >>
> /home/cassandra/.b 0.2s
> => ERROR [linux/amd64 37/56] RUN virtualenv --python=python2.7 env2.7
>
> 0.5s
> ------
> > [linux/amd64 37/56] RUN virtualenv --python=python2.7 env2.7:
> #100 0.424 RuntimeError: failed to find interpreter for Builtin discover of
> python_spec='python2.7'
> ------
> ubuntu2004_j11.docker:128
> --------------------
> 126 | # included in the base image, the compiled objects are not updated
> by pip at run time, which can
> 127 | # cause errors if the tests rely on new driver functionality or
> bug fixes.
> 128 | >>> RUN virtualenv --python=python2.7 env2.7
> 129 | RUN chmod +x env2.7/bin/activate
> 130 | RUN /bin/bash -c "export CASS_DRIVER_NO_CYTHON=1
> CASS_DRIVER_NO_EXTENSIONS=1 && source ~/env2.7/bin/activate && pip2 install
> --upgrade pip && pip2 install -r /opt/requirements.txt && pip2 freeze --user"
> --------------------
> error: failed to solve: rpc error: code = Unknown desc = process "/bin/sh -c
> virtualenv --python=python2.7 env2.7" did not complete successfully: exit
> code: 1
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]