This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Biopython installation error
 File "/opt/asn/apps/python_2.7.1/lib/python2.7/sqlite3/dbapi2.py", line 50, in <module>
    version_info = tuple([int(x) for x in version.split(".")])
  NameError: name 'version' is not defined
biopython software-error snpmeta

Which OS? Which version of Python and Biopython, and how were they installed? The error you've shown is from sqlite3 rather than Biopython itself...

I use Linux on HPC and Python 2.7.1. and I am trying to compile Biopython from source code. But yes, the error is from sqlite3 andI was wondering if I should overwrite the 'sqlite3/dbapi2.py' file. (I do not have super user privileges though)

Tried installing sqlite in my home directory.But still getting the same error message.

1 answer

Why don't you try pip install biopython? If you do not have admin privileges, install packages like Anaconda which includes most of the libraries required for scientific computing and it install everything in the directory you specify, including python itself.

Log in to answer this question.