Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

‘clonify’ package needs python 2.7 but ‘biopython’ requires python 3 #2

Open
ponomarevsy opened this issue May 26, 2022 · 0 comments

Comments

@ponomarevsy
Copy link

Looks like ‘clonify’ package needs python 2.7, at the same time, its dependency, ‘biopython’, requires python 3. If I don’t upgrade python, then, ‘biopython’ doesn’t get installed, and, if I upgrade python (to v3), then, ‘biopython’ gets installed but ‘clonify’ complains:

» source activate clonify-1.0.0                           

(clonify-1.0.0) » which python                           
/path/Anaconda3/2021.11/envs/clonify-1.0.0/bin/python

(clonify-1.0.0) » python -V                               
Python 2.7.18 :: Anaconda, Inc.

(clonify-1.0.0) » pip install numpy scipy biopython pymongo python-levenshtein fastcluster
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting numpy
 Using cached numpy-1.16.6-cp27-cp27mu-manylinux1_x86_64.whl (17.0 MB)
Collecting scipy
 Using cached scipy-1.2.3-cp27-cp27mu-manylinux1_x86_64.whl (24.8 MB)
Collecting biopython
 Using cached biopython-1.77.tar.gz (16.8 MB)
   ERROR: Command errored out with exit status 1:
    command: /path/Anaconda3/2021.11/envs/clonify-1.0.0/bin/python2.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-KwHMjj/biopython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-KwHMjj/biopython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-bI9r0B
        cwd: /tmp/pip-install-KwHMjj/biopython/
   Complete output (1 lines):
   Biopython requires Python 3.6 or later. Python 2.7 detected.
   ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

(clonify-1.0.0) » conda upgrade python

(clonify-1.0.0) » python -V                              
Python 3.10.4

(clonify-1.0.0) » ./clonify.py                           
 File "/path/Clonify/clonify-python/./clonify.py", line 112
   def clonify((ichunk, jchunk)):
               ^
SyntaxError: invalid syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant