Textualize / textual

The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
https://textual.textualize.io/
MIT License
25.73k stars 792 forks source link

Modules not found #5199

Open sethmuriuki opened 3 weeks ago

sethmuriuki commented 3 weeks ago

I'M new to using textual, this is an error I keep getting Import "textual.app" could not be resolved along with others Import "rpcontacts.tui" could not be resolved

github-actions[bot] commented 3 weeks ago

We found the following entries in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

TomJGooding commented 3 weeks ago

I'm guessing you might be following this Real Python tutorial? How did you install textual?

sethmuriuki commented 3 weeks ago

Hi ,

Yes, that is the tutorial am following. Below are the instructions I followed. [cid:702c1cad-8070-45dc-9353-567aca04b475]


From: TomJGooding @.> Sent: 30 October 2024 18:25 To: Textualize/textual @.> Cc: sethmuriuki @.>; Author @.> Subject: Re: [Textualize/textual] Modules not found (Issue #5199)

I'm guessing you might be following this Real Python tutorialhttps://realpython.com/contact-book-python-textual/? How did you install textual?

— Reply to this email directly, view it on GitHubhttps://github.com/Textualize/textual/issues/5199#issuecomment-2447538768, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHYIGJMH5E3I57OD523C23LZ6D25PAVCNFSM6AAAAABQ34CVUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBXGUZTQNZWHA. You are receiving this because you authored the thread.Message ID: @.***>

TomJGooding commented 3 weeks ago

Sorry those instructions aren't showing on GitHub. Ensure that you've created and activated your virtual environment before installing textual. If that still doesn't work, I'm afraid that suggests an issue with your Python setup rather than anything related to Textual.

Edit: If you're using Windows, maybe try running the commands in the tutorial with py instead of python in case you have multiple versions of Python installed?