Module Gengo : Global name "Gengo" is not defined

Monoyer Fabian


I have a problem with module "gengo" when I try translate some thing.

I have an error :( , can someone explain how I can solve this problem?

Thank you

Log :

File "/.../odoo-8.0/openerp/http.py", line 300, in checked_call
return self.endpoint(*a, **kw)
File "/...odoo-8.0/openerp/http.py", line 796, in __call__
return self.method(*args, **kw)
File "/.../odoo-8.0/openerp/http.py", line 396, in response_wrap
response = f(*args, **kw)
File "/.../odoo-8.0/openerp/addons/web/controllers/main.py", line 939, in call_button
action = self._call_kw(model, method, args, {})
File "/.../odoo-8.0/openerp/addons/web/controllers/main.py", line 927, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/.../odoo-8.0/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/.../odoo-8.0/openerp/addons/base_gengo/wizard/base_gengo_translations.py", line 102, in act_update
raise osv.except_osv(_('Gengo Authentication Error'), gengo)
except_orm: (u"Erreur d'authentification Gengo", u"La connexion Gengo a \xe9chou\xe9 avec le message:\n``global name 'Gengo' is not defined``")

1 Відповідь
Найкраща відповідь


You need to install third party Gengo package, prior to install this module. Odoo doesn't includes gengo package into it's default list of packages. 

Below are the steps to install this package. Here I am guessing you are using Ubuntu OS.

Installing this library using pip is very simple:

pip install gengo (if pip command will not work then first install pip package by command sudo apt-get install python-pip)

Otherwise, you can install from source by getting the repo:

git clone git://github.com/gengo/gengo-python.git

And then installing the library:

python setup.py install

This will also install the `requests` package. If you're running on a version of Python prior to 2.6, you'll need to install simplejson as well:

pip install simplejson

Once after installation of these necessary packages, restart your Odoo server. I am sure you won't face same problem again.