Menu

#121 cannot set interpreter

0.9.x
closed-works-for-me
nobody
None
5
2005-06-29
2005-06-27
Anonymous
No

PyDev 0.9.4
Eclipse 3.0.1
OS X 10.4 (Apple Java 1.4.2_07)

When
Menu->Window->Preferences->Pydev->Python Interpreters->new
(interpreter) . chossing any interpreter that should be valid out of
the following produces the error described:
/sw/bin/python
/sw/bin/python2.3
/sw/bin/python2.4
/usr/bin/python
/usr/bin/python2.3
/System/Library/Frameworks/Python/Versions/2.3/bin/python2.3

The error: the window saying that the interpreter is being examined
(?) opens briefly and then a "Invalid thread access" appears in the
Error Log. This is the complete error:

Invalid thread access

org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:2691)
at org.eclipse.swt.SWT.error(SWT.java:2616)
at org.eclipse.swt.SWT.error(SWT.java:2587)
at org.eclipse.swt.widgets.Widget.error(Widget.java:546)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:240)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:318)
at org.eclipse.jface.window.Window.createShell(Window.java:
393)
at org.eclipse.jface.window.Window.create(Window.java:347)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:925)
at org.eclipse.jface.window.Window.open(Window.java:637)
at org.eclipse.jface.dialogs.ErrorDialog.open(ErrorDialog.java:
257)
at org.eclipse.jface.dialogs.ErrorDialog.openError
(ErrorDialog.java:319)
at org.eclipse.jface.dialogs.ErrorDialog.openError
(ErrorDialog.java:285)
at org.python.pydev.ui.InterpreterManager.getInterpreterInfo
(InterpreterManager.java:98)
at org.python.pydev.ui.InterpreterManager.addInterpreter
(InterpreterManager.java:109)
at org.python.pydev.ui.pythonpathconf.InterpreterEditor
$Operation.run(InterpreterEditor.java:473)
at org.eclipse.jface.operation.ModalContext
$ModalContextThread.run(ModalContext.java:101)

Session information:

eclipse.buildId=M200503110845
java.version=1.4.2_07
java.vendor=Apple Computer, Inc.
BootLoader constants: OS=macosx, ARCH=ppc, WS=carbon,
NL=en_US
Command-line arguments: -keyring /Users/
username/.eclipse_keyring -showlocation

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Ok, FIXED.

    Cause of Problem: spaces in path

    Details: I had eclipse installed under a path with spaces:
    /Applications/eclipse 3.0/Eclipse.app/..

    The solution was renaming to eclipse_3.0

    Hope all the bugs are as easy to fix as this,

    keep up the good work on pydev, it really rocks!

    Alon

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2005-06-29
    • status: open --> closed-works-for-me
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2005-06-29

    Logged In: YES
    user_id=617340

    yeah, spaces always get in the way for some things (but this
    I didn't know myself...)