Problem to import module
Bug #1307967 reported by
Franco Tampieri
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP - Human Resources |
New
|
Undecided
|
Unassigned |
Bug Description
Hi!
when i try to install one of your modules i get this error (this is an example):
File "/home/
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
To post a comment you must log in.
What version of python are you running?