oracle/python-oracledb

Unable to use python-oracledb with Cython 3.1.0

Closed this issue · 6 comments

Transferred from discussion #492.

Cython 3.1.0 no longer exports enumerated values of named enumerations.

I have pushed a patch that corrects this issue and have initated a build from which you can download pre-built development wheels once it completes. You can also build from source if you prefer. If you can test your scenario and confirm the patch works as expected, that would be appreciated!

Jaza commented

@anthony-tuininga thanks - I've built latest python-oracledb from source, and I can confirm that your patch corrects this issue.

Can I also humbly suggest that you pin the Cython version to 3.1.x, to prevent a similar problem from potentially happening in future when Cython 3.2.x / Cython 4.0.x is released? I believe a change like this is what you'd need:

Jaza@b3c7248

cjbj commented

@Jaza we'll evaluate pinning in a future version.

This was included in python-oracledb 3.1.1 which was just released.

cjbj commented

We haven't got back to pinning the Cython version so I'm going to reopen this issue to remind us about it.

cjbj commented

Can I also humbly suggest that you pin the Cython version to 3.1.x, to prevent a similar problem from potentially happening in future when Cython 3.2.x / Cython 4.0.x is released?

This is now pinned as part of 2d9f577 which will be in python-oracledb 3.3. Thanks for suggesting it.