[Biopython-dev] Nexus issue on Windows with Python 2.3

Frank Kauff fkauff at biologie.uni-kl.de
Mon Sep 8 07:34:32 UTC 2008



Peter wrote:
> On Sat, Sep 6, 2008 at 12:19 AM, Peter <biopython at maubp.freeserve.co.uk> wrote:
>   
>> Can anyone using Windows and/or Python 2.3 try running the test suite?
>>
>> I'm seeing a problem with test_SeqIO.py and test_AlignIO.py when they
>> call Bio.Nexus to construct a particular Nexus object (using seqences
>> originally read in from Tests/Nexus/test_Nexus_input.nex for what its
>> worth).  This triggers:
>>
>> TypeError: zip() requires at least one sequence
>>
>> On Linux with Python 2.4, and Mac OS X with Python 2.5 these two tests
>> both passed for me.
>>     
>
> This was a python 2.3 problem, the Nexus code (Bio/Nexus/Nexus.py line
> 1633) was using a Python 2.4+ only feature, see
> http://docs.python.org/lib/built-in-funcs.html
>
> sitesm=zip(*[self.matrix[t].tostring() for t in self.taxlabels])
>
> I've added a check in CVS for an empty list of taxlabels (with a
> comment about python 2.3).
>
>   
Good catch. Thanks Peter for fixing it.
> Peter
> _______________________________________________
> Biopython-dev mailing list
> Biopython-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biopython-dev
>
>   

-- 
J-Prof. Dr. Frank Kauff
Molecular Phylogenetics
FB Biologie, 13/276
TU Kaiserslautern
Postfach 3049
67653 Kaiserslautern

Tel. +49 (0)631 205-2562
Fax. +49 (0)631 205-2998
email: fkauff at biologie.uni-kl.de
skype: frank.kauff




More information about the Biopython-dev mailing list