randy3k / radian

A 21 century R console
MIT License
1.96k stars 73 forks source link

another cffi-related installation issue #428

Open rrodrigueznt opened 1 year ago

rrodrigueznt commented 1 year ago

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:

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:~# locate _cffi_backend.cpython-311.so
/root/VirtualEnviron/lib/python3.11/site-packages/_cffi_backend.cpython-311.so
(VirtualEnviron) root@localhost:~#
(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!

I really appreciate any help you can provide.

rrodrigueznt commented 1 year ago
(VirtualEnviron) root@localhost:~#
export PATH=$PATH:/root/VirtualEnviron/lib/python3.11/site-packages/

Didn't help.

aidan-gibson commented 8 months ago

Try installing with pipx tbh