question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] ImportError OrderedDict

See original GitHub issue

You 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:closed
  • Created a year ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

1reaction
willmcgugancommented, Apr 4, 2022

Great. I’ll update the dependancy in Rich.

0reactions
github-actions[bot]commented, Apr 4, 2022

Did I solve your problem?

Why not buy the devs a coffee to say thanks?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found