phoenix
phoenix copied to clipboard
python3.13 supported: no module `pipes` when running `sqlline.py`
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
pipesmodule is deprecated in python 3.13
Fix
changes pipes module to shlex
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
Also can you open a JIRA for the issue ?