Giter Site home page Giter Site logo

Comments (16)

willmcgugan avatar willmcgugan commented on September 18, 2024 2

If you have textual installed via pip, you will need to first uninstall it and then install it via Poetry.

Uninstall it with this:

pip uninstall textual

Now cd in to the textual directory and run the following:

poetry install

The bleeding edge version of Textual will now be installed and you can run the examples with the following:

python animation.py

from textual.

prolomix avatar prolomix commented on September 18, 2024 2

Ok @willmcgugan

from textual.

willmcgugan avatar willmcgugan commented on September 18, 2024 1

@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.

Screen Shot 2021-09-01 at 09 11 42

If you have never done this before, see if you can find a guide online.

from textual.

willmcgugan avatar willmcgugan commented on September 18, 2024

You will need to install via poetry. Do 'pip uninstall textual' then 'poetry install' before running the examples...

from textual.

itsUrcute avatar itsUrcute commented on September 18, 2024

sorry im kinda new to python so i may be messing something up. i did python3 -m poetry add textual and now its telling me textual isnt a module. the pyproject.toml file and poetry.lock file both add up though

the error is

from textual.app import App
ModuleNotFoundError: No module named 'textual'

from textual.

itsUrcute avatar itsUrcute commented on September 18, 2024

so i did poetry run python filename.py and got the initial error TypeError: on_key() takes 1 positional argument but 2 were given. would appreciate some help on this

from textual.

cole-wilson avatar cole-wilson commented on September 18, 2024

I am also having trouble with this exact same error. Running python3 -m textual.app runs the demo just fine, but running the examples failed. I have installed everything with poetry.

from textual.

cole-wilson avatar cole-wilson commented on September 18, 2024

Ah, okay! I was trying to just do poetry add textual and then poetry install in an empty directory. yiur directions work great!

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!

from textual.

prolomix avatar prolomix commented on September 18, 2024

Please help I did what you said but Visual Studio tells me " There is no module called 'textual'."
then I uninstall 'textual' and Now cd into the textual directory and run the following: poetry installs and cmd pop up with an error.
tempsnip
#71

from textual.

prolomix avatar prolomix commented on September 18, 2024

I did it and it shows the same
but I run test file and it showed me this:
Untitled

from textual.

prolomix avatar prolomix commented on September 18, 2024

I did it and it shows me this in test file:
Untitled

what does this mean

from textual.

willmcgugan avatar willmcgugan commented on September 18, 2024

Ah. You are running on Windows. Textual is not yet compatible with Windows I'm afraid.

from textual.

prolomix avatar prolomix commented on September 18, 2024

When it will be available for windows

from textual.

willmcgugan avatar willmcgugan commented on September 18, 2024

Can't say for certain, but I would suspect a month or two.

from textual.

cole-wilson avatar cole-wilson commented on September 18, 2024

@willmcgugan thanks!

from textual.

github-actions avatar github-actions commented on September 18, 2024

Did I solve your problem?

Consider sponsoring my work on Textual with a monthly donation.

Or buy me a coffee to say thanks.

Will McGugan

from textual.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.