File tree 1 file changed +3
-12
lines changed
packages/dash-html-components/dash_html_components_base
1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 16
16
__version__ = package ['version' ]
17
17
18
18
# Module imports trigger a dash.development import, need to check this first
19
- if not hasattr (_dash , 'development' ):
20
- print (
21
- "Dash was not successfully imported. Make sure you don't have a file "
22
- "named \n 'dash.py' in your current directory." , file = _sys .stderr )
23
- _sys .exit (1 )
24
-
25
- # Must update to dash>=0.22.0 to use this version of dash-html-components
26
- if not hasattr (_dash .development .base_component , '_explicitize_args' ):
27
- print ("Please update the `dash` module to >= 0.22.0 to use this "
28
- "version of dash_html_components.\n "
29
- "You are using version {:s}" .format (_dash .version .__version__ ),
30
- file = _sys .stderr )
19
+ if not hasattr (_dash , '__plotly_dash' ) and not hasattr (_dash , 'development' ):
20
+ print ("Dash was not successfully imported. Make sure you don't have a file "
21
+ "named \n 'dash.py' in your current directory." , file = _sys .stderr )
31
22
_sys .exit (1 )
32
23
33
24
You can’t perform that action at this time.
0 commit comments