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

just learning....simple.py gives errors #23

Closed
vo1pwf opened this issue Jul 8, 2021 · 2 comments
Closed

just learning....simple.py gives errors #23

vo1pwf opened this issue Jul 8, 2021 · 2 comments

Comments

@vo1pwf
Copy link

vo1pwf commented Jul 8, 2021

ran this to install
pip install Textual

$ ./test.py
Traceback (most recent call last):
File "./test.py", line 6, in
from textual import events
File "/home/~~~~~/.local/lib/python3.8/site-packages/textual/events.py", line 7, in
from .message import Message
File "/home/~~~~~/.local/lib/python3.8/site-packages/textual/message.py", line 7, in
from ._types import MessageTarget
File "/home/~~~~~/.local/lib/python3.8/site-packages/textual/_types.py", line 31, in
Lines = list[list[Segment]]
TypeError: 'type' object is not subscriptable

am I wrong right from the get go?

@willmcgugan
Copy link
Collaborator

That's Python3.9 syntax. There's a fix in main if you want to install from the repo. Check it out and run the following:

pip install poetry
poetry install

@willmcgugan
Copy link
Collaborator

Let me know if you run in to any more problems.

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