Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

AttributeError: 'tuple' object has no attribute 'content'

By
kristian
on 12/4/13, 1:11 AM 1,862 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?

1

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3883
| 5 3 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 8/26/15, 12:12 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 12/4/13, 1:11 AM
Seen: 1862 times
Last updated: 8/26/15, 12:13 PM