-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Cannot import dash-html-components with dash==0.23.1 and python>=3.7 #327
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
Comments
Fixed in |
This is still not working for me with dash==0.26.6. I tried reinstalling and downgrading to dash==0.24.1, and it still fails with the same syntax error. |
Try |
@rmarren1 I just released 0.13.0 with the dev bundle support, I didn't touch the .py files and didn't regenerate them. The .py files in the repo are bad. |
Yeah the files in the repo are against 3.6. I'll change them to be against 3.7 and release |
@rmbarley Should work with |
See discussion here: https://community.plot.ly/t/error-running-dash-after-upgrade-of-plotly/12507/5?u=chriddyp
It looks like the IDE support PR can not handle components which have arguments that are Python Keywords.
None of the core components have had these in 3.6, but that changed in 3.7.
The PR #325 is a patch to fix this, namely it checks if each argument is in keyword.kwlist, and if it is Dash will accept that keyword via **kwargs rather than via a named argument.
A
SyntaxError: invalid syntax
is thrown at dash_html_components/Script.py, line 48 when attempting to importdash-html-components
withdash==0.23.1
andpython>=3.7
.Fix is to downgrade dash to 0.22.0, patch will be merged soon: #325
The text was updated successfully, but these errors were encountered: