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 when running examples #71
Comments
You will need to install via poetry. Do 'pip uninstall textual' then 'poetry install' before running the examples... |
sorry im kinda new to python so i may be messing something up. i did the error is from textual.app import App
ModuleNotFoundError: No module named 'textual' |
so i did |
I am also having trouble with this exact same error. Running |
If you have textual installed via pip, you will need to first uninstall it and then install it via Poetry. Uninstall it with this:
Now cd in to the textual directory and run the following:
The bleeding edge version of Textual will now be installed and you can run the examples with the following:
|
Ah, okay! I was trying to just do As I understand it however, that will only install textual in a virtual environment for the textual source. Is there a way I can install it globally to use with other projects? I normally don't use poetry, so please forgive me if this is a simple question. Textual is a really cool project and I'm loving the examples, thank you souch for all the work you put into it! |
Please help I did what you said but Visual Studio tells me " There is no module called 'textual'." |
@cole-wilson You can use the version on PyPi just by adding textual to your project. These instructions are so you can try out the latest code before it is released. @prolomix You will need to get the latest code from the repository (here). You can do this by cloning the repos. Click the code tab above and then the green Code button. If you have never done this before, see if you can find a guide online. |
Ah. You are running on Windows. Textual is not yet compatible with Windows I'm afraid. |
Ok @willmcgugan |
When it will be available for windows |
Can't say for certain, but I would suspect a month or two. |
@willmcgugan thanks! |
Did I solve your problem? Consider sponsoring my work on Textual with a monthly donation. Or buy me a coffee to say thanks. |
i installed textual with pip and i tried to run the first example in the readme with
python3 filename.py
but i get the errorTypeError: on_key() takes 1 positional argument but 2 were given
when i press a key. got a similiar error with another example. sorry if im being dumb : pThe text was updated successfully, but these errors were encountered: