Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] cqlsh not launching due to: "AttributeError: module 're' has no attribute 'sre_parse'" #72

Closed
stinkymatt opened this issue May 3, 2023 · 1 comment
Assignees
Milestone

Comments

@stinkymatt
Copy link

Describe the bug

astra db cqlsh <db-name> fails due to an error. Astra CLI can't run cqlsh.

To Reproduce

run: astra db cqlsh <db-name>

Expected behavior
It's expected that this command successfully launches cqlsh connected to

Screenshots
n/a

Desktop (please complete the following information):

  • OS: MacOS w/zsh,
  • python 3.11.3

Additional context
full output:

[INFO] Cqlsh is starting, please wait for connection establishment... Traceback (most recent call last): File "/Users/mattkennedy/.astra/cqlsh-astra/bin/dsecqlsh.py", line 95, in <module> import cqlsh # nopep8 ^^^^^^^^^^^^ File "/Users/mattkennedy/.astra/cqlsh-astra/bin/cqlsh.py", line 185, in <module> from cqlshlib import cql3handling, pylexotron, sslhandling, cqlshhandling File "/Users/mattkennedy/.astra/cqlsh-astra/bin/../pylib/cqlshlib/cql3handling.py", line 19, in <module> from cqlshlib.cqlhandling import CqlParsingRuleSet, Hint File "/Users/mattkennedy/.astra/cqlsh-astra/bin/../pylib/cqlshlib/cqlhandling.py", line 23, in <module> from cqlshlib import pylexotron, util File "/Users/mattkennedy/.astra/cqlsh-astra/bin/../pylib/cqlshlib/pylexotron.py", line 342, in <module> class ParsingRuleSet: File "/Users/mattkennedy/.astra/cqlsh-astra/bin/../pylib/cqlshlib/pylexotron.py", line 343, in ParsingRuleSet RuleSpecScanner = SaferScanner([ ^^^^^^^^^^^^^^ File "/Users/mattkennedy/.astra/cqlsh-astra/bin/../pylib/cqlshlib/saferscanner.py", line 91, in __init__ s = re.sre_parse.State() ^^^^^^^^^^^^ AttributeError: module 're' has no attribute 'sre_parse'

@clun
Copy link
Collaborator

clun commented Jun 2, 2023

Cqlsh for Astra is outdated and should be updated in next Release of DSE

@clun clun self-assigned this Jul 17, 2023
@clun clun added this to the 0.4 milestone Jul 17, 2023
@clun clun closed this as completed Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants