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

UnboundLocalError when trying to add a new slice for the first time. #1795

Closed
3 tasks done
rfilmyer opened this issue Dec 7, 2016 · 4 comments
Closed
3 tasks done
Labels
change:backend Requires changing the backend !deprecated-label:bug Deprecated label - Use #bug instead

Comments

@rfilmyer
Copy link

rfilmyer commented Dec 7, 2016

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 any
  • I have reproduced the issue with at least the latest released version of superset (at least the newest version from pip)
  • I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.14.1

Expected results

I should see a page where I can add new slices.

Actual results

A 500 error and this stacktrace:

2016-12-07 15:30:30,701:ERROR:superset:Exception on /slicemodelview/add [GET]
Traceback (most recent call last):
  File "/Users/roger/projects/superset/lib/python3.5/site-packages/flask/app.py", line 1988, in wsgi_app
    response = self.full_dispatch_request()
  File "/Users/roger/projects/superset/lib/python3.5/site-packages/flask/app.py", line 1641, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/Users/roger/projects/superset/lib/python3.5/site-packages/flask/app.py", line 1544, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/Users/roger/projects/superset/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/Users/roger/projects/superset/lib/python3.5/site-packages/flask/app.py", line 1639, in full_dispatch_request
    rv = self.dispatch_request()
  File "/Users/roger/projects/superset/lib/python3.5/site-packages/flask/app.py", line 1625, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/Users/roger/projects/superset/lib/python3.5/site-packages/flask_appbuilder/security/decorators.py", line 26, in wraps
    return f(self, *args, **kwargs)
  File "/Users/roger/projects/superset/lib/python3.5/site-packages/superset/views.py", line 858, in add
    redirect_url = "/r/msg/?url={}&msg={}".format(url, msg)

which points to this line of code.

Steps to reproduce

  • Go to the "slices" tab.
  • Click the + (Add a new record) button
  • 500 error.

I have basically just installed superset from scratch. I only have one database, a Redshift (via postgres/psycopg2) database where I can see tables and columns in the SQL lab.

@xrmx
Copy link
Contributor

xrmx commented Dec 8, 2016

Indeed, code looks broken, thanks for reporting.

@xrmx xrmx added the !deprecated-label:bug Deprecated label - Use #bug instead label Dec 8, 2016
@bkyryliuk
Copy link
Member

hm, broken on master :(

@bkyryliuk bkyryliuk added this to the Kyoto Sprint 2016-12-23 milestone Dec 9, 2016
@bkyryliuk bkyryliuk added the change:backend Requires changing the backend label Dec 9, 2016
@pgp44
Copy link

pgp44 commented Feb 21, 2017

Is there a workaround for this?

Tx

Peter

@xrmx
Copy link
Contributor

xrmx commented Apr 6, 2017

Dup of #2564, will be fixed by #2565

@xrmx xrmx closed this as completed Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:backend Requires changing the backend !deprecated-label:bug Deprecated label - Use #bug instead
Projects
None yet
Development

No branches or pull requests

4 participants