The branches attached seem to work, is it worth merging them in OCB ? ** Also affects: ocb-addons Importance: Undecided Status: New
** Also affects: ocb-server Importance: Undecided Status: New ** Also affects: ocb-server/7.0 Importance: Undecided Status: New ** Also affects: ocb-addons/7.0 Importance: Undecided Status: New -- You received this bug notification because you are a member of OpenERP Community Backports, which is subscribed to OpenERP Community Backports (Addons). https://bugs.launchpad.net/bugs/1256199 Title: [7.0] Ubuntu 13.10 Conflict with python package "resource" Status in OpenERP Community Backports (Addons): New Status in OpenERP Community Backports (Addons) 7.0 series: New Status in OpenERP Community Backports (Server): New Status in OpenERP Community Backports (Server) 7.0 series: New Status in OpenERP Addons (modules): Confirmed Status in OpenERP Server: New Bug description: Hello. RUn openerp 7.0 on Ubuntu 13.10. 2013-11-29 05:04:54,408 23539 WARNING ? openerp.modules.module: Ambiguous import: the OpenERP module `resource` is shadowed by another module (available at /usr/lib/python2.7/lib-dynload/resource.x86_64-linux-gnu.so). To import it, use `import openerp.addons.<module>.`. It only appear with "workers" I tried to patch with: === modified file 'resource/__init__.py' --- resource/__init__.py 2011-01-14 00:11:01 +0000 +++ resource/__init__.py 2013-11-29 05:04:23 +0000 @@ -19,8 +19,8 @@ # ############################################################################## -import resource -import faces +from . import resource +from . import faces # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === modified file 'resource/faces/__init__.py' --- resource/faces/__init__.py 2011-01-14 00:11:01 +0000 +++ resource/faces/__init__.py 2013-11-29 04:57:46 +0000 @@ -25,6 +25,6 @@ STRICT, SLOPPY, SMART, Multi, YearlyMax, WeeklyMax, MonthlyMax, \ DailyMax, VariableLoad -from resource import Resource +from .resource import Resource # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === modified file 'resource/faces/task.py' --- resource/faces/task.py 2013-05-14 14:28:37 +0000 +++ resource/faces/task.py 2013-11-29 05:04:52 +0000 @@ -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_long_term/project_long_term.py:25:from openerp.addons.resource.faces import task as Task ./resource/__init__.py:22:import resource ./resource/faces/task.py:36:import resource ./resource/faces/__init__.py:28:from resource import Resource ./project/project.py:32:from openerp.addons.resource.faces import task as Task ./project/project.py:455: result = "from openerp.addons.resource.faces import *\n" 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. To manage notifications about this bug go to: https://bugs.launchpad.net/ocb-addons/+bug/1256199/+subscriptions -- Mailing list: https://launchpad.net/~openerp-community-reviewer Post to : openerp-community-reviewer@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-community-reviewer More help : https://help.launchpad.net/ListHelp