[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Adding python3-biopython



On Wed, Mar 05, 2014 at 01:28:02PM +0100, Andreas Tille wrote:

> when running biopython test suite I detected a wrong error message in
> Tests/test_Cluster.py


> import unittest
> 
> try:
>     from Bio import Cluster
> except ImportError:
>     from Bio import MissingPythonDependencyError
>     raise MissingPythonDependencyError("If you want to use Bio.Cluster, "
>                                        "install NumPy first and then "
>                                        "reinstall Biopython")
> 
> try:
>     import numpy
> except ImportError:
>     from Bio import MissingPythonDependencyError
>     raise MissingPythonDependencyError(
>         "Install NumPy if you want to use Bio.Cluster")
> 
> ...
> 
> 
> The first error message is misleading since the problem is not the
> missing NumPy but rather Bio.Cluster seems to be broken.

Probably not. It seems the author concluded that if
importing Cluster from Bio fails it *must* be due to
NumPy not being installed.

(Whether that assumption holds is another issue.)

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


Reply to: