Skip to content

Conversation

@raisinbl
Copy link

Problem

can not start sqlline.py due to no module pipes

Traceback (most recent call last):
  File "/opt/phoenix/bin/sqlline.py", line 103, in <module>
    (not args.noconnect and " -u " + phoenix_utils.shell_quote([jdbc_url]) or "") + \
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/opt/phoenix-hbase-2.5-5.2.1-bin/bin/phoenix_utils.py", line 209, in shell_quote
    import pipes
ModuleNotFoundError: No module named 'pipes'

Causes

  • pipes module is deprecated in python 3.13

Fix

changes pipes module to shlex

@stoty
Copy link
Contributor

stoty commented Feb 4, 2025

The scripts have to work with python 2.7, and this patch does not.

Can you rewrite it so that it still works with 2.7 ?

See tryDecode() as an example

@stoty
Copy link
Contributor

stoty commented Feb 4, 2025

Also can you open a JIRA for the issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants