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

reticulate 1.39 breaks embedding R in python environment. #1668

Closed
randy3k opened this issue Sep 16, 2024 · 0 comments · Fixed by #1670
Closed

reticulate 1.39 breaks embedding R in python environment. #1668

randy3k opened this issue Sep 16, 2024 · 0 comments · Fixed by #1670

Comments

@randy3k
Copy link
Contributor

randy3k commented Sep 16, 2024

I am the author of radian, I was reported that radian doesn't work with new version of reticulate, see randy3k/radian#489.

After poking around, it seems that it is caused by this line

GILScope scope;

in main_process_python_info_unix. AFAICT, It is trying to initialize python by running reticulate:::initialize_python()
but initialize_python calls py_discover_config which calls main_process_python_info and main_process_python_info_unix.

It creates a dead loop.

I tried commented out this line // GILScope scope;, and it seems that it is now back in working, but not sure if GIL is needed in this function.

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

Successfully merging a pull request may close this issue.

1 participant