Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

cannot import httpx when running weather.py app from Textual dev command line. #3892

Closed
greendavegreen opened this issue Dec 17, 2023 · 1 comment

Comments

@greendavegreen
Copy link

working with the weather.py example in the workers section of the documentation, I ran into trouble running from Textual dev tooling. when I run either regular or dev mode using textual, I get a httpx module not found error.

the same trouble affects my application which I have been happily developing once I added httpx as an import. I would like to debug and see events while making network calls.

textual diagnose
Traceback (most recent call last):
  File "/Users/gdave/VSProjects/tui/1337/weather.py", line 1, in <module>
    import httpx
ModuleNotFoundError: No module named 'httpx'```

<!-- This is valid Markdown, please paste the following directly in to a GitHub issue -->
# Textual Diagnostics

## Versions

| Name    | Value  |
|---------|--------|
| Textual | 0.45.1 |
| Rich    | 13.7.0 |

## Python

| Name           | Value                                     |
|----------------|-------------------------------------------|
| Version        | 3.11.6                                    |
| Implementation | CPython                                   |
| Compiler       | Clang 15.0.0 (clang-1500.0.40.1)          |
| Executable     | /usr/local/opt/[email protected]/bin/python3.11 |

## Operating System

| Name    | Value                                                                                            |
|---------|--------------------------------------------------------------------------------------------------|
| System  | Darwin                                                                                           |
| Release | 23.2.0                                                                                           |
| Version | Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:10 PST 2023; root:xnu-10002.61.3~2/RELEASE_X86_64 |

## Terminal

| Name                 | Value              |
|----------------------|--------------------|
| Terminal Application | iTerm.app (3.4.22) |
| TERM                 | xterm-256color     |
| COLORTERM            | truecolor          |
| FORCE_COLOR          | *Not set*          |
| NO_COLOR             | *Not set*          |

## Rich Console options

| Name           | Value                |
|----------------|----------------------|
| size           | width=143, height=58 |
| legacy_windows | False                |
| min_width      | 1                    |
| max_width      | 143                  |
| is_terminal    | True                 |
| encoding       | utf-8                |
| max_height     | 58                   |
| justify        | None                 |
| overflow       | None                 |
| no_wrap        | False                |
| highlight      | None                 |
| markup         | None                 |
| height         | None                 |
@TomJGooding
Copy link
Contributor

httpx is an external library which you will need to install with pip install httpx.

@Textualize Textualize deleted a comment from github-actions bot Dec 18, 2023
@Textualize Textualize locked and limited conversation to collaborators Dec 18, 2023
@davep davep converted this issue into discussion #3894 Dec 18, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants