Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork16.7k
Closed
Milestone
Description
With a trivial scriptusingapp.run() such as:
fromflaskimportFlaskapp=Flask(__name__)if__name__=="__main__":app.run(debug=True)
The current gitmain breaks with:
Traceback (most recent call last): File"/home/florian/tmp/flask/app.py", line3, in<module> app= Flask(__name__)^^^^^^^^^^^^^^^ File"/home/florian/tmp/flask/src/flask/app.py", line376, in__init__ instance_path=self.auto_find_instance_path()^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File"/home/florian/tmp/flask/src/flask/app.py", line630, inauto_find_instance_path prefix, package_path= find_package(self.import_name)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File"/home/florian/tmp/flask/src/flask/scaffold.py", line898, infind_package package_path= _find_package_path(import_name)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File"/home/florian/tmp/flask/src/flask/scaffold.py", line858, in_find_package_path spec= importlib.util.find_spec(root_mod_name)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File"<frozen importlib.util>", line114, infind_specValueError:__main__.__spec__ is None
This seems to be a regression due to84e11a1 from#5157.
Environment:
- Python version: 3.11.4
- Flask version: git main
Metadata
Metadata
Assignees
Labels
No labels