We have a proper running Dash 4.1 application. Upon testing 4.2.0rc3 and starting the application with flask run we were greeted with: ValueError: The name '_dash_assets' is already registered for a different blueprint. Use 'name=' to provide a unique name.
Full stack:
(venv) PSC:\Users\user\Python\dash-site>flaskrun2026-05-1413:39:02-INFO-Settingsclass: dash.config.LocalDevelopmentConfig2026-05-1413:39:03-INFO-DatabaseURI: sqlite:///C:\Users\user\Python\dash-site\instance\dwsc.sqlite32026-05-1413:39:06-CRITICAL-UncaughtexceptionTraceback (mostrecentcalllast):
File"<frozen runpy>", line198, in_run_module_as_mainFile"<frozen runpy>", line88, in_run_codeFile"C:\Users\user\Python\dash-site\venv\Scripts\flask.exe\__main__.py", line5, in<module>sys.exit(main())
~~~~^^File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\flask\cli.py", line1131, inmaincli.main()
~~~~~~~~^^File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\click\core.py", line1435, inmainrv=self.invoke(ctx)
File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\click\core.py", line1902, ininvokereturn_process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\click\core.py", line1298, ininvokereturnctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\click\core.py", line853, ininvokereturncallback(*args, **kwargs)
File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\click\decorators.py", line93, innew_funcreturnctx.invoke(f, obj, *args, **kwargs)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\click\core.py", line853, ininvokereturncallback(*args, **kwargs)
File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\flask\cli.py", line979, inrun_commandraiseefromNoneFile"C:\Users\user\Python\dash-site\venv\Lib\site-packages\flask\cli.py", line963, inrun_commandapp: WSGIApplication=info.load_app() # pyright: ignore~~~~~~~~~~~~~^^File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\flask\cli.py", line349, inload_appapp=locate_app(import_name, name)
File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\flask\cli.py", line262, inlocate_appreturnfind_best_app(module)
File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\flask\cli.py", line72, infind_best_appapp=app_factory()
File"C:\Users\user\Python\dash-site\dash\__init__.py", line180, increate_appdash_app.init_app(app)
~~~~~~~~~~~~~~~~~^^^^^File"C:\Users\user\Python\dash-site\dash\dash_app.py", line505, ininit_appapp.init_app(server)
~~~~~~~~~~~~^^^^^^^^File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\dash\dash.py", line734, ininit_appself.backend.register_assets_blueprint(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^assets_blueprint_name,
^^^^^^^^^^^^^^^^^^^^^^config.routes_pathname_prefix+self.config.assets_url_path.lstrip("/"),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^self.config.assets_folder,
^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\dash\backends\_flask.py", line95, inregister_assets_blueprintself.server.register_blueprint(bp)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\flask\sansio\scaffold.py", line47, inwrapper_funcreturnf(self, *args, **kwargs)
File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\flask\sansio\app.py", line595, inregister_blueprintblueprint.register(self, options)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^File"C:\Users\user\Python\dash-site\venv\Lib\site-packages\flask\sansio\blueprints.py", line310, inregisterraiseValueError(
...<3lines>...
)
ValueError: Thename'_dash_assets'isalreadyregisteredforadifferentblueprint. Use'name='toprovideauniquename.
(venv) PSC:\Users\user\Python\dash-site>I realize this is not a MRE. If this is needed to troubleshoot, I can invest the time to try to create one.
We have a proper running Dash 4.1 application. Upon testing 4.2.0rc3 and starting the application with
flask runwe were greeted with:ValueError: The name '_dash_assets' is already registered for a different blueprint. Use 'name=' to provide a unique name.Full stack:
I realize this is not a MRE. If this is needed to troubleshoot, I can invest the time to try to create one.