Message9973

Author pekka.klarck
Recipients pekka.klarck
Date 2015-04-26.20:04:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430078696.57.0.535567825987.issue2345@psf.upfronthosting.co.za>
In-reply-to
Content
I installed 2.7 rc3 on Windows where I had JYTHON_HOME set so that it pointed to old beta4 installation. After installation finished, I noticed this on the command prompt:

    Try running this script from the 'bin' directory of an installed Jython or setting %JYTHON_HOME.
    usage: jython [option] ... [-c cmd | -m mod | file | -] [arg] ...
    Try `jython -h' for more information.

My guess is that installer tried to use installed Jython for running ensurepip. At least pip wasn't installed correctly:

    C:\>jython -m pip
    Traceback (most recent call last):
      File "C:\jython2.7rc3\Lib\runpy.py", line 151, in _run_module_as_main
        mod_name, loader, code, fname = _get_module_details(mod_name)
      File "C:\jython2.7rc3\Lib\runpy.py", line 151, in _run_module_as_main
        mod_name, loader, code, fname = _get_module_details(mod_name)
      File "C:\jython2.7rc3\Lib\runpy.py", line 104, in _get_module_details
        if loader.is_package(mod_name):
    AttributeError: 'org.python.core.JavaImporter' object has no attribute 'is_package'

Not sure was something else broken. Fixed the problem by unsetting JYTHON_HOME and reinstalling Jython.
History
Date User Action Args
2015-04-26 20:04:56pekka.klarcksetrecipients: + pekka.klarck
2015-04-26 20:04:56pekka.klarcksetmessageid: <1430078696.57.0.535567825987.issue2345@psf.upfronthosting.co.za>
2015-04-26 20:04:56pekka.klarcklinkissue2345 messages
2015-04-26 20:04:56pekka.klarckcreate