Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpy2 cffi failure #186

Closed
yannikschaelte opened this issue Oct 20, 2019 · 5 comments
Closed

rpy2 cffi failure #186

yannikschaelte opened this issue Oct 20, 2019 · 5 comments
Assignees
Labels

Comments

@yannikschaelte
Copy link
Member

There seems to be a misbehavior of cffi 1.13.0, see https://bitbucket.org/rpy2/rpy2/issues/591/runtimeerror-found-a-situation-in-which-we
and conda-forge/rpy2-feedstock#35.
Until that is resolved, we require cffi==1.12.2 in .travis_pip_reqs (please also do that when using the R simulators in practice), but should undo that again as soon as the situation is resolved.

@yannikschaelte yannikschaelte self-assigned this Oct 20, 2019
@lgautier
Copy link

Note that the issue seems restricted to using rpy2 with ccffic'c ABI mode. Using it through the API mode is still working with cffic1.13.0 (See box "Notes" at https://rpy2.github.io/doc/v3.2.x/html/overview.html#install-from-source).

@yannikschaelte
Copy link
Member Author

Thanks for pointing this out @lgautier ! So that would also work. (I did not check in sufficient detail, just took, time-constrained, the first fix that worked.)

@lgautier
Copy link

rpy2 will try to use the API mode (more stable and recommended, from the cffi documentation, and with at one one addititonal feature available on the rpy2 side), but will quietly fallback to the ABI mode if it fails.

In time, some of the performance lost with rpy2's move from C-extension to cffi will be recovered, but I anticipate that most will only be available with the API mode.

@lgautier
Copy link

cffi 1.13.1 was just released and it includes a fix to the issue.

@yannikschaelte
Copy link
Member Author

thanks for the update! we'll give it a try asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants