ebayerp_osv : 'module' object has no attribute 'external_osv'

Bug #995893 reported by Thomas Goetten
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenERP-USA Localization
New
Undecided
Unassigned

Bug Description

I tried to install the eBay module on a fresh install setup of openerp 6.1. Although everything is in place, the installation fails with the following message / error :

2012-05-07 11:04:56,718 3320 CRITICAL test openerp.modules.module: Couldn't load module eBay-Connector
2012-05-07 11:04:56,718 3320 CRITICAL test openerp.modules.module: 'module' object has no attribute 'external_osv'
2012-05-07 11:04:56,718 3320 ERROR test openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/pymodules/python2.6/openerp/addons/base/module/wizard/base_module_upgrade.py", line 101, in upgrade_module
    _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/usr/lib/pymodules/python2.6/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "/usr/lib/pymodules/python2.6/openerp/modules/registry.py", line 202, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/usr/lib/pymodules/python2.6/openerp/modules/loading.py", line 338, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
  File "/usr/lib/pymodules/python2.6/openerp/modules/loading.py", line 253, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
  File "/usr/lib/pymodules/python2.6/openerp/modules/loading.py", line 165, in load_module_graph
    load_openerp_module(package.name)
  File "/usr/lib/pymodules/python2.6/openerp/modules/module.py", line 409, in load_openerp_module
    __import__('openerp.addons.' + module_name)
  File "/usr/lib/pymodules/python2.6/openerp/modules/module.py", line 139, in load_module
    mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)
  File "/usr/src/extraextra-trunk/eBay-Connector/eBay-Connector/__init__.py", line 19, in <module>
    import category
  File "/usr/src/extraextra-trunk/eBay-Connector/eBay-Connector/category.py", line 23, in <module>
    import ebayerp_osv
  File "/usr/src/extraextra-trunk/eBay-Connector/eBay-Connector/ebayerp_osv.py", line 3168, in <module>
    class ebayerp_osv(external_osv.external_osv):
AttributeError: 'module' object has no attribute 'external_osv'
2012-05-07 11:04:56,721 3320 ERROR test openerp.netsvc: 'module' object has no attribute 'external_osv'
> /usr/src/extraextra-trunk/eBay-Connector/eBay-Connector/ebayerp_osv.py(3168)<module>()
-> class ebayerp_osv(external_osv.external_osv):
(Pdb)

is this a known problem? any hints to solve this issue? am i doint something wrong?

thomas

Revision history for this message
hex (hexerol) wrote :
Download full text (4.1 KiB)

i got this....

openerp 6.1 nightly build 05082012 ( demo and fresh data same issue) Debian Squeeze
* addons from lp:openobject-addons/6.1
* extra-addons from lp:openobject-addons/extra-trunk
-----------------------------------------------------------------------------------------------
Client Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 180, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1047, in call_button
    action = self.call_common(req, model, method, args, domain_id, context_id)
  File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 991, in call_common
    return self._call_kw(req, model, method, args, {})
  File "/usr/lib/pymodules/python2.6/openerp/addons/web/controllers/main.py", line 1005, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 250, in proxy
    args, kw)
  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 611, in send
    raise fault

Server Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/openerp/addons/web/common/http.py", line 592, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/usr/lib/pymodules/python2.6/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/pymodules/python2.6/openerp/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 167, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 164, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/lib/pymodules/python2.6/openerp/addons/base/module/module.py", line 361, in button_immediate_install
    db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/usr/lib/pymodules/python2.6/openerp/pooler.py", line 39, in restart_pool
    registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
  File "/usr/lib/pymodules/python2.6/openerp/modules/registry.py", line 202, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/usr/lib/pymodules/python2.6/openerp/modules/loading.py", line 338, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
  File "/usr/lib/pymodules/python2.6/openerp/modules/loading...

Read more...

Revision history for this message
Thomas Goetten (t-goetten) wrote :

hey hex,

since the error message is different, i don't think that we are facing the same problem.
as far as i can tell, this has something to do with importing sample data from csv file. look at the last two lines.

try to set up a new database with NO sample data and try the installation again...

thomas

Revision history for this message
hex (hexerol) wrote :

Before i got this error, i got same error with you and i used following repos.

* addons from lp:openobject-addons/6.1
* extra-addons from lp:openobject-addons/extra-trunk
* magentoerpconnect from lp:magentoerpconnect

hex (hexerol)
description: updated
Revision history for this message
NightHawk (nighthawk-nhdnet) wrote :

Same here...
I think that this module only works with 6.0
We have to wait to faisal to update it but he is missing ;)
It would be awesome that this module can work with same products from magentoerpconnect and prestashoperpconnect (description, images, etc)

Revision history for this message
Thomas Goetten (t-goetten) wrote :

@NightHawk
that's what i think too. i hope that faisal will bring this to 6.1 in the near future

Revision history for this message
Faisal (faisal-basar) wrote :

Thanks for your comments, we are working on making this work with 6.1. Will update the connector soon

Revision history for this message
leezan (nazeelp) wrote :

Getting similar error

Environment Information :
System : Windows-post2008Server-6.1.7601-SP1
OS Name : nt
Operating System Release : post2008Server
Operating System Version : 6.1.7601
Operating System Architecture : 32bit
Operating System Locale : en_US.cp1252
Python Version : 2.6.5
OpenERP-Client Version : 6.1.1
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\service\netrpc_server.py", line 64, in run
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\netsvc.py", line 360, in dispatch_rpc
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\service\web_services.py", line 586, in dispatch
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\osv\osv.py", line 121, in wrapper
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\osv\osv.py", line 176, in execute
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\osv\osv.py", line 164, in execute_cr
  File "C:\Program Files\OpenERP 6.1\Server\server\openerp\addons\base\module\wizard\base_module_upgrade.py", line 101, in upgrade_module
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\pooler.py", line 39, in restart_pool
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\modules\registry.py", line 202, in new
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\modules\loading.py", line 338, in load_modules
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\modules\loading.py", line 253, in load_marked_modules
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\modules\loading.py", line 165, in load_module_graph
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\modules\module.py", line 409, in load_openerp_module
  File "C:\Program Files\OpenERP 6.1\Server\server\.\openerp\modules\module.py", line 139, in load_module
  File "C:\Program Files\OpenERP 6.1\Server\server\openerp\addons\eBay-Connector\__init__.py", line 19, in <module>
  File "C:\Program Files\OpenERP 6.1\Server\server\openerp\addons\eBay-Connector\category.py", line 23, in <module>
  File "C:\Program Files\OpenERP 6.1\Server\server\openerp\addons\eBay-Connector\ebayerp_osv.py", line 3168, in <module>
AttributeError: 'module' object has no attribute 'external_osv'

Revision history for this message
Faisal (faisal-basar) wrote :

Hi,

Sorry we have not been able to update the connector 6.1 yet, will update as soon as we are done with it.

Revision history for this message
Ibo (ibo-s) wrote :

Hi,

Thanks for the great work.
Will the update come in 2012 ?

Revision history for this message
David (dhecar) wrote :

HI, is this module ported to 6.1?

Revision history for this message
D.P. Hicks (dphicks) wrote : Re: [Bug 995893] Re: ebayerp_osv : 'module' object has no attribute 'external_osv'
Download full text (4.1 KiB)

David,

The eBay connector has not been ported based on my knowledge.

NPG has ported the Amazon Connector and right now are testing. I can let
you know when I've completed the testing. Should be within the next 2
weeks.

DP

On Mon, Nov 11, 2013 at 11:48 AM, David <email address hidden> wrote:

> HI, is this module ported to 6.1?
>
> --
> You received this bug notification because you are a member of US
> Localization Team, which is subscribed to OpenERP-USA Localization.
> https://bugs.launchpad.net/bugs/995893
>
> Title:
> ebayerp_osv : 'module' object has no attribute 'external_osv'
>
> Status in OpenERP - US Localization:
> New
>
> Bug description:
> I tried to install the eBay module on a fresh install setup of openerp
> 6.1. Although everything is in place, the installation fails with the
> following message / error :
>
> 2012-05-07 11:04:56,718 3320 CRITICAL test openerp.modules.module:
> Couldn't load module eBay-Connector
> 2012-05-07 11:04:56,718 3320 CRITICAL test openerp.modules.module:
> 'module' object has no attribute 'external_osv'
> 2012-05-07 11:04:56,718 3320 ERROR test openerp.osv.osv: Uncaught
> exception
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 121, in
> wrapper
> return f(self, dbname, *args, **kwargs)
> File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 176, in
> execute
> res = self.execute_cr(cr, uid, obj, method, *args, **kw)
> File "/usr/lib/pymodules/python2.6/openerp/osv/osv.py", line 164, in
> execute_cr
> return getattr(object, method)(cr, uid, *args, **kw)
> File
> "/usr/lib/pymodules/python2.6/openerp/addons/base/module/wizard/base_module_upgrade.py",
> line 101, in upgrade_module
> _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
> File "/usr/lib/pymodules/python2.6/openerp/pooler.py", line 39, in
> restart_pool
> registry = RegistryManager.new(db_name, force_demo, status,
> update_module, True)
> File "/usr/lib/pymodules/python2.6/openerp/modules/registry.py", line
> 202, in new
> openerp.modules.load_modules(registry.db, force_demo, status,
> update_module)
> File "/usr/lib/pymodules/python2.6/openerp/modules/loading.py", line
> 338, in load_modules
> processed = load_marked_modules(cr, graph, states_to_load, force,
> status, report, loaded_modules)
> File "/usr/lib/pymodules/python2.6/openerp/modules/loading.py", line
> 253, in load_marked_modules
> loaded, processed = load_module_graph(cr, graph, progressdict,
> report=report, skip_modules=loaded_modules)
> File "/usr/lib/pymodules/python2.6/openerp/modules/loading.py", line
> 165, in load_module_graph
> load_openerp_module(package.name)
> File "/usr/lib/pymodules/python2.6/openerp/modules/module.py", line
> 409, in load_openerp_module
> __import__('openerp.addons.' + module_name)
> File "/usr/lib/pymodules/python2.6/openerp/modules/module.py", line
> 139, in load_module
> mod = imp.load_module('openerp.addons.' + module_part, f, path,
> descr)
> File
> "/usr/src/extraextra-trunk/eBay-Connector/eBay-Connector/__init__.py", line
> 19, in <modul...

Read more...

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.