dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.

Home Page:http://mycli.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No module named 'tabulate'

SamCritch opened this issue · comments

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?

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.