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

Messes up already installed Textual 0.51.0 #1

Open
gvanem opened this issue Feb 17, 2024 · 2 comments
Open

Messes up already installed Textual 0.51.0 #1

gvanem opened this issue Feb 17, 2024 · 2 comments

Comments

@gvanem
Copy link

gvanem commented Feb 17, 2024

Prior to installing this package I had Textual version 0.51.0 installed and working OK.
Cloning, building and installing this (using pip install -e .. Correct?), caused all Textual examples to fail.
E.g. running py -3 examples/calculator.py:

Traceback (most recent call last):
  File "F:\gv\Python310\Lib\site-packages\Textual-Github\examples\calculator.py", line 11, in <module>
    from textual import events, on
ImportError: cannot import name 'on' from 'textual' (F:\gv\Python310\lib\site-packages\textual\__init__.py)

I assume it's this line:

"textual ~=0.1.17",

that caused it.

From the above pip install -e ., I saw textual-0.1.18 textual-inputs-0.2.6 got installed.
I do not know much about pip, but why not "textual >=0.1.17"?

BTW. I'm on Win-10 Home, 22H2 (OS-build 19045.4046).

@hdb
Copy link
Owner

hdb commented Apr 28, 2024

I would recommend installing baywatch to a virtual environment so that it doesn't mess with your existing textual installation. I built this using an earlier version of textual before there was a stable API so I think it is likely not compatible with the latest version of textual.

@gvanem
Copy link
Author

gvanem commented Apr 29, 2024

@hdb Okay, But I absolutely loath virt-envs. It's very easy (for me) to mess up some vital detail.
So could it be < 0.1.17 and >=0.1.17 compatible?

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