Hi Lars

Sorry for the late reply.

Thank you for the awesome suggestion.

I redirected stderr to file and observed below error.

shell script:
========
...
/usr/bin/python /root/hello.py > /root/file-name 2>&1
...

root@OpenWrt:~# cat file-name
/usr/bin/python: can't load library 'libpython2.7.so.1.0'

root@OpenWrt:~# which python
/usr/bin/python

root@OpenWrt:~# ls -l /usr/bin/python
lrwxrwxrwx    1 root     root            23 Feb 14  2018 /usr/bin/python ->
/mnt/usb/usr/bin/python

root@OpenWrt:~# ldd python
        libpython2.7.so.1.0 => /mnt/usb/usr/lib/libpython2.7.so.1.0
(0x77864000)
        libpthread.so.0 => /mnt/usb/lib/libpthread.so.0 (0x7783e000)
        libdl.so.0 => /lib/libdl.so.0 (0x7782a000)
        libutil.so.0 => /lib/libutil.so.0 (0x77819000)
        libz.so.1 => /mnt/usb/usr/lib/libz.so.1 (0x777fb000)
        libm.so.0 => /lib/libm.so.0 (0x777d5000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x777b1000)
        libc.so.0 => /lib/libc.so.0 (0x77744000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x779fa000)

Could you please help me how to resolve this?

Best Regards
Phani

On Thu, Feb 15, 2018 at 3:11 PM, Lars Kruse <[email protected]> wrote:

> Hello Phani,
>
>
> Am Thu, 15 Feb 2018 09:21:09 -0600
> schrieb Phani Siriki <[email protected]>:
>
> > I tried as suggested, but it didn't work :(
>
> Just in case you are running out of ideas:
> did you try the suggestions that I put down in my first response to this
> thread
> (Wed, 14 Feb 2018 21:56:08 +0100)?
> What did you discover along this path?
>
> Cheers,
> Lars
> _______________________________________________
> openwrt-users mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
>
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to