dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.49k stars 663 forks source link

No module named 'tabulate' #1138

Open SamCritch opened 1 year ago

SamCritch commented 1 year ago

Since this morning I'm seeing this when running mycli on Sonoma on my Mac:

➜  ~ mycli
Traceback (most recent call last):
  File "/opt/homebrew/bin/mycli", line 5, in <module>
    from mycli.main import cli
  File "/opt/homebrew/Cellar/mycli/1.27.0/libexec/lib/python3.12/site-packages/mycli/main.py", line 22, in <module>
    from cli_helpers.tabular_output import TabularOutputFormatter
  File "/opt/homebrew/Cellar/mycli/1.27.0/libexec/lib/python3.12/site-packages/cli_helpers/tabular_output/__init__.py", line 11, in <module>
    from .output_formatter import format_output, TabularOutputFormatter
  File "/opt/homebrew/Cellar/mycli/1.27.0/libexec/lib/python3.12/site-packages/cli_helpers/tabular_output/output_formatter.py", line 15, in <module>
    from . import (
  File "/opt/homebrew/Cellar/mycli/1.27.0/libexec/lib/python3.12/site-packages/cli_helpers/tabular_output/tabulate_adapter.py", line 17, in <module>
    import tabulate
ModuleNotFoundError: No module named 'tabulate'

Anyone seeing the same and know how to fix it?

rolandwalker commented 1 year ago

May be related https://github.com/dbcli/cli_helpers/pull/86 .

SamCritch commented 1 year ago

May be related dbcli/cli_helpers#86 .

Thanks @rolandwalker - I got around it somehow by thrashing around until I could run it. I couldn't get brew to link python@3.12 so pip3 install tabulate wouldn't help, but some combination of uninstalling mycli, installing tabulate and six with brew and then reinstalling mycli worked in the end.