'twophase' is an invalid keyword
博客专区 > rootliu 的博客 > 博客详情
'twophase' is an invalid keyword
rootliu 发表于3个月前
'twophase' is an invalid keyword
  • 发表于 3个月前
  • 阅读 5
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云 技术升级10大核心产品年终让利>>>   

'twophase' is an invalid keyword

Bohuslav Hosek created an issue 2017-05-23

I have problem,

engine=sqlalchemy.create_engine('oracle+cx_oracle://user:password@dsn') connection=engine.connect()

TypeError: 'twophase' is an invalid keyword argument for this function

sqlalchemy.version '1.1.10' cx_Oracle.version '6.0b1'

Comments (8)

  1. Michael Bayer repo owner

    cx_Oracle 6.0b1 is in beta, I would suggest using the official release which is 5.3.

  2. Michael Bayer repo owner
    • changed component to oracle
    • changed milestone to 1.1.x
  3. Michael Bayer repo owner

    Remove twophase for cx_Oracle 6.x

    Support for two-phase transactions has been removed entirely for cx_Oracle when version 6.0b1 or later of the DBAPI is in use. The two- phase feature historically has never been usable under cx_Oracle 5.x in any case, and cx_Oracle 6.x has removed the connection-level "twophase" flag upon which this feature relied.

    Change-Id: I2e8161cc2bc12f4845c9224cd483038112fe9734 Fixes: #3997

    → <<cset 1b98ce355a60>>

  4. Michael Bayer repo owner

    Remove twophase for cx_Oracle 6.x

    Support for two-phase transactions has been removed entirely for cx_Oracle when version 6.0b1 or later of the DBAPI is in use. The two- phase feature historically has never been usable under cx_Oracle 5.x in any case, and cx_Oracle 6.x has removed the connection-level "twophase" flag upon which this feature relied.

    Change-Id: I2e8161cc2bc12f4845c9224cd483038112fe9734 Fixes: #3997 (cherry picked from commit 1b98ce355a60b7ad9898aeb412c21591bb438231)

    → <<cset 41e92f855815>>

  5. Bohuslav Hosek reporter

    SQLAlchemy: 1.2.0b1 cx_Oracle : 6.0b1

    It's OK, thanks.

  6. fly Go

    How to solved it? I can only install cx_Oracle 6 instead of 5. Because cx_Oracle 5 need oralce include folder which I don't know how to download. I don't know how two-phase comes in my oracle.

  7. Michael Bayer repo owner

    fly Go the fix is released as of 1.1.11. for either cx_Oracle, 5 or 6, you need the oracle client libraries in order to run it (maybe not on windows) but in any case you can get those libraries from http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html. you don't have to run the database just install the packages.

  8. Michael Bayer repo owner

    Remove twophase for cx_Oracle 6.x

    Support for two-phase transactions has been removed entirely for cx_Oracle when version 6.0b1 or later of the DBAPI is in use. The two- phase feature historically has never been usable under cx_Oracle 5.x in any case, and cx_Oracle 6.x has removed the connection-level "twophase" flag upon which this feature relied.

    Change-Id: I2e8161cc2bc12f4845c9224cd483038112fe9734 Fixes: #3997 (cherry picked from commit 1b98ce355a60b7ad9898aeb412c21591bb438231) (cherry picked from commit 41e92f85581589fd011f93c86b81439f71237433)

    → <<cset 919b9b362fb6>>

  9. Log in to comment
共有 人打赏支持
粉丝 2
博文 140
码字总数 2149
×
rootliu
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: