Skip to content

version 0.6.0 still trying to reference async_slider.js #194

@aschonfeld

Description

@aschonfeld

Looks like in the latest version of dash_daq (0.6.0) async_slider.js is no longer bundled with the code. But on this line you're still referencing it which is causing my code to fail with this error:

Traceback (most recent call last):
  File "[path to source]/lib/python3.11/site-packages/flask/app.py", line 1498, in __call__
    return self.wsgi_app(environ, start_response)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[path to source]/lib/python3.11/site-packages/flask/app.py", line 1476, in wsgi_app
    response = self.handle_exception(e)
               ^^^^^^^^^^^^^^^^^^^^^^^^
  File "[path to source]/lib/python3.11/site-packages/flask/app.py", line 1473, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[path to source]/lib/python3.11/site-packages/flask/app.py", line 882, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[path to source]/lib/python3.11/site-packages/flask/app.py", line 878, in full_dispatch_request
    rv = self.preprocess_request()
         ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[path to source]/lib/python3.11/site-packages/flask/app.py", line 1253, in preprocess_request
    rv = self.ensure_sync(before_func)()
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[path to source]/lib/python3.11/site-packages/dash/dash.py", line 1442, in _setup_server
    self._generate_scripts_html()
  File "[path to source]/lib/python3.11/site-packages/dash/dash.py", line 981, in _generate_scripts_html
    + self._collect_and_register_resources(
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[path to source]/lib/python3.11/site-packages/dash/dash.py", line 909, in _collect_and_register_resources
    _relative_url_path(
  File "[path to source]/lib/python3.11/site-packages/dash/dash.py", line 886, in _relative_url_path
    modified = int(os.stat(module_path).st_mtime)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '[path to source]/lib/python3.11/site-packages/dash_daq/async-slider.js'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions