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.

Add rich.__version__

See original GitHub issue

rich should have __version__ property.

AttributeError: module 'rich' has no attribute '__version__'

This is a common python convention to tell package version easily.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

1reaction
wookayincommented, Mar 8, 2020

Thanks for the feedback. But why is it closed (it’s still unimplemented)? Even though poetry is used, we could add this property with a workaround.

0reactions
willmcgugancommented, Mar 20, 2022

It was a standard of sorts, but now importlib is recommended, and __version__ is a convenience.

Unless poetry has an answer to this that doesn’t require a backport of importlib, I’m afraid there is no motivation to change it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Declaring Rich Versions - Gradle User Manual
Rich version declaration is accessed through the version DSL method on a dependency or constraint declaration which gives access to MutableVersionConstraint.
Read more >
rich - PyPI
Rich is a Python library for rich text and beautiful formatting in the terminal. The Rich API makes it easy to add color...
Read more >
Introduction — Rich 12.6.0 documentation
Rich is a Python library for writing rich text (with color and style) to the terminal, and for displaying advanced content such as...
Read more >
Add rich.__version__ · Issue #15 · Textualize/rich - GitHub
I use poetry to do packaging, which recommends pkg_resources to get the version from meta data. They initially recommended dropping ...
Read more >
About Rich Edit Controls - Win32 apps | Microsoft Learn
Each version of rich edit is a superset of the preceding one, ... For RTF roundtripping only, added amount to space between letters, ......
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