Hi! After trying several alternatives to run R/radian on Android, I ended up in the following scenario where I'm failing again to install radian due to a cffi-related issue. Any help will be welcome!
The scenario:
Termux (up to date, version 0.118.0, F-Droid installed) running on Android 13 (up to date, security patch level: 1 June 2023) on a Samsung Galaxy A52s 5G cellular
I created and activated a Python virtual environment and installed an updated pip3 release (pip 23.1.2).
I tried to install radian in the virtual environment and get (I think the following lines are the most relevant of the entire output):
import _cffi_backend as backend
ImportError: dlopen failed: library
"/tmp/pip-build-env-y3b731_v/normal/lib/python3.11/site-packages/_cffi_backend.cpython-311.so"
needed or dlopened by
"/data/data/com.termux/files/usr/lib/libpython3.11.so.1.0" is not accessible for the namespace "(default)"
I can locate the required file as cffi is installed in the virtual environment:
(VirtualEnviron) root@localhost:~# pip3 list Package Version
---------- -------
cffi 1.15.1
pip 23.1.2
pycparser 2.21
setuptools 68.0.0
(VirtualEnviron) root@localhost:~#
Thus, I need to improve my understanding of how the build process in a virtual environment works. In this case, I think I'm failing to understand what is not accessible for the namespace "(default)" does mean and how to solve the situation. Any insight will be very welcome!
Hi! After trying several alternatives to run R/radian on Android, I ended up in the following scenario where I'm failing again to install radian due to a cffi-related issue. Any help will be welcome!
The scenario:
Ubuntu 22.04 LTS
installed with proot-distro. Fully updated. Installed as per https://github.com/termux/proot-distropython3
installed (apt install python3
);Python 3.10.6
pip
installed (apt install python3-pip
);pip3
fails as per https://github.com/pypa/pip/issues/10887pip3
release (pip 23.1.2
).radian
in the virtual environment and get (I think the following lines are the most relevant of the entire output):I can
locate
the required file as cffi is installed in the virtual environment:Thus, I need to improve my understanding of how the build process in a virtual environment works. In this case, I think I'm failing to understand what
is not accessible for the namespace "(default)"
does mean and how to solve the situation. Any insight will be very welcome!I really appreciate any help you can provide.