Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

du-uploader not compatible with Dash latest version 2.0.0 #51

Closed
vishnuav08 opened this issue Sep 19, 2021 · 1 comment
Closed

du-uploader not compatible with Dash latest version 2.0.0 #51

vishnuav08 opened this issue Sep 19, 2021 · 1 comment

Comments

@vishnuav08
Copy link

Hi,

I have installed the dash uploader recently and noticed that it's not compatible with dash 2.0.0. The HTML and DCC import has been changed in-dash 2.0.0 from
import dash_html_components as html
to
from dash import html

Just wondering if there is any plan to release du-uploader compatible with Dash 2.0.0

Thanks

@fohrloop
Copy link
Owner

Hi,

The dash-uploader is compatible with dash==2.0.0. You can use either one:

# Works with all dash versions, but gives a warning with dash 2.0.0
import dash_html_components as html

# or

# Works with only dash>=2.0.0
from dash import html

There are no imports in the latest version of dash-uploader for dash_html_components - only in the examples. It could be that some older version did have this kind of import, though. I'd rather not yet update the examples for the dash 2.0.0 as it's only 2 weeks old release and most of the users are still using older dash, and would receive an ImportError with the new import style. Perhaps after few months or a year the examples could be updated to use the new syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants