Modify ↓
Opened 13 years ago
Last modified 4 years ago
#9280 new defect
AttributeError: 'NoneType' object has no attribute 'bands'
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | GraphvizPlugin |
Severity: | normal | Keywords: | |
Cc: | Álvaro Iradier | Trac Release: | 0.12 |
Description (last modified by )
Hi..
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/main.py", line 513, in _dispatch_request File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 235, in dispatch File "build/bdist.linux-x86_64/egg/trac/wiki/web_ui.py", line 172, in process_request File "build/bdist.linux-x86_64/egg/trac/mimeview/api.py", line 982, in send_converted File "build/bdist.linux-x86_64/egg/trac/mimeview/api.py", line 681, in convert_content File "build/bdist.linux-x86_64/egg/wikiprint/wikiprint.py", line 383, in convert_content File "build/bdist.linux-x86_64/egg/wikiprint/wikiprint.py", line 235, in html_to_pdf File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/pisa_document.py", line 172, in pisaDocument File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/platypus/doctemplate.py", line 880, in build File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/platypus/doctemplate.py", line 763, in handle_flowable File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/platypus/frames.py", line 174, in _add File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/platypus/flowables.py", line 108, in drawOn File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/platypus/flowables.py", line 89, in _drawOn File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/pisa_reportlab.py", line 575, in draw File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/reportlab_paragraph.py", line 1054, in draw File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/reportlab_paragraph.py", line 1534, in drawPara File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/reportlab_paragraph.py", line 337, in _leftDrawParaLineX File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/reportlab_paragraph.py", line 217, in _putFragLine File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/pdfgen/canvas.py", line 857, in drawImage File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/pdfbase/pdfdoc.py", line 2086, in __init__ File "/usr/lib/python2.5/site-packages/reportlab-2.5-py2.5-linux-x86_64.egg/reportlab/pdfbase/pdfdoc.py", line 2173, in loadImageFromSRC File "/usr/lib/python2.5/site-packages/pisa-3.0.33-py2.5.egg/sx/pisa3/pisa_reportlab.py", line 324, in getRGBData File "/usr/lib/python2.5/site-packages/PIL-1.1.7-py2.5-linux-x86_64.egg/Image.py", 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 (3)
comment:1 Changed 12 years ago by
Owner: | changed from Peter Kropf to Álvaro Iradier |
---|---|
Status: | new → assigned |
comment:2 Changed 6 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 5 years ago by
Owner: | Álvaro Iradier deleted |
---|---|
Status: | assigned → new |
Note: See
TracTickets for help on using
tickets.
I think you hit the PIL bug described in #6767, related with using 32 bit images. Can you confirm if the proposed fixes work?
Thanks.