frida-python icon indicating copy to clipboard operation
frida-python copied to clipboard

Failed to load the Frida native extension: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory

Open Coldz0 opened this issue 8 years ago • 7 comments

Error `root@Kali:~# frida


Failed to load the Frida native extension: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory Please ensure that the extension was compiled for Python 3.x.


Traceback (most recent call last): File "/usr/local/bin/frida", line 11, in load_entry_point('frida==9.1.6', 'console_scripts', 'frida')() File "/usr/local/lib/python3.6/site-packages/pkg_resources/init.py", line 565, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python3.6/site-packages/pkg_resources/init.py", line 2631, in load_entry_point return ep.load() File "/usr/local/lib/python3.6/site-packages/pkg_resources/init.py", line 2291, in load return self.resolve() File "/usr/local/lib/python3.6/site-packages/pkg_resources/init.py", line 2297, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/usr/local/lib/python3.6/site-packages/frida-9.1.6-py3.6-linux-i686.egg/frida/init.py", line 26, in File "/usr/local/lib/python3.6/site-packages/frida-9.1.6-py3.6-linux-i686.egg/frida/init.py", line 6, in File "/usr/local/lib/python3.6/site-packages/frida-9.1.6-py3.6-linux-i686.egg/_frida.py", line 7, in File "/usr/local/lib/python3.6/site-packages/frida-9.1.6-py3.6-linux-i686.egg/_frida.py", line 6, in bootstrap File "/usr/local/lib/python3.6/imp.py", line 342, in load_dynamic return _load(spec) ImportError: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory root@Kali:~#

`

Coldz0 avatar Feb 11 '17 14:02 Coldz0

I've installed frida with pip, on python 3.4 and I'm getting the same error.

melon3r avatar Mar 13 '17 19:03 melon3r

Hi, I've seen the same problem on python 3.5 I think that you have to use python 3.6 it is the latest stable version of python.

Thanks

max01203 avatar Mar 13 '17 19:03 max01203

Yes unfortunately our 3.x binaries were built against 3.6. It's easy to build Frida yourself though, but if you're feeling really lazy there is a workaround: the Python 3 ABI is stable, so you can use a hex-editor to tweak the version number of the library soname that it's linked against.

oleavr avatar Mar 13 '17 19:03 oleavr

Good to know thanks for the information :)

max01203 avatar Mar 13 '17 19:03 max01203

I think we can close this issue you just need to install python 3.6

max01203 avatar Mar 22 '17 17:03 max01203

I have python 3.6 but got the same problem

someOne404 avatar Jul 29 '19 14:07 someOne404

I have python --version Python 3.7.5 and I got the same problem.

Josue198s avatar Dec 29 '19 10:12 Josue198s