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

Brandon Williams edited comment on CASSANDRA-18088 at 12/14/22 3:12 PM:
------------------------------------------------------------------------

Here I am killing two birds with one stone: CI under python 3.11 for the sre 
module changes from this ticket, and testing of the docker image with python 
3.11 that we will push for all of CI, if this goes well.

This incorporates all the circle changes from CASSANDRA-18094 and uses the 
docker image from my repo.

||Branch||CI||
|[4.0|https://github.com/driftx/cassandra/tree/CASSANDRA-18088-4.0]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/733/workflows/42d4c66b-a105-42b8-9a4e-b3649d239b25],
 
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/733/workflows/a2b6f194-d410-4947-a9a5-14e44ef770d4]|
|[4.1|https://github.com/driftx/cassandra/tree/CASSANDRA-18088-4.1]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/735/workflows/4afba4f7-80b9-4028-b2db-3a90f7d8a685],
 
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/735/workflows/c48ca2be-883b-4e80-be64-34c6ceab0790]|
|[trunk|https://github.com/driftx/cassandra/tree/CASSANDRA-18088-trunk]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/734/workflows/0d5aa254-a6f0-4d63-a76e-d6323bddf024],
 
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/734/workflows/30186daf-5b3a-4cde-8f9f-94f2d35c0360]|

and here's a smoke test in jenkins of the docker image:
[!https://ci-cassandra.apache.org/job/Cassandra-devbranch/2104/badge/icon!|https://ci-cassandra.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/2104/pipeline]




was (Author: brandon.williams):
Here I am killing two birds with one stone: CI under python 3.11 for the sre 
module changes from this ticket, and testing of the docker image with python 
3.11 that we will push for all of CI, if this goes well.

This incorporates all the circle changes from CASSANDRA-18094 and uses the 
docker image from my repo.

||Branch||CI||
|[4.0|https://github.com/driftx/cassandra/tree/CASSANDRA-18088-4.0]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/733/workflows/42d4c66b-a105-42b8-9a4e-b3649d239b25],
 
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/733/workflows/a2b6f194-d410-4947-a9a5-14e44ef770d4]|
|[4.1|https://github.com/driftx/cassandra/tree/CASSANDRA-18088-4.1]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/735/workflows/4afba4f7-80b9-4028-b2db-3a90f7d8a685],
 
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/735/workflows/c48ca2be-883b-4e80-be64-34c6ceab0790]|
|[trunk|https://github.com/driftx/cassandra/tree/CASSANDRA-18088-trunk]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/734/workflows/0d5aa254-a6f0-4d63-a76e-d6323bddf024],
 
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/734/workflows/30186daf-5b3a-4cde-8f9f-94f2d35c0360]|




> cqlsh - module 're' has no attribute 'sre_parse' - with Python 3.11
> -------------------------------------------------------------------
>
>                 Key: CASSANDRA-18088
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18088
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL/Interpreter
>            Reporter: Aaron Ploetz
>            Assignee: Brandon Williams
>            Priority: Normal
>             Fix For: 4.0.x, 4.1.x, 4.x
>
>
> User reported an error with cqlsh (Cassandra 4.0.7) on Stack Overflow: 
> [https://stackoverflow.com/questions/74673247/cannot-able-to-run-cqlsh-due-to-python-attribute-error|https://stackoverflow.com/questions/74673247/cannot-able-to-run-cqlsh-due-to-python-attribute-error?noredirect=1#comment131807816_74673247]
>  
> Found out that the user was using Python 3.11, and I was able to reproduce it 
> with that.
> {{% python3.11 bin/cqlsh.py}}
> {{Traceback (most recent call last):}}
> {{  File "/Users/aaronploetz/local/apache-cassandra-4.0.7/bin/cqlsh.py", line 
> 159, in <module>}}
> {{    from cqlshlib import cql3handling, cqlhandling, pylexotron, 
> sslhandling, cqlshhandling}}
> {{  File 
> "/Users/aaronploetz/local/apache-cassandra-4.0.7/bin/../pylib/cqlshlib/cql3handling.py",
>  line 19, in <module>}}
> {{    from cqlshlib.cqlhandling import CqlParsingRuleSet, Hint}}
> {{  File 
> "/Users/aaronploetz/local/apache-cassandra-4.0.7/bin/../pylib/cqlshlib/cqlhandling.py",
>  line 23, in <module>}}
> {{    from cqlshlib import pylexotron, util}}
> {{  File 
> "/Users/aaronploetz/local/apache-cassandra-4.0.7/bin/../pylib/cqlshlib/pylexotron.py",
>  line 342, in <module>}}
> {{    class ParsingRuleSet:}}
> {{  File 
> "/Users/aaronploetz/local/apache-cassandra-4.0.7/bin/../pylib/cqlshlib/pylexotron.py",
>  line 343, in ParsingRuleSet}}
> {{    RuleSpecScanner = SaferScanner([}}
> {{                      ^^^^^^^^^^^^^^}}
> {{  File 
> "/Users/aaronploetz/local/apache-cassandra-4.0.7/bin/../pylib/cqlshlib/saferscanner.py",
>  line 91, in _{_}init{_}_}}
> {{    s = re.sre_parse.State()}}
> {{        ^^^^^^^^^^^^}}
> {{AttributeError: module 're' has no attribute 'sre_parse'}}
> Appears to be something specific (again) with Python's synchronizing regex 
> engine (SRE).  Works fine with Python 3.10, so there may have been a(nother) 
> breaking change in that the re module with 3.11.



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