Giter VIP home page Giter VIP logo

Comments (5)

provinzkraut avatar provinzkraut commented on June 6, 2024

Hi @kodecreer, thanks for reporting!

I cannot reproduce this as of now with the dependencies you specified on Python 3.10. That being said though, I have only tested it on Linux, but I don't think that would make a difference 👓

Just to confirm, this is the code you're running?

from litestar import Litestar, get


@get("/")
async def hello_world() -> str:
    return "Hello, world!"


app = Litestar([hello_world])

from litestar.

kodecreer avatar kodecreer commented on June 6, 2024

Yes that's the exact code I ran. Python version is 3.10.5

from litestar.

kodecreer avatar kodecreer commented on June 6, 2024

Ok found out the issue. Litestar for some reason doesn't work with Python version 3.10.5 on Mac. It's reccomended to use a different version of python . I am here if you prefer to continue investigating the cause of this issue. I updated my python version to 3.12 and it worked fine.

from litestar.

provinzkraut avatar provinzkraut commented on June 6, 2024

It's reccomended to use a different version of python

Recommended by whom? 👀

Is this some dependency resolution thing?
If yes, how have you installed Litestar?

from litestar.

kodecreer avatar kodecreer commented on June 6, 2024

By me because it fixed my issue on my Mac and in case someone runs into the same issue in the future.

Probably something in the implmentation of Python on Mac. Forgot to mention it's monterey OSX
I installed it using "pip install litestar[standard]"

from litestar.

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.