Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sqlalchemy 1.1.10 oracle connection error

I'm running this code to connect to an Oracle database:

engine = sqlalchemy.create_engine("oracle://user:password@dsn")
engine.execute("select 1 from dual")

I get the error message: 'twophase' is an invalid keyword argument for this function.

I'm using cx_oracle 6.0b1 and SQLAlchemy 1.10. When I was using cx_oracle 5.2.1 and SQLAlchemy 1.1.5 the code worked

Any idea what's causing this now?

like image 251
Alon Avatar asked May 23 '17 07:05

Alon


1 Answers

Solved - this is an open issue with sqlalchemy, will be solved in the next release

like image 135
Alon Avatar answered Sep 21 '22 18:09

Alon