Menu

Unable to run Jython scripts as Debug

2009-03-12
2013-03-15
  • Scott Andrew Pataki

    I'm attempting to run code I'm working on in as Debug with Jython and getting error messages. 

    Plug-in: PyDev 1.4.4.2336
    Eclipse: 3.4.2 (Classic Eclipse download)
    System: Mac OS X (10.5.6)
                 (recently unboxed, most settings default: haven't change Firewall configuration)
    Jython: 2.5.b4

    I get the following output in the console along with an error dialog:

    Traceback (most recent call last):
      File "/Applications/eclipse/plugins/org.python.pydev.debug_1.4.4.2636/pysrc/pydevd.py", line 4, in <module>
        from pydevd_comm import  CMD_CHANGE_VARIABLE,\
      File "/Applications/eclipse/plugins/org.python.pydev.debug_1.4.4.2636/pysrc/pydevd_comm.py", line 70, in <module>
        import pydevd_vars
      File "/Applications/eclipse/plugins/org.python.pydev.debug_1.4.4.2636/pysrc/pydevd_vars.py", line 73, in <module>
        typeMap = [
    AttributeError: 'javapackage' object has no attribute 'PyJavaInstance'

    The error dialog's details:

    Unexpected error setting up the debugger
    Socket closed

    Any clue?  Do I actually need to open a socket for the debugger?  Any tips on what directions I need to go to figure this out?

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-03-16

      This seems a problem with Jython 2.5b4.

      It appears that the type PyJavaInstance is no longer available in Jython (so, they broke the backward compatibility on that).

      Commenting that line in pydevd_vars.py should be OK for now until a proper fix is done (please report that as a bug).

      Cheers,

      Fabio

       
    • Scott Andrew Pataki

      I should report this w/ Jython, correct?

       
      • Fabio Zadrozny

        Fabio Zadrozny - 2009-04-21

        Actually, it's already fixed in 1.4.5 (so, there's no need to report it anymore).

        Cheers,

        Fabio

         
    • Scott Andrew Pataki

      I should report this w/ Jython, correct?

       
    • Scott Andrew Pataki

      Awesome - I just updated yesterday.  Thank you Fabio!