malwaredllc / byob

An open-source post-exploitation framework for students, researchers and developers.
https://byob.dev
GNU General Public License v3.0
8.85k stars 2.1k forks source link

run.py typeerror #698

Closed Kukikano0709 closed 1 month ago

Kukikano0709 commented 5 months ago

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 commented 4 months ago

The same problem.Wait for answer.

Aerialflame7125 commented 3 months ago

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

github-actions[bot] commented 1 month ago

Stale issue message