You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've started sometimes getting errors about the config module's get_for_repo function, specifically errors that say it doesn't exist: AttributeError: 'module' object has no attribute 'get_for_repo'
Deleting app/config.pyc (i.e., the "compiled" version of the file) resolves the problem, but only temporarily. This has been affecting Travis too (some of those failures are legit, but at the end they all start failing with this error about the config module).
I suspect this might be related to the stuff we've seen earlier from pylint about config imports being out of order (pylint seems convinced config is a "standard import" rather than our own module).
The text was updated successfully, but these errors were encountered:
Bizarrely, this is resolved by using the full name of our captcha module when importing it from utils.py (PR #645) (I'd initially overlooked them because there were so many config module errors, but the earliest errors to surface are about the captcha import, and fixing that also resolves the problems with the config module). I'll leave this open until I understand what happened here, but I think this might be a reason to consider bumping the priority of issue #626 (moving out of the global namespace), especially for modules with higher risk of name collision.
I've started sometimes getting errors about the config module's
get_for_repo
function, specifically errors that say it doesn't exist:AttributeError: 'module' object has no attribute 'get_for_repo'
Deleting
app/config.pyc
(i.e., the "compiled" version of the file) resolves the problem, but only temporarily. This has been affecting Travis too (some of those failures are legit, but at the end they all start failing with this error about the config module).I suspect this might be related to the stuff we've seen earlier from pylint about config imports being out of order (pylint seems convinced config is a "standard import" rather than our own module).
The text was updated successfully, but these errors were encountered: