Skip to content

TypeError: cannot create weak reference to 'LocalProxy' object #11

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

Open
DarkRedman opened this issue Mar 15, 2025 · 0 comments
Open

TypeError: cannot create weak reference to 'LocalProxy' object #11

DarkRedman opened this issue Mar 15, 2025 · 0 comments

Comments

@DarkRedman
Copy link

Once I setup the venv and installed the requirements and start the program, I get this error when going trough the api page :

TypeError: cannot create weak reference to 'LocalProxy' object

I tried to change the line 34 in db.py as this :

with current_app.app_context():
    db = LocalProxy(get_db)

But it doesn't solve the problem and still get this error :

RuntimeError: Working outside of application context.

Which means the app_context() function isn't even working.

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

1 participant