question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatibility with dash 1.21.0 when serving files locally

See original GitHub issue

When serving files locally after upgrading to dash 1.21.0, certain script urls break. This is what is rendered in the template footer:

<script src="/django_plotly_dash/app/LigandabilityViewer/_dash-component-suites/dash/deps/polyfill@7.v1_21_0m1627189189.12.1.min.js"></script>
<script src="/django_plotly_dash/app/LigandabilityViewer/_dash-component-suites/dash/deps/react@16.v1_21_0m1627189189.14.0.min.js"></script>
<script src="/django_plotly_dash/app/LigandabilityViewer/_dash-component-suites/dash/deps/react-dom@16.v1_21_0m1627189189.14.0.min.js"></script>
<script src="/django_plotly_dash/app/LigandabilityViewer/_dash-component-suites/dash/deps/prop-types@15.v1_21_0m1627189189.7.2.min.js"></script>
<script src="/django_plotly_dash/app/LigandabilityViewer/_dash-component-suites/dash/dash-renderer/build/dash_renderer.v1_21_0m1627189189.min.js"></script>

Note the /dash/deps/ bit, which is not handled by any route. With dash 1.20.0, the folder structure is different, eg. for react-dom, it is:

<script src="/synapse/django_plotly_dash/app/LigandabilityViewer/_dash-component-suites/dash_renderer/react-dom@16.v1_9_1m1617985068.14.0.min.js"></script>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
GibbsConsultingcommented, Aug 23, 2021

Sounds like a code change in dash 1.21.0 has altered some paths. As django-plotly-dash rewrites some of these paths we will need to update our codebase.

Short term workaround is to restrict the dash version used, either manually or in a project’s requirements file.

0reactions
radusuciucommented, Oct 12, 2021

Great, thank you! I will test this week and reopen if any issues as instructed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting App Deployment Errors - Dash Python
This troubleshooting guide describes errors that you may encounter when deploying apps to Dash Enterprise as well as steps to resolve them.
Read more >
django-plotly-dash - Bountysource
Hi team, I am NOT able to render the multipage dash app. Below is the piece of code which is the entry point...
Read more >
dash/CHANGELOG.md at dev · plotly/dash - GitHub
This allows you to re-initialize the Python code of the app when non-Python files change, if you know that these files impact the...
Read more >
Cannot install "dash" with Python version 3.6.4 - Stack Overflow
I'm attempting to install Dash from our local pip repository, but it doesn't want to install on Python 3.6.4. I've tried versions 2.0.0...
Read more >
Changelog - Dash Enterprise Administration
dash -embedded==1.21.0 is compatible with dash==1.21.0 and ... The next major release of Dash Enterprise will drop support for self-serve account creation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found