Menu

#841 Pydev 1.4.2 Eclipse on mac install crash

1.4.2
closed-works-for-me
debugger (210)
5
2009-01-26
2009-01-25
Enrique
No

MacBookPro with 10.5.6
Python 2.3 and 2.5 (Current) installed and working.
Eclipse 3.4.1 Build id: M20080911-1700

When trying to set up the path to the Python interpreter, I get a runtime error. First I will show the Eclipse error log, then I show the result of typing the command in a shell:

!ENTRY org.python.pydev 1 1 2009-01-24 20:33:14.875
!MESSAGE Information about process of adding new interpreter:
- Opening dialog to request executable (or jar).
- Chosen interpreter file:'/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Python.framework/Versions/2.5/Python
- Ok, file is non-null. Getting info on:/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Python.framework/Versions/2.5/Python
- Beggining task:Getting libs totalWork:100
- Setting task name:Mounting executable string...
- Setting task name:Executing: /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Python.framework/Versions/2.5/Python -u /Applications/eclipse/plugins/org.python.pydev_1.4.2/PySrc/interpreterInfo.py
- Setting task name:Making pythonpath environment... /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Python.framework/Versions/2.5/Python -u /Applications/eclipse/plugins/org.python.pydev_1.4.2/PySrc/interpreterInfo.py
- Setting task name:Making exec... /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Python.framework/Versions/2.5/Python -u /Applications/eclipse/plugins/org.python.pydev_1.4.2/PySrc/interpreterInfo.py
- Setting task name:Reading output...
- Setting task name:Waiting for process to finish.
Exception detected: No output was in the standard output when trying to create the interpreter info.
The error output contains:>><<
- Some error happened while getting info on the interpreter:
java.lang.RuntimeException: No output was in the standard output when trying to create the interpreter info.
The error output contains:>><<
at org.python.pydev.ui.interpreters.AbstractInterpreterManager.createInfoFromOutput(AbstractInterpreterManager.java:200)
at org.python.pydev.ui.interpreters.PythonInterpreterManager.doCreateInterpreterInfo(PythonInterpreterManager.java:61)
at org.python.pydev.ui.interpreters.PythonInterpreterManager.createInterpreterInfo(PythonInterpreterManager.java:42)
at org.python.pydev.ui.interpreters.AbstractInterpreterManager.getInterpreterInfo(AbstractInterpreterManager.java:220)
at org.python.pydev.ui.interpreters.AbstractInterpreterManager.addInterpreter(AbstractInterpreterManager.java:270)
at org.python.pydev.ui.pythonpathconf.AbstractInterpreterEditor$Operation.run(AbstractInterpreterEditor.java:734)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

Now, here is what I get in the shell:

enrique@pc02028150703[~]$ python -u /Applications/eclipse/plugins/org.python.pydev_1.4.2/PySrc/interpreterInfo.py
Version2.5
EXECUTABLE:/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python|
|/Applications/eclipse/plugins/org.python.pydev_1.4.2/PySrcOUT_PATH
|/Library/Python/2.5/site-packagesOUT_PATH
|/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/pythonINS_PATH
|/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjCINS_PATH
|/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5INS_PATH
|/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynloadINS_PATH
|/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tkINS_PATH
|/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwinINS_PATH
|/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-macINS_PATH
|/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackagesINS_PATH
|/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zipINS_PATH
@
$
|__builtin__
|__main__
|_ast
|_codecs
|_sre
|_symtable
|_types
|errno
|exceptions
|gc
|imp
|marshal
|posix
|pwd
|signal
|sys
|thread
|xxsubtype
|zipimport
Traceback (most recent call last):
File "/Applications/eclipse/plugins/org.python.pydev_1.4.2/PySrc/interpreterInfo.py", line 138, in <module>
raise RuntimeError('Ok, this is so that it shows the output (ugly hack for some platforms, so that it releases the output).')
RuntimeError: Ok, this is so that it shows the output (ugly hack for some platforms, so that it releases the output).

enrique@pc02028150703[~]$

Can anybody please figure out what went wrong??
-enrique

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2009-01-26

    The problem in Mac OS and Linux is that Pydev needs the real interpreter
    (and not a link for it).

    So, using the actual executable instead of the link for it should work
    (usually a "which python" gives you the actual executable).

    If that doesn't work for you, please reopen this bug.

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-01-26
    • status: open --> closed-works-for-me