dtiesling / flask-muck

🧹 Flask REST framework for generating CRUD APIs and OpenAPI specs in the SQLAlchemy, Marshmallow/Pydantic application stack.
https://dtiesling.github.io/flask-muck/
MIT License
158 stars 7 forks source link

ImportError: cannot import name 'FlaskMuck' from 'flask_muck.views' #95

Closed dragonballa closed 4 months ago

dragonballa commented 4 months ago

Tried the sample code on the readme, I installed flask-muck via pip3

Traceback (most recent call last):
  File "/Users/me/dev/a/index.py", line 2, in <module>
    from flask_muck.views import FlaskMuckApiView, FlaskMuck
ImportError: cannot import name 'FlaskMuck' from 'flask_muck.views' (/opt/homebrew/lib/python3.10/site-packages/flask_muck/views.py)
dtiesling commented 4 months ago

Oh no, docs may have gotten out of date. I'll test everything tonight and make updates if necessary.

dtiesling commented 4 months ago

@dragonballa I forgot to mention that the docs should be up to date. The Quickstart is here - https://dtiesling.github.io/flask-muck/stable/quickstart/

dtiesling commented 4 months ago

Readme has been updated to fix the import path error and to be more clear that it is code to show how the library works but not a full working example app.