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

Open
pouledodue opened this Issue Jun 6, 2017 · 2 comments

Comments

Projects
None yet
1 participant
@pouledodue

pouledodue commented Jun 6, 2017

[/U/x]$ pyenv versions
  system
* 2.7.12 (set by /Users/x/.python-version)
  3.4.5
  3.5.2
  3.6.1
  jython-2.7.0
[/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 :

#!/Users/x/.pyenv/versions/jython-2.7.0/bin/jython

# -*- 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])
    sys.exit(main())

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

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

cygwin=false

...

@pouledodue

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

@pouledodue

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