[BUG] ImportError OrderedDict
See original GitHub issueYou may find a solution to your problem in the docs or issues.
First: Thanks for your awesome project and the work you take to make devs lifes better 😃! Describe the bug
Some updates seem to have mixed up dependencies.
> rich README.md
Traceback (most recent call last):
File "/home/graeter/.local/bin/rich", line 5, in <module>
from rich_cli.__main__ import run
File "/home/graeter/.local/lib/python3.8/site-packages/rich_cli/__main__.py", line 7, in <module>
from rich.console import Console, RenderableType
File "/home/graeter/.local/lib/python3.8/site-packages/rich/console.py", line 46, in <module>
from ._log_render import FormatTimeCallable, LogRender
File "/home/graeter/.local/lib/python3.8/site-packages/rich/_log_render.py", line 5, in <module>
from .text import Text, TextType
File "/home/graeter/.local/lib/python3.8/site-packages/rich/text.py", line 5, in <module>
from rich.emoji import EmojiVariant
File "/home/graeter/.local/lib/python3.8/site-packages/rich/emoji.py", line 4, in <module>
from .jupyter import JupyterMixin
File "/home/graeter/.local/lib/python3.8/site-packages/rich/jupyter.py", line 4, in <module>
from .segment import Segment
File "/home/graeter/.local/lib/python3.8/site-packages/rich/segment.py", line 19, in <module>
from .cells import (
File "/home/graeter/.local/lib/python3.8/site-packages/rich/cells.py", line 6, in <module>
from ._lru_cache import LRUCache
File "/home/graeter/.local/lib/python3.8/site-packages/rich/_lru_cache.py", line 8, in <module>
from typing_extensions import OrderedDict
ImportError: cannot import name 'OrderedDict' from 'typing_extensions' (/home/graeter/.local/lib/python3.8/site-packages/typing_extensions.py)
Can you point me to a working configuration? Up to now I used rich very happily and would miss it a lot 😉
Platform
- Ubuntu 20.04
- python 3.8.10
- pip 22.0.4
- zsh with starship
```
python -m rich.diagnose
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/graeter/.local/lib/python3.8/site-packages/rich/diagnose.py", line 5, in <module>
from rich.console import Console, get_windows_console_features
File "/home/graeter/.local/lib/python3.8/site-packages/rich/console.py", line 46, in <module>
from ._log_render import FormatTimeCallable, LogRender
File "/home/graeter/.local/lib/python3.8/site-packages/rich/_log_render.py", line 5, in <module>
from .text import Text, TextType
File "/home/graeter/.local/lib/python3.8/site-packages/rich/text.py", line 5, in <module>
from rich.emoji import EmojiVariant
File "/home/graeter/.local/lib/python3.8/site-packages/rich/emoji.py", line 4, in <module>
from .jupyter import JupyterMixin
File "/home/graeter/.local/lib/python3.8/site-packages/rich/jupyter.py", line 4, in <module>
from .segment import Segment
File "/home/graeter/.local/lib/python3.8/site-packages/rich/segment.py", line 19, in <module>
from .cells import (
File "/home/graeter/.local/lib/python3.8/site-packages/rich/cells.py", line 6, in <module>
from ._lru_cache import LRUCache
File "/home/graeter/.local/lib/python3.8/site-packages/rich/_lru_cache.py", line 8, in <module>
from typing_extensions import OrderedDict
ImportError: cannot import name 'OrderedDict' from 'typing_extensions' (/home/graeter/.local/lib/python3.8/site-packages/typing_extensions.py)
pip freeze | grep rich rich==12.1.0 rich-cli==1.6.1 rich-rst==1.1.7
</details>
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:6
Top Results From Across the Web
[BUG] ImportError: cannot import name 'OrderedDict' #2266
Successfully merging a pull request may close this issue. Fix OrderedDict import for python3.6 Dipet/DeepSpeed. 1 participant.
Read more >Python 2.7.5 getting import OrderedDict ImportError
OrderedDict belongs to the collections module. It is not standalone. ... I received this error when trying to import gstools :
Read more >805020 - [traceback] ImportError: No module named ordereddict
I'm getting a lot of emails from input-dev with tracebacks like this one all of which end the same. Pretty sure this started...
Read more >ImportError: cannot import name OrderedDict
Hello, I installed 2.3.8 spyder on Redhat 6.4. At launch, I have the following error: File "/usr/bin/spyder", line 3, in <module> start_app.main()
Read more >Getting ImportError: cannot import name OrderedDict - YouTube
python-2.7: Getting ImportError : cannot import name OrderedDict Thanks for taking the time to learn more. In this video I'll go through your ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Great. I’ll update the dependancy in Rich.
Did I solve your problem?
Why not buy the devs a coffee to say thanks?