RexProScriptException 事务未在 Django 中使用 Titan 打开(图形数据库)

RexProScriptException transaction is not open in Django with Titan (graph DB)

提问人:Dmitry Yudin 提问时间:11/29/2015 最后编辑:ppperyDmitry Yudin 更新时间:4/22/2022 访问量:240

问:

我被我的 TitanDB、Django1.8 和 Mogwai0.7.7 包困住了。 我在 localhost 开发机器上有 Graph 数据库 titan/cassandra,在 rexster gremlin Web 界面中创建错误的查询后,我的 Django Object Graph Mapper mogwai 停止工作。Titan 仍在工作,数据存在,但 Django 停止使用它。

File "/Users/x/envs/graph/lib/python2.7/site-packages/rexpro/connectors/base.py", line 281, in close_transaction
    raise exceptions.RexProScriptException("transaction is not open")
RexProScriptException: transaction is not open.

谷歌搜索后,我找到了这个 bitbucked 修复程序,但我不知道如何应用它。也许用 pip 做一个库更新......

蟒蛇 django gremlin titan rexster

评论

0赞 Dmitry Yudin 12/21/2015
谁想要赏金?没人能帮忙?
1赞 platinummonkey 2/11/2016
可能相关:stackoverflow.com/questions/35323035/...

答:

0赞 auvipy 4/6/2021 #1

你可能需要检查 Django Atomic Transacion,并重新检查包如何处理数据库连接的事务。