Python 3.8 failed to load shared libraries "libpython3.8.so.1.0" (F4-210)
Posted: 25 Jan 2024, 00:26
Hi
I want to run a Python 3.8 script on my F4-210. I installed Python from the "Applications Store" with Cron_okm to make a reboot cron action to start the Python script every reboots
To debug it, it run with this command : */2 * * * * MyUser /usr/local/bin/python3.8 /mnt/md0/MyCoolSharing/WebServer/main.py >> /mnt/md0/MyCoolSharing/WebServer/log_api.log 2>&1
Inside the log file I got :
/usr/local/bin/python3.8: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory
It's a Flask server, So Python 3.8 is required.
I found the file at "/mnt/md0/application/lib/" with a SSH connexion.
How I can fix this issue ? Will a Docker container fix it (And how to do it to run my script and save files on my disks) ?
Note :
In my SSH connexion I can do "python /mnt/md0/MyCoolSharing/WebServer/main.py" and I run. Why the CRON don't found the required Python library ?
Any help appreciated !
I want to run a Python 3.8 script on my F4-210. I installed Python from the "Applications Store" with Cron_okm to make a reboot cron action to start the Python script every reboots
To debug it, it run with this command : */2 * * * * MyUser /usr/local/bin/python3.8 /mnt/md0/MyCoolSharing/WebServer/main.py >> /mnt/md0/MyCoolSharing/WebServer/log_api.log 2>&1
Inside the log file I got :
/usr/local/bin/python3.8: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory
It's a Flask server, So Python 3.8 is required.
I found the file at "/mnt/md0/application/lib/" with a SSH connexion.
How I can fix this issue ? Will a Docker container fix it (And how to do it to run my script and save files on my disks) ?
Note :
In my SSH connexion I can do "python /mnt/md0/MyCoolSharing/WebServer/main.py" and I run. Why the CRON don't found the required Python library ?
Any help appreciated !