Dowser:“对内部功能的不良论证”

时间:2010-04-16 11:52:49

标签: python memory-management

我正在尝试Dowser,这真的很酷,但我遇到了一个小问题,我在Google上找不到任何有用的东西,所以我在这里...... ^^;

我正在运行一个CherryPy + SQLAlchemy应用程序..它正常工作,除了当我启用Dowser时(也就是在我调用dowser.Root()之后),我现在得到例外情况:

  

关于SystemError:   ../Objects/tupleobject.c:809:不好   内部函数的参数

关于无辜的结构,例如访问SQLA映射的字段。回溯的相关部分:

  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.8-py2.6.egg/sqlalchemy/orm/attributes.py", line 158, in __get__
    return self.impl.get(instance_state(instance), instance_dict(instance))
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.8-py2.6.egg/sqlalchemy/orm/attributes.py", line 377, in get
    value = callable_()
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.8-py2.6.egg/sqlalchemy/orm/strategies.py", line 586, in __call__
    result = q.all()
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.8-py2.6.egg/sqlalchemy/orm/query.py", line 1267, in all
    return list(self)
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.8-py2.6.egg/sqlalchemy/orm/query.py", line 1422, in instances
    rows = [process[0](context, row) for row in fetch]
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.8-py2.6.egg/sqlalchemy/orm/query.py", line 2032, in main
    return _instance(row, None)
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.8-py2.6.egg/sqlalchemy/orm/mapper.py", line 1653, in _instance
    identitykey = identity_key(row)
  File "/usr/local/lib/python2.6/dist-packages/SQLAlchemy-0.5.8-py2.6.egg/sqlalchemy/orm/mapper.py", line 1594, in identity_key
    return (identity_class, tuple(row[column] for column in pk_cols))

这可能与Dowser线程有关,访问垃圾收集器?我可以查看什么提示?

我在Xubuntu Jaunty上运行Python 2.6.2。

感谢您的关注!

0 个答案:

没有答案