Opened 7 years ago

Last modified 6 years ago

#9280 assigned defect

AttributeError: 'NoneType' object has no attribute 'bands'

Reported by: anonymous Owned by: Álvaro Iradier
Priority: normal Component: GraphvizPlugin
Severity: normal Keywords:
Cc: Álvaro Iradier Trac Release: 0.12



I've installed Graphviz, i got this error if i print it as pdf (using TracWikiPrint-Plugin), if i don't insert graphviz code in the wiki site, the pdf just doing fine and don't get this error. Can these 2 Plugins work together? or did i miss something in the installation? Could somebody help me? Thank you in advance.

Oops… Trac detected an internal error:

AttributeError: 'NoneType' object has no attribute 'bands'

This is probably a local installation issue. Found a bug in Trac?

If you think this should work and you can reproduce the problem, you should consider creating a bug report.

Note that the TracWikiPrintPlugin plugin seems to be involved. Please report this issue to the plugin maintainer.

Before you do that, though, please first try searching for similar issues, as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac or its plugins, please try the mailing list instead of creating a ticket.

Otherwise, please a new bug report describing the problem and explain how to reproduce it. Python Traceback Most recent call last:

File "build/bdist.linux-x86_64/egg/trac/web/", line 513, in _dispatch_request File "build/bdist.linux-x86_64/egg/trac/web/", line 235, in dispatch File "build/bdist.linux-x86_64/egg/trac/wiki/", line 172, in process_request File "build/bdist.linux-x86_64/egg/trac/mimeview/", line 982, in send_converted File "build/bdist.linux-x86_64/egg/trac/mimeview/", line 681, in convert_content File "build/bdist.linux-x86_64/egg/wikiprint/", line 383, in convert_content File "build/bdist.linux-x86_64/egg/wikiprint/", line 235, in html_to_pdf File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/", line 172, in pisaDocument File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/platypus/", line 880, in build File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/platypus/", line 763, in handle_flowable File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/platypus/", line 174, in _add File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/platypus/", line 108, in drawOn File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/platypus/", line 89, in _drawOn File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/", line 575, in draw File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/", line 1054, in draw File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/", line 1534, in drawPara File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/", line 337, in _leftDrawParaLineX File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/", line 217, in _putFragLine File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/pdfgen/", line 857, in drawImage File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/pdfbase/", line 2086, in init File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/pdfbase/", line 2173, in loadImageFromSRC File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/", line 324, in getRGBData File "/usr/lib/python2.5/site-packages/PIL-1.1.7-py2.5-linux-x86_64.egg/", line 1497, in split

System Information:

User Agent: Mozilla/5.0 (Windows NT 6.0; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Trac 0.12 Genshi 0.6 Pygments 0.10 pysqlite 2.4.1 Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14) [GCC 4.3.2] pytz 2008c setuptools 0.6c11 SQLite 3.5.9 Subversion 1.5.1 (r32289) jQuery 1.4.2

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by Álvaro Iradier

Owner: changed from Peter Kropf to Álvaro Iradier
Status: newassigned

I think you hit the PIL bug described in #6767, related with using 32 bit images. Can you confirm if the proposed fixes work?


Modify Ticket

Change Properties
Set your email in Preferences
as assigned The owner will remain Álvaro Iradier.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.