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

Dependencies issue? #9

Open
gladkikhartem opened this issue Apr 23, 2024 · 2 comments
Open

Dependencies issue? #9

gladkikhartem opened this issue Apr 23, 2024 · 2 comments

Comments

@gladkikhartem
Copy link

gladkikhartem commented Apr 23, 2024

$ sudo pip install okcli
$ okcli
Traceback (most recent call last):
File "/usr/local/bin/okcli", line 5, in
from okcli.main import cli
File "/usr/local/lib/python3.10/dist-packages/okcli/main.py", line 20, in
from cli_helpers.tabular_output import TabularOutputFormatter
File "/usr/local/lib/python3.10/dist-packages/cli_helpers/tabular_output/init.py", line 11, in
from .output_formatter import format_output, TabularOutputFormatter
File "/usr/local/lib/python3.10/dist-packages/cli_helpers/tabular_output/output_formatter.py", line 10, in
from . import (delimited_output_adapter, vertical_table_adapter,
File "/usr/local/lib/python3.10/dist-packages/cli_helpers/tabular_output/tabulate_adapter.py", line 4, in
from cli_helpers.packages import tabulate
File "/usr/local/lib/python3.10/dist-packages/cli_helpers/packages/tabulate.py", line 6, in
from collections import namedtuple, Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/init.py)

@gladkikhartem gladkikhartem changed the title collections Dependencies issue? Apr 23, 2024
@gladkikhartem
Copy link
Author

OS: Linux Mint
Default Python version: Python 3.10.6 (main, May 29 2023, 11:10:38) [GCC 11.3.0] on linux

@telefunken
Copy link

The ImportError you're encountering is due to a change in Python 3.10 where Iterable has been moved from collections to collections.abc.
Try Python 3.9 or earlier if the problem is in a dependency that can't be updated.

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