Unable to set Python SDK

When I try to set a Python SDK on linux the SDK configurator silently fails. The IDEA log shows this.

2010-03-22 17:08:13,787 [ 987434]  ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1@6002df6f,notifier=null,catchExceptions=false,when=1269273946244] on sun.awt.X11.XToolkit@5682dc20
java.lang.NullPointerException
    at com.jetbrains.python.sdk.PythonSdkType.getInterpreterPath(PythonSdkType.java:351)
    at com.jetbrains.python.sdk.PythonSdkType.getVersionString(PythonSdkType.java:331)
    at com.jetbrains.python.sdk.PythonSdkType.suggestSdkName(PythonSdkType.java:193)
    at com.intellij.openapi.projectRoots.impl.SdkConfigurationUtil.createUniqueSdkName(SdkConfigurationUtil.java:182)
    at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectJdksModel.doAdd(ProjectJdksModel.java:234)
    at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectJdksModel$3.actionPerformed(ProjectJdksModel.java:221)
    at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.java:478)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:621)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:511)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:372)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    at java.awt.Dialog$1.run(Dialog.java:1046)
    at java.awt.Dialog$3.run(Dialog.java:1098)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:1096)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:640)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:391)
    at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:952)
    at com.intellij.ide.util.projectWizard.JdkChooserPanel.editJdkTable(JdkChooserPanel.java:102)
    at com.jetbrains.python.module.PythonSdkChooserPanel$1.actionPerformed(PythonSdkChooserPanel.java:54)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6263)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6028)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:621)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:507)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:372)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    at java.awt.Dialog$1.run(Dialog.java:1046)
    at java.awt.Dialog$3.run(Dialog.java:1098)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:1096)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:640)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:391)
    at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:952)
    at com.intellij.ide.impl.NewProjectUtil.createNewProject(NewProjectUtil.java:67)
    at com.intellij.ide.actions.NewProjectAction.actionPerformed(NewProjectAction.java:29)
    at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$ActionGroupDescriptor$3.onPress(WelcomeScreen.java:219)
    at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$ButtonWithExtension.onPress(WelcomeScreen.java:833)
    at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$ActionGroupDescriptor$2.mouseClicked(WelcomeScreen.java:155)
    at java.awt.Component.processMouseEvent(Component.java:6266)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6028)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:621)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:507)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:372)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

2 comments
Comment actions Permalink

Hello Jean-Paul,

Please make sure you're using the latest version of the Python plugin. This

stacktrace seems to be from a rather old version.

When I try to set a Python SDK on linux the SDK configurator silently

fails. The IDEA log shows this.

2010-03-22 17:08:13,787   ERROR -

com.intellij.ide.IdeEventQueue - Error during dispatching of

java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intelli

j.ui.popup.PopupFactoryImpl$ActionPopupStep$1@6002df6f,notifier=null,c

atchExceptions=false,when=1269273946244] on

sun.awt.X11.XToolkit@5682dc20

java.lang.NullPointerException

at

com.jetbrains.python.sdk.PythonSdkType.getInterpreterPath(PythonSdkTyp

e.java:351)

at

com.jetbrains.python.sdk.PythonSdkType.getVersionString(PythonSdkType.

java:331)

at

com.jetbrains.python.sdk.PythonSdkType.suggestSdkName(PythonSdkType.ja

va:193)

at

com.intellij.openapi.projectRoots.impl.SdkConfigurationUtil.createUniq

ueSdkName(SdkConfigurationUtil.java:182)

at

com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectJdksMod

el.doAdd(ProjectJdksModel.java:234)

at

com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectJdksMod

el$3.actionPerformed(ProjectJdksModel.java:221)

at

com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFact

oryImpl.java:478)

at

java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)

at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:621)

at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:511)

at

com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:372)

at

java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea

d.java:269)

at

java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j

ava:184)

at

java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j

ava:178)

at java.awt.Dialog$1.run(Dialog.java:1046)

at java.awt.Dialog$3.run(Dialog.java:1098)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Dialog.show(Dialog.java:1096)

at

com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(Dialo

gWrapperPeerImpl.java:640)

at

com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperP

eerImpl.java:391)

at

com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:952)

at

com.intellij.ide.util.projectWizard.JdkChooserPanel.editJdkTable(JdkCh

ooserPanel.java:102)

at

com.jetbrains.python.module.PythonSdkChooserPanel$1.actionPerformed(Py

thonSdkChooserPanel.java:54)

at

javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:199

5)

at

javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java

:2318)

at

javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.

java:387)

at

javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

at

javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonLi

stener.java:236)

at java.awt.Component.processMouseEvent(Component.java:6263)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

at java.awt.Component.processEvent(Component.java:6028)

at java.awt.Container.processEvent(Container.java:2041)

at java.awt.Component.dispatchEventImpl(Component.java:4630)

at java.awt.Container.dispatchEventImpl(Container.java:2099)

at java.awt.Component.dispatchEvent(Component.java:4460)

at

java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)

at

java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)

at

java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

at java.awt.Container.dispatchEventImpl(Container.java:2085)

at java.awt.Window.dispatchEventImpl(Window.java:2478)

at java.awt.Component.dispatchEvent(Component.java:4460)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)

at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:621)

at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:507)

at

com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:372)

at

java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea

d.java:269)

at

java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j

ava:184)

at

java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j

ava:178)

at java.awt.Dialog$1.run(Dialog.java:1046)

at java.awt.Dialog$3.run(Dialog.java:1098)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Dialog.show(Dialog.java:1096)

at

com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(Dialo

gWrapperPeerImpl.java:640)

at

com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperP

eerImpl.java:391)

at

com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:952)

at

com.intellij.ide.impl.NewProjectUtil.createNewProject(NewProjectUtil.j

ava:67)

at

com.intellij.ide.actions.NewProjectAction.actionPerformed(NewProjectAc

tion.java:29)

at

com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$ActionGroupDe

scriptor$3.onPress(WelcomeScreen.java:219)

at

com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$ButtonWithExt

ension.onPress(WelcomeScreen.java:833)

at

com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$ActionGroupDe

scriptor$2.mouseClicked(WelcomeScreen.java:155)

at java.awt.Component.processMouseEvent(Component.java:6266)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

at java.awt.Component.processEvent(Component.java:6028)

at java.awt.Container.processEvent(Container.java:2041)

at java.awt.Component.dispatchEventImpl(Component.java:4630)

at java.awt.Container.dispatchEventImpl(Container.java:2099)

at java.awt.Component.dispatchEvent(Component.java:4460)

at

java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)

at

java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)

at

java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

at java.awt.Container.dispatchEventImpl(Container.java:2085)

at java.awt.Window.dispatchEventImpl(Window.java:2478)

at java.awt.Component.dispatchEvent(Component.java:4460)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)

at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:621)

at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:507)

at

com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:372)

at

java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea

d.java:269)

at

java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j

ava:184)

at

java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea

d.java:174)

at

java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

at

java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

---

Original message URL:

http://www.jetbrains.net/devnet/message/5259148#5259148

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Comment actions Permalink

Yes, that seems to be my problem. Sorry about that.

0

Please sign in to leave a comment.