Can't get app context with BPython
ezequielo opened this issue · 4 comments
Seems like when using BPython and the flask-script shell, flask-script is not able to get the app context and therefore I need to create it. It's strange because if I uninstall BPython from my virtualenv and install IPython it works perfectly
Have a look to this stackoverflow question
FYI--I only have time for basic maintenance mode on this right now (we just had a baby), and the project owner is pretty much absent right now. If you're able to track down the root cause here and submit a PR, I'd be more than happy to review. But otherwise this is unlikely to get fixed in the near future.
It's not a flask-script bug, should be bpython's bug.
it's because the bpython also use greenlet, that conflict with the werkzeug's Local
, so it'll failed to take the start the bpython.
Seems another import type can fix this problem,
see pr #165