mycli icon indicating copy to clipboard operation
mycli copied to clipboard

No module named 'tabulate'

Open SamCritch opened this issue 2 years ago • 2 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?

SamCritch avatar Nov 13 '23 11:11 SamCritch

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

rolandwalker avatar Nov 13 '23 15:11 rolandwalker

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 [email protected] 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.

SamCritch avatar Nov 13 '23 17:11 SamCritch