[Biopython] Experimental Version Installation Problem: Structure Module Not Installed

Peter Cock p.j.a.cock at googlemail.com
Thu May 25 11:25:21 UTC 2017


On Thu, May 25, 2017 at 9:43 AM, Souparno Adhikary
<souparnoa91 at gmail.com> wrote:
> I manually copied it into the folder. But, is there any way to install it
> running the setup.py file?

Yes, add it to the list of packages in setup.py - see variable PACKAGES
(Patrick will need to do this at some point, but you could do it now for
your local testing).

> Also, I'm getting an error calling the .Atoms:
>
>  File "/usr/local/lib/python2.7/dist-packages/Bio/Structure/__init__.py",
> line 14, in <module>
>     from .Atoms import *
>   File "/usr/local/lib/python2.7/dist-packages/Bio/Structure/Atoms.py", line
> 11
>     def __init__(self, length: int=None):
>                              ^
> SyntaxError: invalid syntax

It looks like Patrick is using some modern Python 3 only syntax for
type annotation, likely this would work:

def __init__(self, length=None):

However, there are lots of similar changes needed. It would be
better to think about moving to Python 3 if you want to try this
code as it is written.

Peter


More information about the Biopython mailing list