byob icon indicating copy to clipboard operation
byob copied to clipboard

run.py typeerror

Open Kukikano0709 opened this issue 1 year ago • 2 comments

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'

Kukikano0709 avatar Feb 03 '24 12:02 Kukikano0709

The same problem.Wait for answer.

Pleasurecruise avatar Feb 07 '24 08:02 Pleasurecruise

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

Aerialflame7125 avatar Mar 17 '24 05:03 Aerialflame7125

Stale issue message

github-actions[bot] avatar May 17 '24 01:05 github-actions[bot]