[Biopython-dev] Installing Bio.Geography
Eric Talevich
eric.talevich at gmail.com
Tue Jan 3 16:42:51 UTC 2012
On Tue, Jan 3, 2012 at 9:44 AM, Peter Cock <p.j.a.cock at googlemail.com>wrote:
> On Tue, Jan 3, 2012 at 2:23 PM, JOSE SERGIO HLEAP <sergiohleap at yahoo.com>
> wrote:
> > Thanks for your quick answer Peter... I already went
> > trough http://biopython.org/wiki/BioGeography at the Nick Matzke's
> github. I
> > dowloaded the enrire branch in a zip, then build, test and install, using
> > the setup... but still does not work. When in a python console I type:
> >
> >>>> from Bio import Geography
> >
> > Give me the following taceback:
> > ...
> > ImportError: cannot import name Geography
> >
> > ...
> >
> > am I doing something wrong??
> >
> > Thanks again for any help you can provide me!
> >
> > Sergio
>
> Hi again.
>
> My guess is you got the (default) master branch from
> Nick's repository, not the Geography branch:
> https://github.com/nmatzke/biopython/branches
>
> Try something like this before installing,
>
> git clone https://github.com/nmatzke/biopython.git
> cd biopython
> git checkout Geography
>
> Peter
>
>
Also, for the sub-package to be installed via setup.py, you'll need to add
Bio.Geography to the list of installed packages. In setup.py, around line
207, you'll see a global variable PACKAGES and a list of module names as
strings. Try adding "Bio.Geography" to this list.
-Eric
More information about the Biopython-dev
mailing list