Still no good :/

apt-get install python-imaging
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libjpeg62 liblcms1
Suggested packages:
  liblcms-utils python-imaging-doc python-imaging-dbg
The following NEW packages will be installed
  libjpeg62 liblcms1 python-imaging
0 upgraded, 3 newly installed, 0 to remove and 21 not upgraded.
Need to get 629 kB of archives.
After this operation, 2,118 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://gb.archive.ubuntu.com/ubuntu/ natty/main libjpeg62 amd64 
6b1-1ubuntu1 [88.5 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu/ natty/main liblcms1 amd64 
1.18.dfsg-1.2ubuntu1 [105 kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu/ natty/main python-imaging amd64 
1.1.7-2build2 [435 kB]
Fetched 629 kB in 0s (1,133 kB/s)   
Selecting previously deselected package libjpeg62.
(Reading database ... 62366 files and directories currently installed.)
Unpacking libjpeg62 (from .../libjpeg62_6b1-1ubuntu1_amd64.deb) ...
Selecting previously deselected package liblcms1.
Unpacking liblcms1 (from .../liblcms1_1.18.dfsg-1.2ubuntu1_amd64.deb) ...
Selecting previously deselected package python-imaging.
Unpacking python-imaging (from .../python-imaging_1.1.7-2build2_amd64.deb) ...
Setting up libjpeg62 (6b1-1ubuntu1) ...
Setting up liblcms1 (1.18.dfsg-1.2ubuntu1) ...
Setting up python-imaging (1.1.7-2build2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

baruwa-admin  sendpdfreports
=================== Processing reports ======================
Traceback (most recent call last):
  File "/usr/bin/baruwa-admin", line 11, in <module>
    execute_manager(settings)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/core/management/__init__.py",
 line 438, in execute_manager
    utility.execute()
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/core/management/__init__.py",
 line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/core/management/base.py",
 line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/Django-1.3-py2.7.egg/django/core/management/base.py",
 line 220, in execute
    output = self.handle(*args, **options)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/baruwa-1.1.0-py2.7.egg/baruwa/reports/management/commands/sendpdfreports.py",
 line 387, in handle
    pdf = build_pdf(parts)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/baruwa-1.1.0-py2.7.egg/baruwa/reports/management/commands/sendpdfreports.py",
 line 334, in build_pdf
    doc.build(parts)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/platypus/doctemplate.py",
 line 1117, in build
    BaseDocTemplate.build(self,flowables, canvasmaker=canvasmaker)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/platypus/doctemplate.py",
 line 880, in build
    self.handle_flowable(flowables)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/platypus/doctemplate.py",
 line 763, in handle_flowable
    if frame.add(f, canv, trySplit=self.allowSplitting):
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/platypus/frames.py",
 line 159, in _add
    w, h = flowable.wrap(aW, h)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/platypus/tables.py",
 line 1113, in wrap
    self._calc(availWidth, availHeight)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/platypus/tables.py",
 line 587, in _calc
    self._calc_height(availHeight,availWidth,W=W)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/platypus/tables.py",
 line 525, in _calc_height
    dW,t = self._listCellGeom(v,w or self._listValueWidth(v),s)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/platypus/tables.py",
 line 377, in _listCellGeom
    vw, vh = v.wrapOn(canv, aW, aH)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/platypus/flowables.py",
 line 119, in wrapOn
    w, h = self.wrap(aW,aH)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/platypus/flowables.py",
 line 408, in wrap
    return self.drawWidth, self.drawHeight
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/platypus/flowables.py",
 line 402, in __getattr__
    self._setup_inner()
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/platypus/flowables.py",
 line 368, in _setup_inner
    img = self._img
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/platypus/flowables.py",
 line 398, in __getattr__
    self._img = ImageReader(self._file)
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/lib/utils.py",
 line 541, in __init__
    if _isPILImage(fileName):
  File 
"/usr/lib/virtual/py27/lib/python2.7/site-packages/reportlab-2.5-py2.7-linux-x86_64.egg/reportlab/lib/utils.py",
 line 521, in _isPILImage
    return isinstance(im,Image.Image)
AttributeError: 'NoneType' object has no attribute 'Image'

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
On Behalf Of Brent Addis
Sent: Sunday, 4 September 2011 7:25 p.m.
To: 'Baruwa users list'
Subject: Re: [Baruwa] Baruwa reports functions

Thanks :)



Brent Addis
Systems Integration Specialist
Network Service Providers Ltd.

Unit 1, 13 Farnham St, Parnell, Auckland 1052
PO Box 90208, Victoria West, Auckland

Email: mailto:[email protected] | Customer Service:
[email protected] | Web: http://www.nsp.co.nz
Tel: +64-9-306-0230 | Support: +64-9-306-0234 | Fax: +64-9-306-0239

This email message and any accompanying attachments may contain
legally priveliged and confidential information intended for the addressee 
only.  If you are not the addressee your use of this information is strictly 
prohibited.

NSP - 2011 Managed Services Rookie of the Year Award - Australasia

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
On Behalf Of Andrew Colin Kissa
Sent: Sunday, 4 September 2011 6:50 p.m.
To: Baruwa users list
Subject: Re: [Baruwa] Baruwa reports functions


On 04 Sep 2011, at 5:08 AM, Brent Addis wrote:

> AttributeError: 'NoneType' object has no attribute 'Image'

Python Imaging Library (PIL) is not installed, apt-get install python-imaging

--
Baruwa - www.baruwa.org

_______________________________________________
Baruwa mailing list
[email protected]
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056
_______________________________________________
Baruwa mailing list
[email protected]
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056
_______________________________________________
Baruwa mailing list
[email protected]
http://lists.baruwa.org/mailman/listinfo/baruwa
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Reply via email to