Hi all,
I'm new to Python from Java. I've installed the bitnami stack, and I'm having issues getting code completion to work. I'm using the latest aptana studio 3 ( 3.0.4.201108101506) and pydev (2.2.1.2011073123) using the django bitnami stack version 1.3-1 on OS X 10.5.6. Here is how I have configured PyDev.
!ENTRY org.python.pydev.core 4 4 2011-08-21 10:32:00.646
!MESSAGE Error connecting to python process (Name:/Applications/djangostack-1.3-1/python/bin/python:EndName:Version2.6Executable:/Applications/djangostack-1.3-1/python/bin/.python.bin|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/MySQL_python-1.2.3c1-py2.6-macosx-10.4-i386.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/South-0.7.3-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/html5lib-0.90-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_sentry-1.8.9-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/importlib-1.0.2-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_templatetag_sugar-0.1-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_indexer-0.3.0-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_paging-0.2.4-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/Pinax-0.9a2.dev1004-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/Unipath-0.2.1-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python26.zip|/Applications/djangostack-1.3-1/python/lib/python2.6|/Applications/djangostack-1.3-1/python/lib/python2.6/plat-darwin|/Applications/djangostack-1.3-1/python/lib/python2.6/plat-mac|/Applications/djangostack-1.3-1/python/lib/python2.6/plat-mac/lib-scriptpackages|/Applications/djangostack-1.3-1/python/lib/python2.6/lib-tk|/Applications/djangostack-1.3-1/python/lib/python2.6/lib-old|/Applications/djangostack-1.3-1/python/lib/python2.6/lib-dynload|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages@$|Image|OpenGL|__builtin__|__main__|_ast|_bisect|_bytesio|_codecs|_codecs_cn|_codecs_hk|_codecs_iso2022|_codecs_jp|_codecs_kr|_codecs_tw|_collections|_csv|_fileio|_functools|_heapq|_hotshot|_json|_locale|_lsprof|_md5|_multibytecodec|_random|_sha|_sha256|_sha512|_socket|_sre|_ssl|_struct|_subprocess|_symtable|_warnings|_weakref|_winreg|array|audioop|binascii|cPickle|cStringIO|cmath|datetime|email|errno|exceptions|future_builtins|gc|hashlib|imageop|imp|itertools|marshal|math|mmap|msvcrt|nt|numpy|operator|os|os.path|parser|posix|pwd|pytest|readline|scipy|signal|socket|strop|sys|thread|time|wx|wxPython|xxsubtype|zipimport|zlib /Applications/Aptana Studio 3/plugins/org.python.pydev_2.2.1.2011073123/PySrc/pycompletionserver.py 58525 58524) - the process in NOT ALIVE anymore (output=133) - the output of the process is: Std output:
Err output:
dyld: Library not loaded: /bitnami/djangostack-osx-x86/output/common/lib/libreadline.5.2.dylib
Referenced from: /Applications/djangostack-1.3-1/python/bin/.python.bin
Reason: image not found
!STACK 0
java.lang.RuntimeException: Error connecting to python process (Name:/Applications/djangostack-1.3-1/python/bin/python:EndName:Version2.6Executable:/Applications/djangostack-1.3-1/python/bin/.python.bin|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/MySQL_python-1.2.3c1-py2.6-macosx-10.4-i386.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/South-0.7.3-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/html5lib-0.90-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_sentry-1.8.9-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/importlib-1.0.2-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_templatetag_sugar-0.1-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_indexer-0.3.0-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_paging-0.2.4-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/Pinax-0.9a2.dev1004-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/Unipath-0.2.1-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python26.zip|/Applications/djangostack-1.3-1/python/lib/python2.6|/Applications/djangostack-1.3-1/python/lib/python2.6/plat-darwin|/Applications/djangostack-1.3-1/python/lib/python2.6/plat-mac|/Applications/djangostack-1.3-1/python/lib/python2.6/plat-mac/lib-scriptpackages|/Applications/djangostack-1.3-1/python/lib/python2.6/lib-tk|/Applications/djangostack-1.3-1/python/lib/python2.6/lib-old|/Applications/djangostack-1.3-1/python/lib/python2.6/lib-dynload|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages@$|Image|OpenGL|__builtin__|__main__|_ast|_bisect|_bytesio|_codecs|_codecs_cn|_codecs_hk|_codecs_iso2022|_codecs_jp|_codecs_kr|_codecs_tw|_collections|_csv|_fileio|_functools|_heapq|_hotshot|_json|_locale|_lsprof|_md5|_multibytecodec|_random|_sha|_sha256|_sha512|_socket|_sre|_ssl|_struct|_subprocess|_symtable|_warnings|_weakref|_winreg|array|audioop|binascii|cPickle|cStringIO|cmath|datetime|email|errno|exceptions|future_builtins|gc|hashlib|imageop|imp|itertools|marshal|math|mmap|msvcrt|nt|numpy|operator|os|os.path|parser|posix|pwd|pytest|readline|scipy|signal|socket|strop|sys|thread|time|wx|wxPython|xxsubtype|zipimport|zlib /Applications/Aptana Studio 3/plugins/org.python.pydev_2.2.1.2011073123/PySrc/pycompletionserver.py 58525 58524) - the process in NOT ALIVE anymore (output=133) - the output of the process is: Std output:
Err output:
dyld: Library not loaded: /bitnami/djangostack-osx-x86/output/common/lib/libreadline.5.2.dylib
Referenced from: /Applications/djangostack-1.3-1/python/bin/.python.bin
Reason: image not found
at org.python.pydev.editor.codecompletion.shell.AbstractShell.startIt(AbstractShell.java:540)
at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:321)
at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:257)
at org.python.pydev.editor.codecompletion.PyCodeCompletion.lazyStartShell(PyCodeCompletion.java:501)
at org.python.pydev.editor.codecompletion.PyCodeCompletion.getCodeCompletionProposals(PyCodeCompletion.java:223)
at org.python.pydev.editor.codecompletion.PythonCompletionProcessor.getPythonProposals(PythonCompletionProcessor.java:230)
at org.python.pydev.editor.codecompletion.PythonCompletionProcessor.computeCompletionProposals(PythonCompletionProcessor.java:163)
at org.python.pydev.editor.simpleassist.SimpleAssistProcessor.computeCompletionProposals(SimpleAssistProcessor.java:181)
at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1834)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:556)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:553)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:488)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:482)
at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1660)
at org.python.pydev.editor.codecompletion.PyContentAssistant.showPossibleCompletions(PyContentAssistant.java:73)
at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:919)
at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1534)
at org.python.pydev.editor.codefolding.PySourceViewer.doOperation(PySourceViewer.java:204)
at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1034)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3782)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1398)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1383)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1412)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1408)
at org.eclipse.swt.widgets.Canvas.sendKeyEvent(Canvas.java:416)
at org.eclipse.swt.widgets.Control.doCommandBySelector(Control.java:958)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5075)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSResponder.interpretKeyEvents(NSResponder.java:56)
at org.eclipse.swt.widgets.Composite.keyDown(Composite.java:587)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:1959)
at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2025)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5047)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4589)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:4666)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:115)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3281)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.aptana.rcp.IDEApplication.start(IDEApplication.java:125)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
</pre>
Any ideas what I've configured incorrectly?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It seems that the problem is that the shell that PyDev is spawning for the code-completion does not have the DYLD_LIBRARY_PATH configured properly, as the real error is:
dyld: Library not loaded: /bitnami/djangostack-osx-x86/output/common/lib/libreadline.5.2.dylib Referenced from: /Applications/djangostack-1.3-1/python/bin/.python.bin Reason: image not found
So, to fix that, close eclipse, start a shell, run the .sh that'll contfigure that shell and then launch eclipse from that shell (this should make it inherit the values from the shell (where you can already launch the pycompletionserver).
Cheers,
Fabio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I'm new to Python from Java. I've installed the bitnami stack, and I'm having issues getting code completion to work. I'm using the latest aptana studio 3 ( 3.0.4.201108101506) and pydev (2.2.1.2011073123) using the django bitnami stack version 1.3-1 on OS X 10.5.6. Here is how I have configured PyDev.
Interpreter: /Applications/djangostack-1.3-1/python/bin/python
Which has correctly detected all my modules.
I can start the process manually after changing my DYLD_LIBRARY_PATH using the bitnami bin/setenv.sh script
python /Applications/Aptana\ Studio\ 3/plugins/org.python.pydev_2.2.1.2011073123/PySrc/pycompletionserver.py 2930 2931
This is the error I receive in the .log file
<pre>
!ENTRY org.python.pydev.core 4 4 2011-08-21 10:32:00.646
!MESSAGE Error connecting to python process (Name:/Applications/djangostack-1.3-1/python/bin/python:EndName:Version2.6Executable:/Applications/djangostack-1.3-1/python/bin/.python.bin|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/MySQL_python-1.2.3c1-py2.6-macosx-10.4-i386.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/South-0.7.3-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/html5lib-0.90-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_sentry-1.8.9-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/importlib-1.0.2-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_templatetag_sugar-0.1-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_indexer-0.3.0-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_paging-0.2.4-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/Pinax-0.9a2.dev1004-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/Unipath-0.2.1-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python26.zip|/Applications/djangostack-1.3-1/python/lib/python2.6|/Applications/djangostack-1.3-1/python/lib/python2.6/plat-darwin|/Applications/djangostack-1.3-1/python/lib/python2.6/plat-mac|/Applications/djangostack-1.3-1/python/lib/python2.6/plat-mac/lib-scriptpackages|/Applications/djangostack-1.3-1/python/lib/python2.6/lib-tk|/Applications/djangostack-1.3-1/python/lib/python2.6/lib-old|/Applications/djangostack-1.3-1/python/lib/python2.6/lib-dynload|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages@$|Image|OpenGL|__builtin__|__main__|_ast|_bisect|_bytesio|_codecs|_codecs_cn|_codecs_hk|_codecs_iso2022|_codecs_jp|_codecs_kr|_codecs_tw|_collections|_csv|_fileio|_functools|_heapq|_hotshot|_json|_locale|_lsprof|_md5|_multibytecodec|_random|_sha|_sha256|_sha512|_socket|_sre|_ssl|_struct|_subprocess|_symtable|_warnings|_weakref|_winreg|array|audioop|binascii|cPickle|cStringIO|cmath|datetime|email|errno|exceptions|future_builtins|gc|hashlib|imageop|imp|itertools|marshal|math|mmap|msvcrt|nt|numpy|operator|os|os.path|parser|posix|pwd|pytest|readline|scipy|signal|socket|strop|sys|thread|time|wx|wxPython|xxsubtype|zipimport|zlib /Applications/Aptana Studio 3/plugins/org.python.pydev_2.2.1.2011073123/PySrc/pycompletionserver.py 58525 58524) - the process in NOT ALIVE anymore (output=133) - the output of the process is: Std output:
Err output:
dyld: Library not loaded: /bitnami/djangostack-osx-x86/output/common/lib/libreadline.5.2.dylib
Referenced from: /Applications/djangostack-1.3-1/python/bin/.python.bin
Reason: image not found
!STACK 0
java.lang.RuntimeException: Error connecting to python process (Name:/Applications/djangostack-1.3-1/python/bin/python:EndName:Version2.6Executable:/Applications/djangostack-1.3-1/python/bin/.python.bin|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/MySQL_python-1.2.3c1-py2.6-macosx-10.4-i386.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/South-0.7.3-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/html5lib-0.90-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_sentry-1.8.9-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/importlib-1.0.2-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_templatetag_sugar-0.1-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_indexer-0.3.0-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/django_paging-0.2.4-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/Pinax-0.9a2.dev1004-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages/Unipath-0.2.1-py2.6.egg|/Applications/djangostack-1.3-1/python/lib/python26.zip|/Applications/djangostack-1.3-1/python/lib/python2.6|/Applications/djangostack-1.3-1/python/lib/python2.6/plat-darwin|/Applications/djangostack-1.3-1/python/lib/python2.6/plat-mac|/Applications/djangostack-1.3-1/python/lib/python2.6/plat-mac/lib-scriptpackages|/Applications/djangostack-1.3-1/python/lib/python2.6/lib-tk|/Applications/djangostack-1.3-1/python/lib/python2.6/lib-old|/Applications/djangostack-1.3-1/python/lib/python2.6/lib-dynload|/Applications/djangostack-1.3-1/python/lib/python2.6/site-packages@$|Image|OpenGL|__builtin__|__main__|_ast|_bisect|_bytesio|_codecs|_codecs_cn|_codecs_hk|_codecs_iso2022|_codecs_jp|_codecs_kr|_codecs_tw|_collections|_csv|_fileio|_functools|_heapq|_hotshot|_json|_locale|_lsprof|_md5|_multibytecodec|_random|_sha|_sha256|_sha512|_socket|_sre|_ssl|_struct|_subprocess|_symtable|_warnings|_weakref|_winreg|array|audioop|binascii|cPickle|cStringIO|cmath|datetime|email|errno|exceptions|future_builtins|gc|hashlib|imageop|imp|itertools|marshal|math|mmap|msvcrt|nt|numpy|operator|os|os.path|parser|posix|pwd|pytest|readline|scipy|signal|socket|strop|sys|thread|time|wx|wxPython|xxsubtype|zipimport|zlib /Applications/Aptana Studio 3/plugins/org.python.pydev_2.2.1.2011073123/PySrc/pycompletionserver.py 58525 58524) - the process in NOT ALIVE anymore (output=133) - the output of the process is: Std output:
Err output:
dyld: Library not loaded: /bitnami/djangostack-osx-x86/output/common/lib/libreadline.5.2.dylib
Referenced from: /Applications/djangostack-1.3-1/python/bin/.python.bin
Reason: image not found
at org.python.pydev.editor.codecompletion.shell.AbstractShell.startIt(AbstractShell.java:540)
at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:321)
at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:257)
at org.python.pydev.editor.codecompletion.PyCodeCompletion.lazyStartShell(PyCodeCompletion.java:501)
at org.python.pydev.editor.codecompletion.PyCodeCompletion.getCodeCompletionProposals(PyCodeCompletion.java:223)
at org.python.pydev.editor.codecompletion.PythonCompletionProcessor.getPythonProposals(PythonCompletionProcessor.java:230)
at org.python.pydev.editor.codecompletion.PythonCompletionProcessor.computeCompletionProposals(PythonCompletionProcessor.java:163)
at org.python.pydev.editor.simpleassist.SimpleAssistProcessor.computeCompletionProposals(SimpleAssistProcessor.java:181)
at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1834)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:556)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:553)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:488)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:482)
at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1660)
at org.python.pydev.editor.codecompletion.PyContentAssistant.showPossibleCompletions(PyContentAssistant.java:73)
at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:919)
at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1534)
at org.python.pydev.editor.codefolding.PySourceViewer.doOperation(PySourceViewer.java:204)
at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1034)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3782)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1398)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1383)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1412)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1408)
at org.eclipse.swt.widgets.Canvas.sendKeyEvent(Canvas.java:416)
at org.eclipse.swt.widgets.Control.doCommandBySelector(Control.java:958)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5075)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSResponder.interpretKeyEvents(NSResponder.java:56)
at org.eclipse.swt.widgets.Composite.keyDown(Composite.java:587)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4985)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:1959)
at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2025)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5047)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4589)
at org.eclipse.swt.widgets.Display.applicationProc(Display.java:4666)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:115)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3281)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.aptana.rcp.IDEApplication.start(IDEApplication.java:125)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
</pre>
Any ideas what I've configured incorrectly?
It seems that the problem is that the shell that PyDev is spawning for the code-completion does not have the DYLD_LIBRARY_PATH configured properly, as the real error is:
dyld: Library not loaded: /bitnami/djangostack-osx-x86/output/common/lib/libreadline.5.2.dylib Referenced from: /Applications/djangostack-1.3-1/python/bin/.python.bin Reason: image not found
So, to fix that, close eclipse, start a shell, run the .sh that'll contfigure that shell and then launch eclipse from that shell (this should make it inherit the values from the shell (where you can already launch the pycompletionserver).
Cheers,
Fabio