-
Notifications
You must be signed in to change notification settings - Fork 85
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
AttributeError: type object 'NullTranslations' has no attribute '_instance' #21
Comments
Thanks for your report. I’m investigating the issue. |
Ubuntu 16.04, python 3.5.2
|
It took a while but I can reproduce the issue now. I had to install Python v3.5 since this never happens with v3.6. It also only happens when running the ZIP package (instead of unpackaged source code files). I understand how it happens but not why. |
Thanks. Using the source is a good work around. I downloaded the source, followed the README.md and it worked perfectly using v3.5.2 |
I think this is a bug in (Ubuntu’s) Python v3.5: In the class I worked around the issue with a regular instance method instead of a property and will push an update soon. |
I think this is a bug in (Ubuntu’s) Python v3.5: In the class LazyInstance, _instance is a (known) @Property. Known attributes are not supposed to be accessed via the __getattr__ special method. Nonetheless, the attribute (property) access to self._instance triggers a call to self.__getattr__('_instance'). Weird. Even weirder that this only happens from within the ZIP code archive. I worked around the issue with a regular instance method instead of a property.
I think this is a bug in (Ubuntu’s) Python v3.5: In the class LazyInstance, _instance is a (known) @Property. Known attributes are not supposed to be accessed via the __getattr__ special method. Nonetheless, the attribute (property) access to self._instance triggers a call to self.__getattr__('_instance'). Weird. Even weirder that this only happens from within the ZIP code archive. I worked around the issue with a regular instance method instead of a property.
Here is the output I get. I'm on Ubuntu 16.04 and am using the built in python3.5.
The text was updated successfully, but these errors were encountered: