Problem to import module

Bug #1307967 reported by Franco Tampieri
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP - Human Resources

Bug Description


when i try to install one of your modules i get this error (this is an example):

 File "/home/zope/instances/staging-tvp/buildout/parts/openerp-hr/hr_employee_education/", line 22, in <module>
    from . import hr
ImportError: cannot import name hr

The problem is caused by the string in every file:

from . import hr

To correct the problem is easy, you can import the module directly:

import hr

This method is more generic and works on every kind of installation: buildout, package, etc. etc.

If you need help I can branch your module and made that correction.



Revision history for this message
Sandy Carter ( (sandy-carter) wrote :

What version of python are you running?

Revision history for this message
Franco Tampieri (dr.dran) wrote :

Hi Sandy!

I use the 2.7 python boundled with Ubuntu 12.04.3 LTS

But I tald with Pedro and he notice me that the problem was related specifically to the hr_employee_education

In particular in hr_employee_education/wizard/ at line 24


To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers