Giter Club home page Giter Club logo

Comments (7)

perdy avatar perdy commented on May 24, 2024 1

It is because Starlette did some changes under types module on version 0.12 and I need to do some work to adapt it. You could use Starlette 0.11 until I push a new version fixing it.

from flama.

perdy avatar perdy commented on May 24, 2024 1

I'm working on a big update and those conflicts should be fixed there, but maybe it could be a good point doing a minor upgrade fixing the requirements versions so I'll take a look when I have some free time.

from flama.

JosXa avatar JosXa commented on May 24, 2024

Whew, that was fast - thank you :)

from flama.

JosXa avatar JosXa commented on May 24, 2024

On a related note, I now get

Traceback (most recent call last):
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 369, in run_asgi
    result = await app(self.scope, self.receive, self.send)
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\uvicorn\middleware\asgi2.py", line 7, in __call__
    await instance(receive, send)
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\starlette\middleware\errors.py", line 125, in asgi
    raise exc from None
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\starlette\middleware\errors.py", line 103, in asgi
    await asgi(receive, _send)
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\starlette\exceptions.py", line 74, in app
    raise exc from None
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\starlette\exceptions.py", line 63, in app
    await instance(receive, sender)
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\flama\routing.py", line 176, in awaitable
    response = await run_in_threadpool(injected_func)
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\starlette\concurrency.py", line 24, in run_in_threadpool
    return await loop.run_in_executor(None, func, *args)
  File "C:\Program Files\Python36\Lib\concurrent\futures\thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\contextvars\__init__.py", line 38, in run
    return callable(*args, **kwargs)
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\flama\schemas.py", line 262, in schema
    return OpenAPIResponse(self.schema)
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\flama\schemas.py", line 258, in schema
    return self.schema_generator.get_schema(self.routes)
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\flama\schemas.py", line 251, in schema_generator
    title=self.title, version=self.version, description=self.description
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\flama\schemas.py", line 70, in __init__
    from apispec.ext.marshmallow import MarshmallowPlugin
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\apispec\ext\marshmallow\__init__.py", line 32, in <module>
    from .openapi import OpenAPIConverter
  File "C:\Users\joscha.goetzer\.virtualenvs\autogram-PRYPx28t\lib\site-packages\apispec\ext\marshmallow\openapi.py", line 16, in <module>
    from marshmallow.compat import iteritems
ModuleNotFoundError: No module named 'marshmallow.compat'

when firing a request to the /schema/ URL.
Any version conflicts you're aware of in this case too?

All this is really kind of offputting for a first-time user of the library, but I'm eager to get this working nonetheless.

from flama.

perdy avatar perdy commented on May 24, 2024

Yep, marshmallow 3.0.0rc6 changed that, you could use 3.0.0rc5

from flama.

JosXa avatar JosXa commented on May 24, 2024

Neat, works like a charm. What's up with all of those conflicts 😕

from flama.

perdy avatar perdy commented on May 24, 2024

Requirements conflicts should be solved in 0.9.0 version and it works now with Starlette 0.12.0 and Marshmallow 3.0.0rc6

from flama.

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.