setuptools bootstrapping/bug reporting for the bootstrapping script

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

setuptools bootstrapping/bug reporting for the bootstrapping script

Karl-Philipp Richter
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi together,
I'm having trouble with bootstrapping setup tools for jython which is
AFAIK necessary to be able to install and import modules with
easy_install and pip. There're two versions,
https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py and
http://peak.telecommunity.com/dist/ez_setup.py and I tried all
combinations (and will only mention if there're difference in the
following listing)

  * Running `jython ez_script.py` (as recommended on
http://www.jython.org/jythonbook/en/1.0/appendixA.html?highlight=module#setuptools)
causes `error: /usr/Lib/site-packages/setuptools-0.6c11-py2.5.egg:
Unknown error: 20000` which is a jython bug according to
http://stackoverflow.com/questions/26622138/what-could-error-20000-in-a-jython-script-mean#comment41854646_26622138.
Therefore I used 2.5.4-rc1 and 2.7-beta3 for further tests.
  * Running
        $ java -jar ./jython-standalone-2.7-b3.jar ez_setup.py
        Extracting in /tmp/tmpLyxQI3
        Now working in /tmp/tmpLyxQI3/setuptools-7.0
        Installing Setuptools
        Traceback (most recent call last):
          File "ez_setup.py", line 332, in <module>
            sys.exit(main())
          File "ez_setup.py", line 329, in main
            return _install(archive, _build_install_args(options))
          File "ez_setup.py", line 54, in _install
            if not _python_cmd('setup.py', 'install', *install_args):
          File "ez_setup.py", line 47, in _python_cmd
            return subprocess.call(args) == 0
          File
"/home/richter/jython-standalone-2.7-b3.jar/Lib/subprocess.py", line
500, in call
          File
"/home/richter/jython-standalone-2.7-b3.jar/Lib/subprocess.py", line
830, in __init__
          File
"/home/richter/jython-standalone-2.7-b3.jar/Lib/subprocess.py", line
1311, in _execute_child
        TypeError: args must contain only strings
    from
https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
doesn't work as well (it's beta version...), the same when I prepend
`sudo`
  * Running
        $ java -jar jython-standalone-2.5.4-rc1.jar ez_setup.py
          File "ez_setup.py", line 146
            except pkg_resources.VersionConflict as VC_err:
                                                ^
        SyntaxError: mismatched input 'as' expecting COLON
    is errornous because of 2.5 syntax
  * Running
        $ sudo java -jar jython-standalone-2.5.4-rc1.jar ez_setup.py
        Downloading
http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c11-py2.5.egg
        Traceback (most recent call last):
          File "ez_setup-jython.py", line 278, in <module>
            main(sys.argv[1:])
          File "ez_setup-jython.py", line 212, in main
            from setuptools.command.easy_install import main
          File
"/home/richter/setuptools-0.6c11-py2.5.egg/setuptools/__init__.py",
line 2, in <module>
          File
"/home/richter/setuptools-0.6c11-py2.5.egg/setuptools/extension.py",
line 2, in <module>
          File
"/home/richter/setuptools-0.6c11-py2.5.egg/setuptools/dist.py", line
5, in <module>
          File
"/home/richter/setuptools-0.6c11-py2.5.egg/setuptools/command/install.py",
line 2, in <module>
          File
"/home/richter/jython-standalone-2.5.4-rc1.jar/Lib/distutils/command/install.py",
line 15, in <module>
          File
"/home/richter/jython-standalone-2.5.4-rc1.jar/Lib/distutils/sysconfig.py",
line 29, in <module>
          File
"/home/richter/jython-standalone-2.5.4-rc1.jar/Lib/posixpath.py", line
416, in abspath
          File
"/home/richter/jython-standalone-2.5.4-rc1.jar/Lib/posixpath.py", line
49, in isabs
        AttributeError: 'NoneType' object has no attribute 'startswith'
    from http://peak.telecommunity.com/dist/ is errornous as well,
omitting sudo causes error `urllib2.URLError: <urlopen error (-1, 'SSL
exception: Differences between the SSL socket behaviour of cpython vs.
jython are explained on the wiki:
http://wiki.python.org/jython/NewSocketModule#SSL_Support')>`

How can I bootstrap setuptools or get easy_install and/or pip
facilities in jython?

Are the scripts or a fork maintained by the jython developers? Does it
make sense to report the errors in the jython bug tracker?

Best regards,
Kalle Richter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUUQd2AAoJEGadKJ8eJ7ZGToIIAIyRGb/ed6E8TIHhIyE50I2I
s5mz1GiQtZK++qUOz+YM2wmFknxPnyJZIYifRsI98Jzu8maqKuF7xAX1d345sotn
nFA/QhBVG32mKQuCPpvuHwXgmHDO9aGxHQco3j6xt6MethoGGqrr0i1rACxgaBJZ
yKOx/oHZEWXGOFwrknTq/gVTCffd6ad8r63EZ7vyK+9PSuyoX+k71pAfJVRvOqPY
t+MwZiQqJ2/aCLNrW1C+48sxvqMYEgoCXC/atqqmeKQBtdI4ZQVJmjjZg86tBP8b
EFpgrByQRiqrfPUcXdofd0ioFpAJ0GO7NXnr51F/wFYgEknQTl4Zp+PG4ag3HF0=
=l1Jl
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users
Reply | Threaded
Open this post in threaded view
|

Re: setuptools bootstrapping/bug reporting for the bootstrapping script

Jim Baker-2
Use https://github.com/jythontools/pip for the time being with Jython 2.7b3 or higher



On Wed, Oct 29, 2014 at 9:27 AM, Karl-Philipp Richter <[hidden email]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi together,
I'm having trouble with bootstrapping setup tools for jython which is
AFAIK necessary to be able to install and import modules with
easy_install and pip. There're two versions,
https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py and
http://peak.telecommunity.com/dist/ez_setup.py and I tried all
combinations (and will only mention if there're difference in the
following listing)

  * Running `jython ez_script.py` (as recommended on
http://www.jython.org/jythonbook/en/1.0/appendixA.html?highlight=module#setuptools)
causes `error: /usr/Lib/site-packages/setuptools-0.6c11-py2.5.egg:
Unknown error: 20000` which is a jython bug according to
http://stackoverflow.com/questions/26622138/what-could-error-20000-in-a-jython-script-mean#comment41854646_26622138.
Therefore I used 2.5.4-rc1 and 2.7-beta3 for further tests.
  * Running
        $ java -jar ./jython-standalone-2.7-b3.jar ez_setup.py
        Extracting in /tmp/tmpLyxQI3
        Now working in /tmp/tmpLyxQI3/setuptools-7.0
        Installing Setuptools
        Traceback (most recent call last):
          File "ez_setup.py", line 332, in <module>
            sys.exit(main())
          File "ez_setup.py", line 329, in main
            return _install(archive, _build_install_args(options))
          File "ez_setup.py", line 54, in _install
            if not _python_cmd('setup.py', 'install', *install_args):
          File "ez_setup.py", line 47, in _python_cmd
            return subprocess.call(args) == 0
          File
"/home/richter/jython-standalone-2.7-b3.jar/Lib/subprocess.py", line
500, in call
          File
"/home/richter/jython-standalone-2.7-b3.jar/Lib/subprocess.py", line
830, in __init__
          File
"/home/richter/jython-standalone-2.7-b3.jar/Lib/subprocess.py", line
1311, in _execute_child
        TypeError: args must contain only strings
    from
https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
doesn't work as well (it's beta version...), the same when I prepend
`sudo`
  * Running
        $ java -jar jython-standalone-2.5.4-rc1.jar ez_setup.py
          File "ez_setup.py", line 146
            except pkg_resources.VersionConflict as VC_err:
                                                ^
        SyntaxError: mismatched input 'as' expecting COLON
    is errornous because of 2.5 syntax
  * Running
        $ sudo java -jar jython-standalone-2.5.4-rc1.jar ez_setup.py
        Downloading
http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c11-py2.5.egg
        Traceback (most recent call last):
          File "ez_setup-jython.py", line 278, in <module>
            main(sys.argv[1:])
          File "ez_setup-jython.py", line 212, in main
            from setuptools.command.easy_install import main
          File
"/home/richter/setuptools-0.6c11-py2.5.egg/setuptools/__init__.py",
line 2, in <module>
          File
"/home/richter/setuptools-0.6c11-py2.5.egg/setuptools/extension.py",
line 2, in <module>
          File
"/home/richter/setuptools-0.6c11-py2.5.egg/setuptools/dist.py", line
5, in <module>
          File
"/home/richter/setuptools-0.6c11-py2.5.egg/setuptools/command/install.py",
line 2, in <module>
          File
"/home/richter/jython-standalone-2.5.4-rc1.jar/Lib/distutils/command/install.py",
line 15, in <module>
          File
"/home/richter/jython-standalone-2.5.4-rc1.jar/Lib/distutils/sysconfig.py",
line 29, in <module>
          File
"/home/richter/jython-standalone-2.5.4-rc1.jar/Lib/posixpath.py", line
416, in abspath
          File
"/home/richter/jython-standalone-2.5.4-rc1.jar/Lib/posixpath.py", line
49, in isabs
        AttributeError: 'NoneType' object has no attribute 'startswith'
    from http://peak.telecommunity.com/dist/ is errornous as well,
omitting sudo causes error `urllib2.URLError: <urlopen error (-1, 'SSL
exception: Differences between the SSL socket behaviour of cpython vs.
jython are explained on the wiki:
<a href="http://wiki.python.org/jython/NewSocketModule#SSL_Support&#39;" target="_blank">http://wiki.python.org/jython/NewSocketModule#SSL_Support')>`

How can I bootstrap setuptools or get easy_install and/or pip
facilities in jython?

Are the scripts or a fork maintained by the jython developers? Does it
make sense to report the errors in the jython bug tracker?

Best regards,
Kalle Richter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUUQd2AAoJEGadKJ8eJ7ZGToIIAIyRGb/ed6E8TIHhIyE50I2I
s5mz1GiQtZK++qUOz+YM2wmFknxPnyJZIYifRsI98Jzu8maqKuF7xAX1d345sotn
nFA/QhBVG32mKQuCPpvuHwXgmHDO9aGxHQco3j6xt6MethoGGqrr0i1rACxgaBJZ
yKOx/oHZEWXGOFwrknTq/gVTCffd6ad8r63EZ7vyK+9PSuyoX+k71pAfJVRvOqPY
t+MwZiQqJ2/aCLNrW1C+48sxvqMYEgoCXC/atqqmeKQBtdI4ZQVJmjjZg86tBP8b
EFpgrByQRiqrfPUcXdofd0ioFpAJ0GO7NXnr51F/wFYgEknQTl4Zp+PG4ag3HF0=
=l1Jl
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users



--

------------------------------------------------------------------------------

_______________________________________________
Jython-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jython-users