Comments (7)
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.
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.
Whew, that was fast - thank you :)
from flama.
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.
Yep, marshmallow 3.0.0rc6 changed that, you could use 3.0.0rc5
from flama.
Neat, works like a charm. What's up with all of those conflicts 😕
from flama.
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)
- Discover nested schemas
- Support for domain-driven-design (DDD)
- Refactor SQLAlchemy Repository for Multiple Tables
- Add support to Python 3.12
- Allow to define requestBody and parameters in OpenAPI docstrings
- Allow bulk creation and deletion on SQLAlchemy repositories
- Single type injection
- Component for injecting request's cookies
- Routes resolution is not working properly on resources under nested applications
- Include templates building as part of poetry build
- Include nested applications as part of Lifespan process
- Integrate dependabot
- Cache mechanism for routing resolution
- Connections manager for SQLAlchemy module
- Authentication mechanism
- Ordering for repositories list
- Enhanced operations for CRUD resources
- Core installation throws ModuleNotFoundError: `sqlalchemy`
- Flama logo is missing when serving
- Domain-driven design for HTTP resources
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flama.