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

get_viz viz_obj = viz.viz_types[viz_type](↵KeyError: 'yh_color_table'↵") #12732

Closed
lcyh opened this issue Jan 25, 2021 · 2 comments
Closed
Labels
need:more-info Requires more information from author

Comments

@lcyh
Copy link

lcyh commented Jan 25, 2021

A clear and concise description of what the bug is.

I customized a component yh_color_table,but it was wrong,I don't know what's wrong?
error: "'yh_color_table'"
stacktrace: "Traceback (most recent call last):↵ File "/data/app/superset-web/superset/views/base.py", line 135, in wraps↵ return f(self, *args, **kwargs)↵ File "/data/app/superset-web/superset/utils/decorators.py", line 63, in wrapper↵ check_perms(*args, **kwargs)↵ File "/data/app/superset-web/superset/views/core.py", line 125, in check_datasource_perms↵ force=False,↵ File "/data/app/superset-web/superset/views/utils.py", line 120, in get_viz↵ viz_obj = viz.viz_types[viz_type](↵KeyError: 'yh_color_table'↵")

Ping gave me some suggestions on how to create a custom component?

Environment

superset --version
Python 3.7.8
Flask 1.1.2
Werkzeug 0.16.0

@lcyh lcyh added the #bug Bug report label Jan 25, 2021
@junlincc junlincc added need:more-info Requires more information from author and removed #bug Bug report labels Jan 25, 2021
@junlincc
Copy link
Member

do you mind updating the title to be more human readable? did you build it using dynamically imported viz plugins? @lcyh

@lcyh
Copy link
Author

lcyh commented Dec 25, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need:more-info Requires more information from author
Projects
None yet
Development

No branches or pull requests

3 participants