Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'FastAPICache' from 'fastapi_cache' #489

Open
Ppang0405 opened this issue Dec 8, 2024 · 1 comment
Open

Comments

@Ppang0405
Copy link

I got an import error when running examples app from this repo, in both Redis and InMemory cache examples.

ImportError: cannot import name 'FastAPICache' from 'fastapi_cache' 

the line got error

from fastapi_cache import FastAPICache

python version 3.11.10
does anyone encounter this issue before or know how can I fix it?

@eudoxos
Copy link

eudoxos commented Dec 11, 2024

It must be a new upload to pypi; there is no __init__.py installed, whence the error. You can check out (I am not affiliated) fastapi-cache2-fork package instead which works (but is only available for python 3.11 and 3.12).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants