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
Flask won't start in the Python 3.4 debugger #1437
Comments
Does it work on normal Python 3? (without PDB?) |
It works on python3.4 without pdb. I'm not sure if it relates to #1011, though I'd guess so (it seems to be a very similar error in the same location). |
Yes, it is related to #1011 but not the same. On python3.4, the AttributeError doesn't get as far as helper.py:664 and it's necessary to catch ImportError instead. ie: root_mod_name = import_name.split('.')[0]
try:
loader = pkgutil.get_loader(root_mod_name)
except (AttributeError, ImportError):
loader = None |
Works fine on python 3.5.2 and 3.4.6 with pdb3 |
Test code:
Run like this:
Is there a workaround for this?
The text was updated successfully, but these errors were encountered: