[
https://issues.apache.org/jira/browse/CASSANDRA-18088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17678203#comment-17678203
]
Brandon Williams edited comment on CASSANDRA-18088 at 1/18/23 7:05 PM:
-----------------------------------------------------------------------
Here goes another attempt. This incorporates all the circle changes from
CASSANDRA-18094, has extra fixes on top of that, uses the docker image from my
repo, and runs against CASSANDRA-18121 dtests.
||Branch||CI||
|[4.0|https://github.com/driftx/cassandra/tree/CASSANDRA-18088-4.0]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/784/workflows/2f68ddcb-32df-4079-80a9-562afffc4204],
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/784/workflows/91a6b93b-91d1-4917-845d-635c2b6b1585]|
|[4.1|https://github.com/driftx/cassandra/tree/CASSANDRA-18088-4.1]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/785/workflows/f0beb2f8-690a-49de-a138-8c06049f5954],
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/785/workflows/aa585189-d952-4548-8c7e-a241f9dc62b7]|
|[trunk|https://github.com/driftx/cassandra/tree/CASSANDRA-18088-trunk]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/786/workflows/81f67a32-d0c8-40a6-b529-09f662e0931f],
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/786/workflows/d4868597-594f-4c7d-bfc0-1ac97b228750]|
was (Author: brandon.williams):
Here goes another attempt. This incorporates all the circle changes from
CASSANDRA-18094, has extra fixes on top of that, uses the docker image from my
repo, and runs against CASSANDRA-18121 dtests.
||Branch||CI||
|[4.0|https://github.com/driftx/cassandra/tree/CASSANDRA-18088-4.0]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/784/workflows/2f68ddcb-32df-4079-80a9-562afffc4204],
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/784/workflows/91a6b93b-91d1-4917-845d-635c2b6b1585]|
|[4.1|https://github.com/driftx/cassandra/tree/CASSANDRA-18088-4.1]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/785/workflows/f0beb2f8-690a-49de-a138-8c06049f5954],
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/785/workflows/aa585189-d952-4548-8c7e-a241f9dc62b7]|
|[trunk|https://github.com/driftx/cassandra/tree/CASSANDRA-18088-trunk]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/786/workflows/06694e62-2e88-422b-8710-f7d48d675989],
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/786/workflows/188ae4f6-3dc1-4722-8813-80c5df445821]|
> 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: [email protected]
For additional commands, e-mail: [email protected]