GithubHelp home page GithubHelp logo

Comments (5)

Nepich avatar Nepich commented on June 2, 2024 3

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.

pk026 avatar pk026 commented on June 2, 2024

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.

pk026 avatar pk026 commented on June 2, 2024

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.

Nepich avatar Nepich commented on June 2, 2024

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.

i701 avatar i701 commented on June 2, 2024

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

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)

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.