Problem to import module

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

Bug Description

Hi!

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/__init__.py", line 22, in <module>
    from . import hr
ImportError: cannot import name hr

The problem is caused by the string in every __init__.py 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.

Regards

Franco

Revision history for this message
Sandy Carter (http://www.savoirfairelinux.com) (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/hr_employee_by_department.py at line 24

from openerp.addons.hr_employee_education.hr import EDUCATION_SELECTION

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

Other bug subscribers