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 #1840

Closed
dthboyd opened this issue Nov 27, 2017 · 6 comments
Closed

rpy2 #1840

dthboyd opened this issue Nov 27, 2017 · 6 comments
Labels
python Issue is about python-related stuff, including pip.

Comments

@dthboyd
Copy link

dthboyd commented Nov 27, 2017

from rpy2.rinterface._rinterface import (baseenv, emptyenv, endr)

ImportError: dlopen failed: cannot locate symbol "ptr_R_ShowFiles" referenced by "/data/data/com.termux/files/usr/lib/python3.6/site-packages/rpy2-2.9.1-py3.6-linux-aarch64.egg/rpy2/rinterface/_rinterface.cpython-36m.so"...

@Grimler91
Copy link
Member

dlopen issues are most often solved by first making sure the library providing the symbol is installed (in this case R I suppose), and then running the installation with LDFLAGS set to point to the library containing the symbol that wasn't found.

You will need to reinstall rpy2 with `LDFLAGS=" -lLIBRARY" where LIBRARY should be replaced with the name of R library containing the missing symbol.

@Grimler91 Grimler91 added the python Issue is about python-related stuff, including pip. label Nov 27, 2017
@dthboyd
Copy link
Author

dthboyd commented Nov 27, 2017 via email

@dthboyd
Copy link
Author

dthboyd commented Nov 28, 2017 via email

@fornwall
Copy link
Member

I'm closing this as it's not really that can be worked around on the side of Termux. It may be fixed by running on Android 6 or later, as RTLD_GLOBAL was fixed in Android 6 - see android/ndk#201.

@dthboyd You may get better help by asking a rpy2 developer here!

@its-pointless
Copy link
Contributor

Since this is also about R it probably belongs over at https://github.com/its-pointless/gcc_termux as well. I may or may not be able or have time to fix this but someone might see it there.

@SDRausty

This comment was marked as spam.

@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
python Issue is about python-related stuff, including pip.
Projects
None yet
Development

No branches or pull requests

5 participants