[Biopython-dev] [Bug 2710] New: GenomeDiagram.py unnecessary requires the reportlab addon renderPM

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Fri Dec 12 16:49:51 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2710

           Summary: GenomeDiagram.py unnecessary requires the reportlab
                    addon renderPM
           Product: Biopython
           Version: Not Applicable
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main Distribution
        AssignedTo: biopython-dev at biopython.org
        ReportedBy: bsouthey at gmail.com


test_GenomeDiagram fails because the renderPM module is not part of standard
install of reportlab, at least under Linux. 

I consider that the renderPM module should not be required so
Graphics/GenomeDiagram/Diagram.py needs to be rewritten to avoid using the
renderPM module when it is not available. 

The installation documentation needs to include something about needing the
renderPM for JPG, BMP, GIF, PNG, TIFF or TIFF outputs.

There must be a test for the presence of the renderPM module.


test_GenomeDiagram ... ERROR
test_GraphicsChromosome ... ok
test_GraphicsDistribution ... ok
test_GraphicsGeneral ... ok

======================================================================
ERROR: test_GenomeDiagram
----------------------------------------------------------------------
Traceback (most recent call last):
  File "run_tests.py", line 125, in runTest
    self.runSafeTest()
  File "run_tests.py", line 138, in runSafeTest
    cur_test = __import__(self.test_name)
  File "test_GenomeDiagram.py", line 30, in <module>
    from Bio.Graphics.GenomeDiagram.FeatureSet import FeatureSet
  File
"/home/bsouthey/python/biopython_cvs/biopython/build/lib.linux-x86_64-2.5/Bio/Graphics/GenomeDiagram/__init__.py",
line 13, in <module>
    from Bio.Graphics.GenomeDiagram.Diagram import Diagram
  File
"/home/bsouthey/python/biopython_cvs/biopython/build/lib.linux-x86_64-2.5/Bio/Graphics/GenomeDiagram/Diagram.py",
line 32, in <module>
    from reportlab.graphics import renderPS, renderPDF, renderSVG, renderPM
  File "/usr/lib/python2.5/site-packages/reportlab/graphics/renderPM.py", line
28, in <module>
    "see http://www.reportlab.org/rl_addons.html")
ImportError: No module named _renderPM
see http://www.reportlab.org/rl_addons.html

----------------------------------------------------------------------


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list