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

problem when using jython #214

pouledodue opened this Issue Jun 6, 2017 · 2 comments


None yet
1 participant

pouledodue commented Jun 6, 2017

[/U/x]$ pyenv versions
* 2.7.12 (set by /Users/x/.python-version)
[/U/x]$ pyenv virtualenv jython-2.7.0 test-env
/Users/x/.pyenv/versions/jython-2.7.0/bin/pip: line 4: import: command not found
/Users/x/.pyenv/versions/jython-2.7.0/bin/pip: line 5: import: command not found
from: can't read /var/mail/pip
/Users/x/.pyenv/versions/jython-2.7.0/bin/pip: line 10: syntax error near unexpected token `('
/Users/x/.pyenv/versions/jython-2.7.0/bin/pip: line 10: `    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])'

the content of /Users/x/.pyenv/versions/jython-2.7.0/bin/pip is :


# -*- coding: utf-8 -*-
import re
import sys

from pip import main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])

first lines of content of file /Users/x/.pyenv/versions/jython-2.7.0/bin/jython is

#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# - start script for Jython (adapted from
# Environment variables (optional)
#   JAVA_HOME      Java installation directory
#   JYTHON_HOME    Jython installation directory
#   JYTHON_OPTS    Default Jython command line arguments
# -----------------------------------------------------------------------------




This comment has been minimized.

pouledodue commented Jun 6, 2017

creating a virtualenv using python (not jython) like this:
pyenv virtualenv 2.7.12 test
is OK and gives me no error


This comment has been minimized.

pouledodue commented Jun 6, 2017

When running directly virtualenv ...

[x@Mac /Users/x]$ virtualenv -p ~/.pyenv/versions/jython-2.7.0/bin/jython yoshi
Running virtualenv with interpreter /Users/x/.pyenv/versions/jython-2.7.0/bin/jython
Cannot find file /Users/x/.pyenv/versions/jython-2.7.0/Include (bad symlink)
New jython executable in /Users/x/yoshi/bin/jython
Installing setuptools, pip, wheel...done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment