You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/08/27 10:40:14 UTC
[GitHub] [incubator-superset] sandy-ha opened a new issue #8122: Export as
filter_box as CSV
sandy-ha opened a new issue #8122: Export as filter_box as CSV
URL: https://github.com/apache/incubator-superset/issues/8122
A clear and concise description of what the bug is.
### Expected results
an Export of corrent Filters as csv
### Actual results
I get the follow messeges
Sorry, something went wrong
500 - Internal Server Error
Stacktrace
Traceback (most recent call last):
File "/home/hgs/venv/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/home/hgs/venv/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/hgs/venv/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/hgs/venv/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
raise value
File "/home/hgs/venv/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "/home/hgs/venv/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/hgs/venv/lib/python3.6/site-packages/superset/models/core.py", line 1017, in wrapper
value = f(*args, **kwargs)
File "/home/hgs/venv/lib/python3.6/site-packages/flask_appbuilder/security/decorators.py", line 168, in wraps
return f(self, *args, **kwargs)
File "/home/hgs/venv/lib/python3.6/site-packages/superset/views/core.py", line 1246, in explore_json
samples=samples,
File "/home/hgs/venv/lib/python3.6/site-packages/superset/views/core.py", line 1134, in generate_json
viz_obj.get_csv(),
File "/home/hgs/venv/lib/python3.6/site-packages/superset/viz.py", line 481, in get_csv
include_index = not isinstance(df.index, pd.RangeIndex)
AttributeError: 'NoneType' object has no attribute 'index'
#### Screenshots
If applicable, add screenshots to help explain your problem.
#### How to reproduce the bug
1. Go to a Dashboard with filter_box
2. Click on expoart as csv
![image](https://user-images.githubusercontent.com/53593919/63755475-0c278e00-c8b7-11e9-9cda-d3df5e1a30d9.png)
### Environment
(please complete the following information):
- superset version: `0.28.1`
- python version: ` 3.6.8`
- node.js version: `v8.10.0`
- npm version: `3.5.2`
### Checklist
Make sure these boxes are checked before submitting your issue - thank you!
- [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [x] I have reproduced the issue with at least the latest released version of superset.
- [x] I have checked the issue tracker for the same issue and I have found one closed similar.
### Additional context
Add any other context about the problem here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org