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

Error: no such option: --console-log #7389

Closed
3 tasks done
rjurney opened this issue Apr 26, 2019 · 9 comments
Closed
3 tasks done

Error: no such option: --console-log #7389

rjurney opened this issue Apr 26, 2019 · 9 comments
Labels
!deprecated-label:bug Deprecated label - Use #bug instead

Comments

@rjurney
Copy link
Contributor

rjurney commented Apr 26, 2019

On branch release--0.31 using the --console-log option flag with superset or flask run fails with the error: Error: no such option: --console-log.

The docs mention interaction with --debug/--debugger so I tried a variety of combinations of flags and all resulted in the same error listed above:

superset run -h 0.0.0.0 -p 8088 --with-threads --reload --debugger --console-log
superset run -h 0.0.0.0 -p 8088 --with-threads --reload --debugger --console-log --debug
superset run --console-log --debug
FLASK_DEBUG=1 superset run --console-log --debug
FLASK_DEBUG=1 flask run -p 8088 --with-threads --reload --debugger --console-log
FLASK_DEBUG=1 flask run -p 8088 --with-threads --reload --debugger --console-log --debug
FLASK_DEBUG=1 flask run -p 8088 --console-log
FLASK_DEBUG=1 flask run -p 8088 --console-log --debugger
FLASK_DEBUG=1 flask run -p 8088 --console-log --debug
flask run --console-log --debug
flask run --console-log

Expected results

Something roughly like:

 * Serving Flask app "superset:app" (lazy loading)
 * Environment: development
 * Debug mode: on
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 303-869-439

Actual results

Error: no such option: --console-log

How to reproduce the bug

  1. Create a virtualenv for superset and activate it
  2. Install the requirements in requirements.txt, requirements-dev.txt and docs/requirements.txt
  3. Run: superset run --console-log --debug or flask run --console-log --debug
  4. See error

Environment

  • superset version: [e.g. release--0.31 700cbf4f]
  • python version: Anaconda Python 3.6.7 :: Anaconda custom (64-bit)
  • node.js version: v11.14.0
  • npm version: 6.9.0

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

Additional context

This bug also appeared on Mac OS X 10.14.4/homebrew Python 3.7.3/Anaconda 3.6.7

@issue-label-bot issue-label-bot bot added the !deprecated-label:bug Deprecated label - Use #bug instead label Apr 26, 2019
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.90. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@MarcusSorealheis
Copy link
Contributor

I have seen this issue a few times as well.

@rjurney
Copy link
Contributor Author

rjurney commented May 1, 2019

Pull #7421 addresses this problem by removing runserver and --console-log until they are fixed to work with flask run now that superset runserver has been deprecated.

@betodealmeida Can you check this out and comment on whether or not you want to maintain this or let it drop from the project?

@MarcusSorealheis
Copy link
Contributor

@rjurney Is the reason we cannot fix it to work with flask run?
That's a more constructive pull request in my view.

@rjurney
Copy link
Contributor Author

rjurney commented May 3, 2019

@MarcusSorealheis That's what I'm hoping will happen but in lieu of that, there is PR #7421

@MarcusSorealheis
Copy link
Contributor

@rjurney I'm going to see if I can get it to work

@rjurney
Copy link
Contributor Author

rjurney commented May 4, 2019

@MarcusSorealheis Check out #7428

@MarcusSorealheis
Copy link
Contributor

MarcusSorealheis commented May 20, 2019

can we close this one @rjurney?

@rjurney
Copy link
Contributor Author

rjurney commented May 21, 2019

Yup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead
Projects
None yet
Development

No branches or pull requests

3 participants