AttributeError: 'TranslatorFactory' object has no attribute 'contextual_form'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.i18n |
Fix Released
|
Undecided
|
ChangBo Guo(gcb) | ||
oslo.service |
Fix Released
|
Undecided
|
ChangBo Guo(gcb) |
Bug Description
I was testing oslo.service
__author__ = 'saad'
from oslo_service import service
from oslo_config import cfg
CONF = cfg.CONF
class SaadService(
def start(self):
pass
def stop(self):
pass
def wait(self):
pass
def reset(self):
pass
launcher = service.
and I got the following error:
Traceback (most recent call last):
File "testsrv.py", line 4, in <module>
from oslo_service import service
File "/home/
from oslo_service import eventlet_backdoor
File "/home/
from oslo_service._i18n import _LI
File "/home/
_C = _translators.
AttributeError: 'TranslatorFactory' object has no attribute 'contextual_form'
The root cause is we add two new method in oslo.i18n in https:/ /github. com/openstack/ oslo.i18n/ commit/ 9e3132bc2f06da8 7b5c78257a267c5 431f433e74 . need bump oslo.i18n version to fix this issue.