Opened 10 years ago

Closed 10 years ago

#531 closed defect (fixed)

[patch] Debugging models with subclassing raises errors in Komodo

Reported by: Andreas Owned by: adrian
Component: Core (Other) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Debugging Django applications with ActiveState Komodo raises 'unexpected keyword argument' errors, e.g.:

Traceback (most recent call last):
  File "C:\Programme\ActiveState Komodo 3.1\dbgp\pythonlib\dbgp\", line 1799, in runMain
    self.dbg.runfile(debug_args[0], debug_args)
  File "C:\Programme\ActiveState Komodo 3.1\dbgp\pythonlib\dbgp\", line 1524, in runfile
    h_execfile(file, args, module=main, tracer=self)
  File "C:\Programme\ActiveState Komodo 3.1\dbgp\pythonlib\dbgp\", line 590, in __init__
    execfile(file, globals, locals)
  File "C:\Dokumente und Einstellungen\User\Eigene Dateien\myproject\apps\tasks\models\", line 20, in __main__
    class SubTask(Task):
  File "C:\Programme\Python24\lib\site-packages\django\core\meta\", line 443, in __new__
    opts = bases[0]._meta.copy(**meta_overrides)
  File "C:\Programme\Python24\lib\site-packages\django\core\meta\", line 238, in copy
    return self.__class__(**args)
TypeError: Error when calling the metaclass bases
    __init__() got an unexpected keyword argument 'is_auto'

The attached patch solves the problem, but there is certainly a better way to solve it. I am not sure if this problem is limited to Komodo, my installation of Komodo or if there is some larger issue behind it.

Attachments (1)

debug.patch (582 bytes) - added by Andreas 10 years ago.

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by Andreas

comment:1 Changed 10 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

This should be fixed in the magic-removal branch.

Note: See TracTickets for help on using tickets.
Back to Top