Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4131788
By: iamroderik

Hmm..Do I need a jython instalation for this to work?

- I've added the jython.jar (with Libs) found in org.python.pydev.jython_1.2.6
to Preferences::interpreter jython.
- I've created a jython2.1 project called pydev_scripts and added its src folder
to additional jython scripts.
- I've created a file in the src folder "pydev_transmit.py" and pasted the code
into the file.

When saving I get this output in the console:
--->  reloading
/Users/roderik/Documents/workspace/pydev_scripts/src/pyedit_transmit.py
Traceback (innermost last):
  File "<string>", line 1, in ?
  File 
"/Users/roderik/Documents/workspace/pydev_scripts/src/pyedit_transmit.py",
line 4, in ?
org.eclipse.swt.SWTException: Invalid thread access
        at org.eclipse.swt.SWT.error(SWT.java:3374)
        at org.eclipse.swt.SWT.error(SWT.java:3297)
        at org.eclipse.swt.SWT.error(SWT.java:3268)
        at org.eclipse.swt.widgets.Widget.error(Widget.java:653)
        at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:331)
        at org.eclipse.swt.custom.StyledText.setEditable(StyledText.java:6757)
        at org.eclipse.jface.text.TextViewer.setEditable(TextViewer.java:1824)
        at 
org.eclipse.ui.texteditor.AbstractTextEditor.updateState(AbstractTextEditor.
java:3766)
        at 
org.eclipse.ui.texteditor.AbstractTextEditor.doSave(AbstractTextEditor.java:
3583)
        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:585)
        at 
org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
        at org.python.core.PyMethod.__call__(PyMethod.java)
        at org.python.core.PyObject.__call__(PyObject.java)
        at org.python.core.PyInstance.invoke(PyInstance.java)
        at 
org.python.pycode._pyx422.f$0(/Users/roderik/Documents/workspace/pydev_scrip
ts/src/pyedit_transmit.py:4)
        at 
org.python.pycode._pyx422.call_function(/Users/roderik/Documents/workspace/p
ydev_scripts/src/pyedit_transmit.py)
        at org.python.core.PyTableCode.call(PyTableCode.java)
        at org.python.core.PyCode.call(PyCode.java)
        at org.python.core.Py.runCode(Py.java)
        at org.python.core.Py.exec(Py.java)
        at org.python.pycode._pyx423.f$0(<string>:1)
        at org.python.pycode._pyx423.call_function(<string>)
        at org.python.core.PyTableCode.call(PyTableCode.java)
        at org.python.core.PyCode.call(PyCode.java)
        at org.python.core.Py.runCode(Py.java)
        at org.python.core.Py.exec(Py.java)
        at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
        at org.python.pydev.jython.JythonPlugin.exec(JythonPlugin.java:423)
        at org.python.pydev.jython.JythonPlugin.execAll(JythonPlugin.java:302)
        at org.python.pydev.jython.JythonPlugin.execAll(JythonPlugin.java:280)
        at 
org.python.pydev.editor.scripting.PyEditScripting.doExec(PyEditScripting.jav
a:34)
        at 
org.python.pydev.editor.scripting.PyEditScripting.onSave(PyEditScripting.jav
a:42)
        at org.python.pydev.editor.PyEditNotifier$2.run(PyEditNotifier.java:57)
        at org.python.pydev.editor.PyEditNotifier$3.run(PyEditNotifier.java:75)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

org.eclipse.swt.SWTException: org.eclipse.swt.SWTException: Invalid thread
access


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to