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

Brandon Williams commented on CASSANDRA-18198:
----------------------------------------------

I thought this was a problem with python 3.11 in CASSANDRA-18188, but I believe 
the actual cause is that the 'py' dependency isn't being found by the 
pytest-timeout package.  Which means these are just tests that timed out 
through pytest.mark.timeout, which then triggered the error produced.

This is strange, though.  If I run the docker image and go into the venv, the 
'py' package is already there:

{noformat}
$ docker run -it apache/cassandra-testing-ubuntu2004-java11 /bin/bash
cassandra@c2ce4e76c5ee:~$ . ./env3.8/bin/activate
(env3.8) cassandra@c2ce4e76c5ee:~$ pip install py
Requirement already satisfied: py in ./env3.8/lib/python3.8/site-packages 
(1.11.0)
WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available.
You should consider upgrading via the '/home/cassandra/env3.8/bin/python -m pip 
install --upgrade pip' command.
(env3.8) cassandra@c2ce4e76c5ee:~$
{noformat}

We can still add defense in depth however by declaring it explicitly, which 
I've done 
[here|https://github.com/driftx/cassandra-dtest/tree/CASSANDRA-18198].  I've 
started a Jenkins run, but the chances of hitting a timeout in one of the 
affected tests aren't great: 
[!https://ci-cassandra.apache.org/job/Cassandra-devbranch/2226/badge/icon!|https://ci-cassandra.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/2226/pipeline]
 


> "AttributeError: module 'py' has no attribute 'io'" reported in multiple tests
> ------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-18198
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18198
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Test/dtest/python
>            Reporter: Claude Warren
>            Assignee: Brandon Williams
>            Priority: Normal
>
> {{title = 'Timeout'}}
> {{stream = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>}}
> {{{}sep = '+'{}}}{{{}def write_title(title, stream=None, sep="~"):{}}}
> {{{}"""Write a section title.{}}}{{{}If *stream* is None sys.stderr will be 
> used, *sep* is used to{}}}
> {{draw the line.}}
> {{"""}}
> {{if stream is None:}}
> {{stream = sys.stderr}}
> {{> width = py.io.get_terminal_width()}}
> {{E AttributeError: module 'py' has no attribute 'io}}
>  
> is reported in multiple tests as noted below.
> possibly a class loader issue associated with CASSANDRA-18150
> 4.1
> [https://ci-cassandra.apache.org/job/Cassandra-4.1/256/testReport/dtest-offheap.repair_tests.incremental_repair_test/TestIncRepair/test_multiple_full_repairs_lcs]
> 3.11
> [https://ci-cassandra.apache.org/job/Cassandra-3.11/424/testReport/dtest.bootstrap_test/TestBootstrap/test_simultaneous_bootstrap/]
> 3.0
> [https://ci-cassandra.apache.org/job/Cassandra-3.0/328/testReport/dtest-upgrade.upgrade_tests.upgrade_supercolumns_test/TestSCUpgrade/test_upgrade_super_columns_through_all_versions/]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to