[7.0] Ubuntu 13.10 Conflict with python package "resource"
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Undecided
|
OpenERP Publisher's Warranty Team | |||
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned | |||
OpenERP Community Backports (Addons) | Status tracked in 7.0 | |||||
7.0 |
New
|
Undecided
|
Unassigned | |||
OpenERP Community Backports (Server) | Status tracked in 7.0 | |||||
7.0 |
New
|
Undecided
|
Unassigned |
Bug Description
Hello.
RUn openerp 7.0 on Ubuntu 13.10.
2013-11-29 05:04:54,408 23539 WARNING ? openerp.
Ambiguous import: the OpenERP module `resource` is shadowed by another
module (available at /usr/lib/
To import it, use `import openerp.
It only appear with "workers"
I tried to patch with:
=== modified file 'resource/
--- resource/
+++ resource/
@@ -19,8 +19,8 @@
#
######
-import resource
-import faces
+from . import resource
+from . import faces
# vim:expandtab:
=== modified file 'resource/
--- resource/
+++ resource/
@@ -25,6 +25,6 @@
STRICT, SLOPPY, SMART, Multi, YearlyMax, WeeklyMax, MonthlyMax, \
DailyMax, VariableLoad
-from resource import Resource
+from .resource import Resource
# vim:expandtab:
=== modified file 'resource/
--- resource/
+++ resource/
@@ -33,7 +33,7 @@
#@<< Imports >>
#@+node:<< Imports >>
import pcalendar
-import resource
+from . import resource
import types
import sys
import datetime
But the message still appear.
I made an rgrep on addons and "resource" is only there:
./project_
./resource/
./resource/
./resource/
./project/
./project/
The module: resource/ should be called in a more particular way (for v8.0) but for this version it is really painfull have this kind of warnings in an stable version I think.
It is not happening in Trunk.
Related branches
- Lionel Sausin - Initiatives/Numérigraphe (community): Needs Information
- OpenERP Core Team: Pending requested
-
Diff: 45 lines (+11/-2)2 files modifiedopenerp/service/workers.py (+2/-1)
openerp/tools/misc.py (+9/-1)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | New → Confirmed |
FYI:
"resource" is an official python package.
http:// docs.python. org/library/ resource
Regards.