Hi Lars I am facing new problem while I try to use pip on a different router.
I have installed python and python-pip on usb. python is working fine, but pip is not working now. root@OpenWrt:~# which python /mnt/usb/usr/bin/python root@OpenWrt:~# which pip /mnt/usb/usr/bin/pip root@OpenWrt:~# root@OpenWrt:~# pip -ash: pip: not found root@OpenWrt:~# root@OpenWrt:~# python -m pip -V /mnt/usb/usr/bin/python: File not found; 'pip' is a package and cannot be directly executed root@OpenWrt:~# root@OpenWrt:~# root@OpenWrt:~# opkg files python-pip Package python-pip (1.5.6-1) is installed on usb and has the following files: /mnt/usb/usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/_vendor/html5lib/treebuilders/__init__.py .... /mnt/usb/usr/bin/pip It is installed in site-packages. Does it have any effect? Could you please provide some inputs on this? Best Regards Phani On Wed, Feb 14, 2018 at 4:19 PM, Phani Siriki <yvsg.pha...@gmail.com> wrote: > Hi Lars > > You are correct. There are some relocation errors, Could you give me some > pointers on how to resolve this? > > root@Mesh-30:~# ldd /usr/bin/python > /lib/ld-uClibc.so.0 (0x55566000) > libpython2.7.so.1.0 => /mnt/usb/usr/lib/libpython2.7.so.1.0 > (0x77c9e000) > libpthread.so.0 => /lib/ld-uClibc.so.0 (0x55566000) > libdl.so.0 => /lib/ld-uClibc.so.0 (0x55566000) > libutil.so.0 => /lib/ld-uClibc.so.0 (0x55566000) > libz.so.1 => /usr/lib/libz.so.1 (0x77c7e000) > libm.so.0 => /lib/ld-uClibc.so.0 (0x55566000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x77c5a000) > libc.so.0 => /lib/ld-uClibc.so.0 (0x55566000) > Error relocating /mnt/usb/usr/lib/libpython2.7.so.1.0: __fgetc_unlocked: > symbol not found > Error relocating /mnt/usb/usr/lib/libpython2.7.so.1.0: __isinf: symbol not > found > Error relocating /mnt/usb/usr/lib/libpython2.7.so.1.0: __ctype_toupper: > symbol not found > Error relocating /mnt/usb/usr/lib/libpython2.7.so.1.0: __fputc_unlocked: > symbol not found > Error relocating /mnt/usb/usr/lib/libpython2.7.so.1.0: __ctype_tolower: > symbol not found > Error relocating /mnt/usb/usr/lib/libpython2.7.so.1.0: __ctype_b: symbol not > found > Error relocating /mnt/usb/usr/lib/libpython2.7.so.1.0: fcntl64: symbol not > found > Error relocating /mnt/usb/usr/lib/libpython2.7.so.1.0: __isinff: symbol not > found > Error relocating /mnt/usb/usr/lib/libpython2.7.so.1.0: __finite: symbol not > found > Error relocating /mnt/usb/usr/lib/libpython2.7.so.1.0: tmpnam_r: symbol not > found > Error relocating /mnt/usb/usr/lib/libpython2.7.so.1.0: __isnan: symbol not > found > Error relocating /usr/bin/python: __uClibc_main: symbol not found > > Best Regards > Phani > > On Wed, Feb 14, 2018 at 4:09 PM, Lars Kruse <li...@sumpfralle.de> wrote: >> >> Hello Phani, >> >> >> Am Wed, 14 Feb 2018 15:00:34 -0600 >> schrieb Phani Siriki <yvsg.pha...@gmail.com>: >> >> > root@Mesh-30:~# python >> > -ash: python: not found >> >> I guess, this means that one of the libraries that the python binary is >> linked >> against, is missing. >> Maybe run "ldd /usr/bin/python" and check if all referenced libraries >> exist. >> >> Cheers, >> Lars >> _______________________________________________ >> openwrt-users mailing list >> openwrt-users@lists.openwrt.org >> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users > > _______________________________________________ openwrt-users mailing list openwrt-users@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users