-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[BUG] dash.testing TypeError #2183
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
@martinschorb Did you install with |
|
is the |
@martinschorb Yes it is always required for the testing utilities, what is happening here is the imports failed and we put the types to |
The error message is confusing, perhaps we can set the type with a name more recognizable in case of this error? |
OK, that makes sense.
In fact, it seems that square brackets are not interpreted as optional packages by conda (conda/conda#2984) or instead determine package dependencies (conda/conda#7502). In addition, "The Dash testing is now part of the main Dash package." stated on the main page lead me to thinking that it was already installed. Is there a way to install dash testing through conda? Probably the documentation could be more clear that currently |
Hmph, no, conda doesn't appear to support extras (to be clear, these aren't optional parts of our dash itself, they're optional dependencies. One suggested solution is to make a metapackage that installs the extras alongside the main package. Unfortunately dash has five different extras defined so in principle to make this work in Conda we'd either need 32 packages to cover all possible flavors of which extras to install, or make five additional packages that each just install one set of extras. Meantime just to get the dash fixtures working you can explicitly include all the packages listed here: https://github.com/plotly/dash/blob/dev/requires-testing.txt |
Dear all,
I tried to run the example test from https://dash.plotly.com/testing. When executing
pytest -k bsly001
, I run into:pip list
:typing
to v.3 does not helpSimilar Errors seem to be due to some wrong type definitions in functions. It points here:
dash/dash/testing/plugin.py
Line 108 in e746bdb
The text was updated successfully, but these errors were encountered: