python 2.7 error

python 2.7 error

Postby bidule » Mon Aug 21, 2023 6:36 pm

Hello,
I successfully installed fvdw-sl-17.0-python-2.7.14-6-zope-4.3.2-27aug2020.zip(install-addons.sh) today.
When I run python I get the following error:
Code: Select all
# python2.7
python2.7: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
#ls -lah /usr/lib/libpython2.7.so
lrwxrwxrwx  1 root root 34 2020-05-05 22:03 /usr/lib/libpython2.7.so -> /usr/local/lib/libpython2.7.so.1.0


I solved this by:
Code: Select all
ln -s /usr/lib/libpython2.7.so /usr/lib/libpython2.7.so.1.0


Python now launches. I'll test it.
bidule
Donator VIP
Donator VIP
 
Posts: 13
Joined: Wed Jul 04, 2018 6:52 pm

Re: python 2.7 error

Postby Jocko » Tue Aug 22, 2023 1:36 pm

Hi

I think you removed it previously. I checked the firmware image (version 18.2) and the symlink is present :scratch
Code: Select all
root@Acrab:/share/1100/Projet/18.2/base/usr/lib # ls -al libpython*
lrwxrwxrwx  1 root root 34 2017-05-27 19:41 libpython2.7.so -> /usr/local/lib/libpython2.7.so.1.0
lrwxrwxrwx  1 root root 39 2017-05-27 19:41 libpython2.7.so.1.0 -> ../../usr/local/lib/libpython2.7.so.1.0

ldd /usr/local/bin/python2.7
        libpython2.7.so.1.0 => /usr/local/lib/libpython2.7.so.1.0 (0xb6dc4000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb6da4000)
        libdl.so.2 => /lib/libdl.so.2 (0xb6d99000)
        libutil.so.1 => /lib/libutil.so.1 (0xb6d8e000)
        libm.so.6 => /lib/libm.so.6 (0xb6ce6000)
        libc.so.6 => /lib/libc.so.6 (0xb6baa000)
        /lib/ld-linux.so.3 (0xb6f5d000)

Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: python 2.7 error

Postby bidule » Fri Aug 25, 2023 1:27 pm

il was a fresh installation of fvdw-sl-17.0-python-2.7.14-6-zope-4.3.2-27aug2020.zip
anyway it's working.
bidule
Donator VIP
Donator VIP
 
Posts: 13
Joined: Wed Jul 04, 2018 6:52 pm


Return to Lacie cloudbox (white casing)

Who is online

Users browsing this forum: No registered users and 2 guests

cron