Skip to content

Bug: sniffio dependency is not installed #618

@jorgeecardona

Description

@jorgeecardona

Description

Hi,

I just got the following error:

E                 File "/usr/local/lib/python3.14/site-packages/litestar/concurrency.py", line 8, in <module>
E                   import sniffio
E               ModuleNotFoundError: No module named 'sniffio'

I noticed that the sniffio is not in the documentation either is installed when litestar is installed, I have to install it manually, but the import is not conditional.

Shouldn't this import be treated differently?

Let me know I would to help with my first simple PR with this great project.

Thank you,

URL to code causing the issue

No response

MCVE

# Your MCVE code here

Steps to reproduce

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Screenshots

"In the format of: ![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"

Logs

Package Version

litestar.version
Version(major=2, minor=18, patch=0, release_level='final', serial=0)

Platform

  • Linux
  • Mac
  • Windows
  • Other (Please specify in the description above)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions