Skip to Content
Menu
This question has been flagged
2 Replies
14760 Views

This is an error the connector is giving me when i try to import products:

Import a record from Prestashop
UUID
b6bc9a6c-733e-4417-8fa5-64a675f9a5c5
Task
openerp.addons.prestashoperpconnect.unit.import_synchronizer.import_record('prestashop.product.product', 1, 1)
Priority
10
 Execute only after
 User ID
 Administrator
  Created Date
 29/11/2013 12:53:36
  Enqueue Time
   29/11/2013 12:54:28
   Start Date
   29/11/2013 12:54:43
  Date Done
  Worker
  Current try / max. retries 1 / 5 If the max. retries is 0, the number of retries is infinite.
  Exception Information
 Traceback (most recent call last):
 File "/usr/prestaconnect/openerp-connector/connector/queue/worker.py", line 122, in run_job
job.perform(session)
 File "/usr/prestaconnect/openerp-connector/connector/queue/job.py", line 460, in perform
self.result = self.func(session, *self.args, **self.kwargs)
  File "/usr/prestaconnect/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 671, in import_record
importer.run(prestashop_id)
  File "/usr/prestaconnect/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 553, in run
super(ProductRecordImport, self).run(prestashop_id)
  File "/usr/prestaconnect/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 481, in run
erp_id
  File "/usr/prestaconnect/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 489, in _run_record
self.mapper.convert(prestashop_record)
 File "/usr/prestaconnect/openerp-connector/connector/unit/mapper.py", line 216, in convert
self._convert(record, fields=fields)
 File "/usr/prestaconnect/openerp-connector/connector/unit/mapper.py", line 172, in _convert
values = meth(record)
 File "/usr/prestaconnect/prestashoperpconnect/prestashoperpconnect/product.py", line 218, in image
record['id_default_image']['value'])
 File "/usr/prestaconnect/prestashoperpconnect/prestashoperpconnect/unit/backend_adapter.py", line 232, in read
options=options
 File "/usr/prestaconnect/prestashoperpconnect/prestashoperpconnect/unit/backend_adapter.py", line 50, in get_image
image_content = base64.b64encode(response.content)
 AttributeError: 'tuple' object has no attribute 'content'

I can't even debug it on pdb because of all the imports the module needs, so obviously throws more errors if i comment the openerp imports when debugging, so, any clue about this?

Avatar
Discard
Related Posts Replies Views Activity
2
Mar 24
26039
8
Dec 23
20714
1
Mar 15
3603
3
Mar 15
7254
0
Mar 15
4705