Flask appears to have made a change in the 2.3.x series that the name of a Blueprint cannot be the empty string.
For example, with Flask 2.3.2 installed, importing
from PyDMXControl.controllers import OpenDMXController
results in the exception:
File "C:\Users\ASC\Documents\constellation-dev\build\apps\venv_3_11\Lib\site-packages\PyDMXControl\web\_routes.py", line 17, in <module>
routes = Blueprint('', __name__, url_prefix='/')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ASC\Documents\constellation-dev\build\apps\venv_3_11\Lib\site-packages\flask\blueprints.py", line 196, in __init__
raise ValueError("'name' may not be empty.")
ValueError: 'name' may not be empty.
I have verified this in Windows and macOS. Forcing the install of Flask 2.2.4 resolves this problem. The fix should be as easy as replacing '' with any value.
Flask appears to have made a change in the 2.3.x series that the name of a
Blueprint
cannot be the empty string.For example, with Flask 2.3.2 installed, importing
results in the exception:
I have verified this in Windows and macOS. Forcing the install of Flask 2.2.4 resolves this problem. The fix should be as easy as replacing '' with any value.