It seems there's a mix of interpreter/libraries you're using... The
Python 2.5 interpreter will give that error if a 'with' construct is
used, while it's valid in Python 2.6 (so, you're using a Python 2.5
interpreter with a Python 2.6 library -- so, there's probably some
misconfiguration where you're mixing those).

Cheers,

Fabio

On Thu, Dec 3, 2009 at 12:37 PM, Frank Dornheim <conl...@googlemail.com> wrote:
> Hi,
>
>
> i use pydev (1.5.1.1258496115) on eclipse (3.5.1).
> I want to use the debugger on a program with threading.
> On start i get this following error output ...
>
> Console:
>
> /usr/lib/python2.6/site.py:143: Warning: 'with' will become a reserved
> keyword in Python 2.6
> 'import site' failed; use -v for traceback
> /usr/lib/python2.6/threading.py:572: Warning: 'with' will become a
> reserved keyword in Python 2.6
> Traceback (most recent call last):
>  File 
> "/home/hostadmin/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev.debug_1.5.1.1258496115/pysrc/pydevd.py",
> line 2, in <module>
>    from pydevd_constants import * #...@unusedwildimport
>  File 
> "/home/hostadmin/.eclipse/org.eclipse.platform_3.5.0_155965261/plugins/org.python.pydev.debug_1.5.1.1258496115/pysrc/pydevd_constants.py",
> line 35, in <module>
>    import threading
>  File "/usr/lib/python2.6/threading.py", line 572
>    with _active_limbo_lock:
>                          ^
> SyntaxError: invalid syntax
>
> Error- Log:
> java.net.SocketException: Socket closed
>        at java.net.PlainSocketImpl.socketAccept(Native Method)
>        at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)
>        at java.net.ServerSocket.implAccept(ServerSocket.java:453)
>        at java.net.ServerSocket.accept(ServerSocket.java:421)
>        at 
> org.python.pydev.debug.model.remote.ListenConnector.run(ListenConnector.java:40)
>        at java.lang.Thread.run(Thread.java:619)
>
> On a program without threading, i have no errors.
>
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> Pydev-users mailing list
> Pydev-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pydev-users
>

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to