Code completion doesn't seem to work

Stan Chan
2009-02-25
2013-03-15
  • Stan Chan

    Stan Chan - 2009-02-25

    Here is the error from the logs:

    !ENTRY org.python.pydev 4 4 2009-02-25 14:32:49.936
    !MESSAGE Error creating python process - exited before creating sockets - exitValue = (1)(C:\Python26\python.exe "C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\786\1\.cp\PySrc\pycompletionserver.py" 2930 2931) - os:Windows XP
    !STACK 1
    org.eclipse.core.runtime.CoreException: Error creating python process - exited before creating sockets - exitValue = (1)(C:\Python26\python.exe "C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\786\1\.cp\PySrc\pycompletionserver.py" 2930 2931) - os:Windows XP
        at org.python.pydev.plugin.PydevPlugin.log(PydevPlugin.java:315)
        at org.python.pydev.editor.codecompletion.shell.AbstractShell.startIt(AbstractShell.java:368)
        at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:237)
        at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:190)
        at org.python.pydev.editor.codecompletion.PyCodeCompletion.lazyStartShell(PyCodeCompletion.java:325)
        at org.python.pydev.editor.codecompletion.PyCodeCompletion.getCodeCompletionProposals(PyCodeCompletion.java:103)
        at org.python.pydev.editor.codecompletion.PythonCompletionProcessor.getPythonProposals(PythonCompletionProcessor.java:217)
        at org.python.pydev.editor.codecompletion.PythonCompletionProcessor.computeCompletionProposals(PythonCompletionProcessor.java:148)
        at org.python.pydev.editor.simpleassist.SimpleAssistProcessor.computeCompletionProposals(SimpleAssistProcessor.java:188)
        at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1836)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:553)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:550)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:485)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:479)
        at org.eclipse.jface.text.contentassist.ContentAssistant$2.run(ContentAssistant.java:377)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    Caused by: java.lang.RuntimeException: Error creating python process - exited before creating sockets - exitValue = (1)(C:\Python26\python.exe "C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\786\1\.cp\PySrc\pycompletionserver.py" 2930 2931) - os:Windows XP
        at org.python.pydev.plugin.PydevPlugin.log(PydevPlugin.java:314)
        ... 39 more
    !SUBENTRY 1 org.python.pydev 4 4 2009-02-25 14:32:49.936
    !MESSAGE Error creating python process - exited before creating sockets - exitValue = (1)(C:\Python26\python.exe "C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\786\1\.cp\PySrc\pycompletionserver.py" 2930 2931) - os:Windows XP
    !STACK 0
    java.lang.RuntimeException: Error creating python process - exited before creating sockets - exitValue = (1)(C:\Python26\python.exe "C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\786\1\.cp\PySrc\pycompletionserver.py" 2930 2931) - os:Windows XP
        at org.python.pydev.plugin.PydevPlugin.log(PydevPlugin.java:314)
        at org.python.pydev.editor.codecompletion.shell.AbstractShell.startIt(AbstractShell.java:368)
        at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:237)
        at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:190)
        at org.python.pydev.editor.codecompletion.PyCodeCompletion.lazyStartShell(PyCodeCompletion.java:325)
        at org.python.pydev.editor.codecompletion.PyCodeCompletion.getCodeCompletionProposals(PyCodeCompletion.java:103)
        at org.python.pydev.editor.codecompletion.PythonCompletionProcessor.getPythonProposals(PythonCompletionProcessor.java:217)
        at org.python.pydev.editor.codecompletion.PythonCompletionProcessor.computeCompletionProposals(PythonCompletionProcessor.java:148)
        at org.python.pydev.editor.simpleassist.SimpleAssistProcessor.computeCompletionProposals(SimpleAssistProcessor.java:188)
        at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1836)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:553)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:550)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:485)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:479)
        at org.eclipse.jface.text.contentassist.ContentAssistant$2.run(ContentAssistant.java:377)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

    !ENTRY org.python.pydev 4 4 2009-02-25 14:32:49.967
    !MESSAGE org.eclipse.core.runtime.CoreException: Error creating python process - exited before creating sockets - exitValue = (1)(C:\Python26\python.exe "C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\786\1\.cp\PySrc\pycompletionserver.py" 2930 2931) - os:Windows XP
    !STACK 0
    java.lang.RuntimeException: org.eclipse.core.runtime.CoreException: Error creating python process - exited before creating sockets - exitValue = (1)(C:\Python26\python.exe "C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\786\1\.cp\PySrc\pycompletionserver.py" 2930 2931) - os:Windows XP
        at org.python.pydev.editor.codecompletion.PyCodeCompletion.lazyStartShell(PyCodeCompletion.java:333)
        at org.python.pydev.editor.codecompletion.PyCodeCompletion.getCodeCompletionProposals(PyCodeCompletion.java:103)
        at org.python.pydev.editor.codecompletion.PythonCompletionProcessor.getPythonProposals(PythonCompletionProcessor.java:217)
        at org.python.pydev.editor.codecompletion.PythonCompletionProcessor.computeCompletionProposals(PythonCompletionProcessor.java:148)
        at org.python.pydev.editor.simpleassist.SimpleAssistProcessor.computeCompletionProposals(SimpleAssistProcessor.java:188)
        at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1836)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:553)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:550)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:485)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:479)
        at org.eclipse.jface.text.contentassist.ContentAssistant$2.run(ContentAssistant.java:377)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    Caused by: org.eclipse.core.runtime.CoreException: Error creating python process - exited before creating sockets - exitValue = (1)(C:\Python26\python.exe "C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\786\1\.cp\PySrc\pycompletionserver.py" 2930 2931) - os:Windows XP
        at org.python.pydev.editor.codecompletion.shell.AbstractShell.startIt(AbstractShell.java:369)
        at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:237)
        at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:190)
        at org.python.pydev.editor.codecompletion.PyCodeCompletion.lazyStartShell(PyCodeCompletion.java:325)
        ... 35 more
    Caused by: java.lang.Exception: Error creating python process - exited before creating sockets - exitValue = (1)(C:\Python26\python.exe "C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\786\1\.cp\PySrc\pycompletionserver.py" 2930 2931) - os:Windows XP
        ... 39 more

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-02-26

      What do you get when you run the command below directly from a prompt?

      C:\Python26\python.exe "C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\786\1\.cp\PySrc\pycompletionserver.py" 2930 2931

      Cheers,

      Fabio

       
      • Stan Chan

        Stan Chan - 2009-02-26

        I get this:
        Traceback (most recent call last):
          File "C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundle\786\1\.cp\PySrc\pycompletionserver.py", line 34, in <module>
            import importsTipper
        ImportError: No module named importsTipper

        Printing out sys.path before the import:
        ['C:\\Program Files\\eclipse\\configuration\\org.eclipse.osgi\\bundles\\786\\1\\.cp\\PySrc', 'C:\\Python26\\lib\\site-packages\\setuptools-0.6c9-py2.6.egg', 'C:\\Python26\\lib\\site-packages\\zsi-2.1_a1-py2.5.egg', 'C:\\Python26\\lib\\site-packages\\paramiko-1.7.4-py2.6.egg', 'C:\\WINDOWS\\system32\\python26.zip', 'C:\\Python26\\DLLs', 'C:\\Python26\\lib', 'C:\\Python26\\lib\\plat-win', 'C:\\Python26\\lib\\lib-tk', 'C:\\Python26', 'C:\\Python26\\lib\\site-packages', 'C:\\Python26\\lib\\site-packages\\win32', 'C:\\Python26\\lib\\site-packages\\win32\\lib', 'C:\\Python26\\lib\\site-packages\\Pythonwin', 'C:\\Python26\\lib\\site-packages\\wx-2.8-msw-unicode']

         
        • Fabio Zadrozny

          Fabio Zadrozny - 2009-02-26

          Strange, on the PySrc folder you should have the importsTipper.py file to be imported... It seeems your installation is a bit awkward...

          Which files you have in that folder (PySrc)?

          You should have:

          debug.py
          importsTipper.py
          interpreterInfo.py
          jyimportsTipper.py
          pycompletionserver.py
          pydevconsole.py
          refactoring.py
          SocketTestRunner.py
          unittest2.py
          _completer.py
          _pydevd_re.py
          _pydev_inspect.py
          _pydev_SimpleXMLRPCServer.py
          _pydev_xmlrpclib.py
          _tipper_common.py

          Also, I find it strange that you don't have the org.python.pydevXXXX folders...

          Cheers,

          Fabio

           

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks