phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

python3.13 supported: no module `pipes` when running `sqlline.py`

Open raisinbl opened this issue 9 months ago • 2 comments

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

raisinbl avatar Jan 12 '25 08:01 raisinbl