Skip to content

pip not python3 compatible #804

@wharvey31

Description

@wharvey31

It seems that the pip file for toil-vg still relies on execfile() which is python2 specific. Can you change to use exec()? Or am I doing something wrong.

$ pip install toil-vg

Collecting toil-vg
Downloading toil-vg-1.4.1.tar.gz (139 kB)
|████████████████████████████████| 139 kB 13.3 MB/s
ERROR: Command errored out with exit status 1:
command: /net/eichler/vol26/7200/software/modules-sw/toil-vg/202004/Linux/RHEL6/x86_64/toilvenv/bin/python3 -c 'import sys, set
uptools, tokenize; sys.argv[0] = '"'"'/data/nobackup/tmp/pip-install-w5kk3sba/toil-vg/setup.py'"'"'; file='"'"'/data/nobackup/tm
p/pip-install-w5kk3sba/toil-vg/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 /data/nobackup/tmp/pip-install-w5kk3sb
a/toil-vg/pip-egg-info
cwd: /data/nobackup/tmp/pip-install-w5kk3sba/toil-vg/
Complete output (5 lines):
Traceback (most recent call last):
File "", line 1, in
File "/data/nobackup/tmp/pip-install-w5kk3sba/toil-vg/setup.py", line 7, in
execfile(os.path.join(os.path.dirname(os.path.realpath(file)), "version.py"))
NameError: name 'execfile' is not defined
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions