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

run.py typeerror #698

Closed
Kukikano0709 opened this issue Feb 3, 2024 · 3 comments
Closed

run.py typeerror #698

Kukikano0709 opened this issue Feb 3, 2024 · 3 comments

Comments

@Kukikano0709
Copy link

Traceback (most recent call last):
File "run.py", line 1, in
from buildyourownbotnet import create_app
File "/root/byob/web-gui/buildyourownbotnet/init.py", line 2, in
from flask import Flask
File "/usr/local/lib/python3.8/dist-packages/flask/init.py", line 5, in
from . import json as json
File "/usr/local/lib/python3.8/dist-packages/flask/json/init.py", line 6, in
from ..globals import current_app
File "/usr/local/lib/python3.8/dist-packages/flask/globals.py", line 25, in
app_ctx: AppContext = LocalProxy( # type: ignore[assignment]
TypeError: init() got an unexpected keyword argument 'unbound_message'

@Pleasurecruise
Copy link

The same problem.Wait for answer.

@Aerialflame7125
Copy link

Aerialflame7125 commented Mar 17, 2024

From: https://stackoverflow.com/questions/73337927/typeerror-init-got-an-unexpected-keyword-argument-unbound-message

Comment 1. "I had an older version of Werkzeug in my requirements.txt that needed removing"
Fix 1. Upgrade Werkzeug

Comment 2. "I added flask==2.1.3 to my requirements and it worked. I think this is a problem with the currently lastest versions of flask"
Fix 2. DO NOT use version listed here, just upgrade flask

Lesson Learned, DO RESEARCH FIRST

Copy link

Stale issue message

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

No branches or pull requests

3 participants