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

Error with Python 3.6.0 [BUG] #215

Closed
resparis opened this issue Aug 6, 2020 · 3 comments
Closed

Error with Python 3.6.0 [BUG] #215

resparis opened this issue Aug 6, 2020 · 3 comments
Labels
wontfix This will not be worked on

Comments

@resparis
Copy link

resparis commented Aug 6, 2020

Using Python 3.6.0 from Anaconda, I am getting the following error when I tried to import it.

console = Console()
Traceback (most recent call last):
File "", line 1, in
NameError: name 'Console' is not defined
from rich.console import Console
Traceback (most recent call last):
File "", line 1, in
File "\project\rich\lib\site-packages\rich\console.py", line 30, in
from . import errors, themes
File "project\rich\lib\site-packages\rich\themes.py", line 1, in
from .default_styles import DEFAULT_STYLES
File "\project\rich\lib\site-packages\rich\default_styles.py", line 18, in
strike=False,
File "\project\rich\lib\site-packages\rich\style.py", line 115, in init
self._color = None if color is None else _make_color(color)
File "\project\rich\lib\site-packages\rich\style.py", line 113, in _make_color
return color if isinstance(color, Color) else Color.parse(color)
AttributeError: type object 'Color' has no attribute 'parse'

@willmcgugan
Copy link
Collaborator

Rich requires Python 3.6.1 or above.

@daniellivingston
Copy link

@willmcgugan Sorry for dragging this issue from the grave, but has there been a Rich release that does work with 3.6.0? I'm working with a project that, unfortunately, has a hard 3.6.0 version lock.

@willmcgugan
Copy link
Collaborator

I don't think so. If there it is very old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants