diff --git a/FAQ.md b/FAQ.md index 570d28464..1372d3263 100644 --- a/FAQ.md +++ b/FAQ.md @@ -1,6 +1,7 @@ # Frequently Asked Questions - [Does Textual support images?](#does-textual-support-images) +- [How can I fix ImportError cannot import name ComposeResult from textual.app ?](#how-can-i-fix-importerror-cannot-import-name-composeresult-from-textualapp-) - [How do I center a widget in a screen?](#how-do-i-center-a-widget-in-a-screen) - [How do I pass arguments to an app?](#how-do-i-pass-arguments-to-an-app) @@ -11,6 +12,17 @@ Textual doesn't have built in support for images yet, but it is on the [Roadmap] See also the [rich-pixels](https://github.com/darrenburns/rich-pixels) project for a Rich renderable for images that works with Textual. + +## How can I fix ImportError cannot import name ComposeResult from textual.app ? + +You likely have an older version of Textual. You can install the latest version by adding the `-U` switch which will force pip to upgrade. + +The following should do it: + +``` +pip install "textual[dev]" -U +``` + ## How do I center a widget in a screen? diff --git a/questions/compose-result.question.md b/questions/compose-result.question.md new file mode 100644 index 000000000..d148f256a --- /dev/null +++ b/questions/compose-result.question.md @@ -0,0 +1,14 @@ +--- +title: "How can I fix ImportError cannot import name ComposeResult from textual.app ?" +alt_titles: + - "Can't import ComposeResult" + - "Error about missing ComposeResult from textual.app" +--- + +You likely have an older version of Textual. You can install the latest version by adding the `-U` switch which will force pip to upgrade. + +The following should do it: + +``` +pip install "textual[dev]" -U +```