Comments (5)
to solve, replace import from from aioredis import Redis
to from redis.asyncio.client import Redis
in the app.py and providers/login.py files of library
from fastapi-admin.
hey, looks like fix for this is being done in 1.0.5 version, when we are expecting to release 1.0.5?
from fastapi-admin.
we are importing aioredis in app.py, how do you suggest to use redis library instead ? you mean to customise it on our own clone?
from fastapi-admin.
similar problem.
When i run app in Docker and import fastapi admin app i got
2023-07-30 12:30:37 File "/app/src/main.py", line 8, in <module>
2023-07-30 12:30:37 from src.admin.admin import admin_app
2023-07-30 12:30:37 File "/app/src/admin/admin.py", line 2, in <module>
2023-07-30 12:30:37 from fastapi_admin.app import FastAPIAdmin
2023-07-30 12:30:37 File "/root/.cache/pypoetry/virtualenvs/chatter-9TtSrW0h-py3.11/lib/python3.11/site-packages/fastapi_admin/app.py", line 3, in <module>
2023-07-30 12:30:37 from aioredis import Redis
2023-07-30 12:30:37 File "/root/.cache/pypoetry/virtualenvs/chatter-9TtSrW0h-py3.11/lib/python3.11/site-packages/aioredis/__init__.py", line 1, in <module>
2023-07-30 12:30:37 from aioredis.client import Redis, StrictRedis
2023-07-30 12:30:37 File "/root/.cache/pypoetry/virtualenvs/chatter-9TtSrW0h-py3.11/lib/python3.11/site-packages/aioredis/client.py", line 32, in <module>
2023-07-30 12:30:37 from aioredis.connection import (
2023-07-30 12:30:37 File "/root/.cache/pypoetry/virtualenvs/chatter-9TtSrW0h-py3.11/lib/python3.11/site-packages/aioredis/connection.py", line 33, in <module>
2023-07-30 12:30:37 from .exceptions import (
2023-07-30 12:30:37 File "/root/.cache/pypoetry/virtualenvs/chatter-9TtSrW0h-py3.11/lib/python3.11/site-packages/aioredis/exceptions.py", line 14, in <module>
2023-07-30 12:30:37 class TimeoutError(asyncio.TimeoutError, builtins.TimeoutError, RedisError):
2023-07-30 12:30:37 TypeError: duplicate base class TimeoutError
from fastapi-admin.
to solve, replace import from
from aioredis import Redis
tofrom redis.asyncio.client import Redis
in the app.py and providers/login.py files of library
Even if i do that also, it does not work. I think pydantic V2 breaks a lot of things.
from fastapi-admin.
Related Issues (20)
- How to hide primary key? HOT 2
- error 500 HOT 1
- 抱歉,请教初始化无法创建id的问题。 HOT 1
- error on templating
- Static files failed to load from unpkg.com HOT 1
- Online demo is down HOT 2
- Custom data with custom template and inline fields.
- Edit user schema in database
- Template locals
- can fastapi-admin support prisma?
- Only way to run fastapi-admin is via docker?
- ModuleNotFoundError: No module named 'tortoise'
- 给你发了邮件你没回复啊 HOT 1
- Translations are not loaded correctly HOT 4
- Advice on code comments
- `FileUpload`'s `save_file` function returns path incorrectly on Windows with backslash separator (due to `os.path.join`)
- Need upgrade to the redis ^5.0.0
- Admin 404 cannot be accessed HOT 9
- after start, no menus, sure? HOT 2
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 fastapi-admin.