OpenERP Prestashop Synchronization

install error

Reported by Francesc Casas on 2012-03-26
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenERP Prestashop Sync
Undecided
Unassigned

Bug Description

Hi,
as you suggested on another bug resolution, we have download the full addon version from:

https://bitbucket.org/techreceptives/openerp_prestashop_sync/overview

But when we try to install it we are getting this on screen error:

"Unable to install module "openerp_prestashop_sync" because an external dependency is not met: No module named requests"

We review the dependencies inside the module description and everything seem to be on place:

product installed
base installed
delivery installed
board installed
account_voucher installed
sale installed

This is the error from the server log:

"....
[2012-03-26 11:25:05,815][openerp] DEBUG:addons:The module training_group does not contain a description file:__openerp__.py or __terp__.py (deprecated)
[2012-03-26 11:25:05,857][openerp] DEBUG:addons:The module smsclient does not contain a description file:__openerp__.py or __terp__.py (deprecated)
[2012-03-26 11:25:05,901][openerp] DEBUG:translate:no translation language detected, skipping translation for "'Unable to upgrade module "%s" because an external dependency is not met: %s'"
[2012-03-26 11:25:05,901][openerp] DEBUG:translate:no translation language detected, skipping translation for "'Error'"
[2012-03-26 11:25:05,901][openerp] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
  File "service\netrpc_server.pyo", line 70, in run
  File "netsvc.pyo", line 499, in dispatch
OpenERPDispatcherException
..."

We are using OpenERP version 6.0.3.

Could you please help us? Thank you in advanced!

Babacar DIENE (sakababs89) wrote :

You have download request library on http://pypi.python.org/pypi/requests#downloads after you put it on your addons et normally it's ok.
Me I have another another probléme

Traceback (most recent call last):
  File "netsvc.pyo", line 489, in dispatch
  File "service\web_services.pyo", line 599, in dispatch
  File "osv\osv.pyo", line 122, in wrapper
  File "osv\osv.pyo", line 176, in execute
  File "osv\osv.pyo", line 167, in execute_cr
  File "C:\Program Files\OpenERP 6.0\Server\addons\base\module\wizard\base_module_upgrade.py", line 98, in upgrade_module
  File "pooler.pyo", line 60, in restart_pool
  File "pooler.pyo", line 39, in get_db_and_pool
  File "addons\__init__.pyo", line 883, in load_modules
  File "addons\__init__.pyo", line 716, in load_module_graph
  File "addons\__init__.pyo", line 450, in register_class
  File "C:\Program Files\OpenERP 6.0\Server\addons\openerp_prestashop_sync\__init__.py", line 22, in <module>
  File "C:\Program Files\OpenERP 6.0\Server\addons\openerp_prestashop_sync\prestashop_osv.py", line 136
    except Exception as e:
                      ^
SyntaxError: invalid syntax

If you can help me

Francesc Casas (fcasas) wrote :

What version of Python are you using? Becouse I think that the exception handeling changed between diffrent versions.
Maybe this link could help as a reference:
http://stackoverflow.com/questions/4458755/get-exception-type-in-python-1-5-2

Francesc Casas (fcasas) wrote :

Hi Babacar,
as you suggested we have downloaded the requests module and copy it to the addons folder.
Now we are able to add the module for installation, what was impossible before, but when we try to run the installation we are getting error parsing an XML file.

On screen error:

"Error occurred while validating the field(s) res_model,src_model: Invalid model name in the action definition."

Log error:

[2012-03-28 18:36:47,266][openerp] ERROR:tools.convert.xml_import:Parse error in file:///C:/Program%20Files/OpenERP%206.0/Server/addons/openerp_prestashop_sync/product/tag/tag_view.xml:30:
<record id="prestashop_tag_act_window" model="ir.actions.act_window">
     <field name="name">Prestashop Tags</field>
     <field name="type">ir.actions.act_window</field>
     <field name="res_model">prestashop.tag</field>
     <field name="view_type">form</field>
 </record>
Traceback (most recent call last):
  File "tools\convert.pyo", line 865, in parse
  File "tools\convert.pyo", line 832, in _tag_record
  File "C:\Program Files\OpenERP 6.0\Server\addons\base\ir\ir_model.py", line 691, in _update
  File "osv\orm.pyo", line 3688, in create
  File "osv\orm.pyo", line 946, in _validate
except_orm: ('ValidateError', 'Error occurred while validating the field(s) res_model,src_model: Invalid model name in the action definition.')
[2012-03-28 18:36:47,266][openerp] DEBUG:web-services:netrpc: rpc-dispatching exception
Traceback (most recent call last):
  File "service\netrpc_server.pyo", line 70, in run
  File "netsvc.pyo", line 499, in dispatch
OpenERPDispatcherException

Could you please help with this?

Thank you again!

unable to reproduce the bug on my side, with openerp v6.0

addons revno : 5177
server revno : 3610
web revno : 4801

Cheers,
Team Tech Receptives

Thordan (tdan) wrote :

We are getting the same installation error when installing Prestasync module on OpenERP 6.1.1:

"Unable to install module "openerp_prestashop_sync" because an external dependency is not met: No module named requests"

All the dependencies inside the module description are meet. Latest sync module form https://bitbucket.org/techreceptives/openerp_prestashop_sync/overview downloaded.

Anybody figured out the problem and can help - thanks so much.

Hi Thordan (tdan),

If you are using any linux distribution then you can easily install dependent python library by doing :

easy_install requests

this will install a python package named "requests".

Cheers,
Team Tech-Receptives

Thordan (tdan) wrote :

Thanks much for getting back so quick. We are using OpenERP All-in-One install on Windows Server 2008...???

Changed in openerp-prestashop-sync:
status: New → Won't Fix
zu (zuhayr008) wrote :

hello guys ,im having the same problems ,ValidateError', 'Error occurred while validating the field(s) res_model,src_model: Invalid model name in the action definition.')

Anyone been able to find a solution for ,
plz help out

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

Other bug subscribers