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

another cffi-related installation issue #428

Open
rrodrigueznt opened this issue Jul 2, 2023 · 2 comments
Open

another cffi-related installation issue #428

rrodrigueznt opened this issue Jul 2, 2023 · 2 comments

Comments

@rrodrigueznt
Copy link

rrodrigueznt commented Jul 2, 2023

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
Copy link
Author

rrodrigueznt commented Jul 2, 2023

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

Didn't help.

@aidan-gibson
Copy link

Try installing with pipx tbh

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

No branches or pull requests

2 participants