Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'tabulate' #1138

Open
SamCritch opened this issue Nov 13, 2023 · 2 comments
Open

No module named 'tabulate' #1138

SamCritch opened this issue Nov 13, 2023 · 2 comments

Comments

@SamCritch
Copy link

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
Copy link
Contributor

May be related dbcli/cli_helpers#86 .

@SamCritch
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants