[ 
https://issues.apache.org/jira/browse/CASSANDRA-18472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17715133#comment-17715133
 ] 

Brandon Williams commented on CASSANDRA-18472:
----------------------------------------------

Now we have the problem of 2.7 being unable to find a pytest version high 
enough to meet the cassandra-dtest requirement:

{noformat}
#101 11.45 ERROR: Could not find a version that satisfies the requirement 
pytest>=6.5.0 (from -r /opt/requirements.txt (line 18)) (from versions: 2.0.0, 
2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 
2.2.4, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.4.0, 2.4.1, 2.4.2, 2.5.0, 
2.5.1, 2.5.2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 
2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.8.5, 2.8.6, 2.8.7, 2.9.0, 2.9.1, 2.9.2, 
3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.1.0, 3.1.1, 3.1.2, 
3.1.3, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.3.0, 3.3.1, 3.3.2, 3.4.0, 
3.4.1, 3.4.2, 3.5.0, 3.5.1, 3.6.0, 3.6.1, 3.6.2, 3.6.3, 3.6.4, 3.7.0, 3.7.1, 
3.7.2, 3.7.3, 3.7.4, 3.8.0, 3.8.1, 3.8.2, 3.9.1, 3.9.2, 3.9.3, 3.10.0, 3.10.1, 
4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.3.0, 4.3.1, 4.4.0, 4.4.1, 
4.4.2, 4.5.0, 4.6.0, 4.6.1, 4.6.2, 4.6.3, 4.6.4, 4.6.5, 4.6.6, 4.6.7, 4.6.8, 
4.6.9, 4.6.10, 4.6.11)
#101 11.45 ERROR: No matching distribution found for pytest>=6.5.0 (from -r 
/opt/requirements.txt (line 18))
{noformat}

I bumped this in CASSANDRA-18121 when adding 3.11 support, and there probably 
is not a version higher than 4.6.11 that will work with python2.  I don't think 
there should be any reason python2 needs to track the dtest requirements 
though, since we aren't running python2 there.  I'm actually not sure what we 
need python2.7 for here, [~mck] ?

> 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]

Reply via email to