← Back to team overview

openerp-india team mailing list archive

[Bug 799686] Re: With installation of python-image 1.1.7. adding a logo in company_rml warns that this pint cannot be performed

 

Can you please rested and give more information like the image format.
It seems to work here on python 2.7 sith 1.1.7-3ubuntu1.

** Changed in: openobject-server
   Importance: Undecided => Low

** Changed in: openobject-server
       Status: Triaged => Incomplete

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/799686

Title:
  With installation of python-image 1.1.7. adding a logo in company_rml
  warns that this pint cannot be performed

Status in OpenERP Server:
  Incomplete

Bug description:
  Installing Python-imaging on opensuse 11.4 (version 1.1.7 that comes with Pythin 2.7
  Creating any invoice in accounting menu (client and/or supplier)
  Validating this invoice
  Printing this invoices raises the following:

   Traceback (most recent call last):
     File "/usr/local/lib/python2.7/site-packages/openerp-server/service/web_services.py", line 724, in go
       (result, format) = obj.create(cr, uid, ids, datas, context)
     File "/usr/local/lib/python2.7/site-packages/openerp-server/report/report_sxw.py", line 428, in create
       fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
     File "/usr/local/lib/python2.7/site-packages/openerp-server/report/report_sxw.py", line 462, in create_source_pdf
       result = self.create_single_pdf(cr, uid, [obj.id], data, report_xml, context)
     File "/usr/local/lib/python2.7/site-packages/openerp-server/report/report_sxw.py", line 513, in create_single_pdf
       pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
     File "/usr/local/lib/python2.7/site-packages/openerp-server/report/interface.py", line 193, in create_pdf
       obj.render()
     File "/usr/local/lib/python2.7/site-packages/openerp-server/report/render/render.py", line 63, in render
       result = self._render()
     File "/usr/local/lib/python2.7/site-packages/openerp-server/report/render/rml.py", line 41, in _render
       return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
     File "/usr/local/lib/python2.7/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 971, in parseNode
       r.render(fp)
     File "/usr/local/lib/python2.7/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 303, in render
       pt_obj.render(el)
     File "/usr/local/lib/python2.7/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 951, in render
       self.doc_tmpl.build(fis)
     File "/usr/lib64/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 774, in build
       self.clean_hanging()
     File "/usr/lib64/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 412, in clean_hanging
       self.handle_flowable(self._hanging)
     File "/usr/lib64/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 659, in handle_flowable
       f.apply(self)
     File "/usr/lib64/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 118, in apply
       getattr(doc,arn)(*args)
     File "/usr/lib64/python2.7/site-packages/reportlab/platypus/doctemplate.py", line 437, in handle_pageBegin
       self.pageTemplate.onPage(self.canv,self)
     File "/usr/local/lib/python2.7/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 579, in render
       cnv.render(self.node)
     File "/usr/local/lib/python2.7/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 564, in render
       tags[n.tag](n)
     File "/usr/local/lib/python2.7/site-packages/openerp-server/report/render/rml2pdf/trml2pdf.py", line 497, in _image
       self.canvas.drawImage(img, **args)
     File "/usr/lib64/python2.7/site-packages/reportlab/pdfgen/canvas.py", line 673, in drawImage
       rawdata = image.getRGBData()
     File "/usr/lib64/python2.7/site-packages/reportlab/lib/utils.py", line 651, in getRGBData
       self._dataA = ImageReader(im.split()[3])
     File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 1497, in split
       if self.im.bands == 1:
  Exception: 'NoneType' object has no attribute 'bands'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/799686/+subscriptions