Quantcast
Channel: TerraMaster Forum
Viewing all articles
Browse latest Browse all 4187

Developer Discussion Room • Re: Python 3.8 failed to load shared libraries "libpython3.8.so.1.0" (F4-210)

$
0
0
Hello,
First, I think you should update the LD_LIBRARY_PATH: The LD_LIBRARY_PATH environment variable is used by the system to locate shared libraries. You can try updating it to include the directory where the libpython3.8.so.1.0 library is located. Run the following command in your SSH session:

CODE:

bashexport LD_LIBRARY_PATH=/mnt/md0/application/lib:$LD_LIBRARY_PATHThis command adds the "/mnt/md0/application/lib" directory to the LD_LIBRARY_PATH.
Secondly, you can try modifying the Cron Job. Update your cron job command to include the updated LD_LIBRARY_PATH. Modify your cron job entry to something like this:

CODE:

bash*/2 * * * * MyUser env LD_LIBRARY_PATH=/mnt/md0/application/lib /usr/local/bin/python3.8 /mnt/md0/MyCoolSharing/WebServer/main.py >> /mnt/md0/MyCoolSharing/WebServer/log_api.log 2>&1
This command sets the LD_LIBRARY_PATH environment variable before executing the Python script.

Statistics: Posted by lesliewang — Today, 17:29



Viewing all articles
Browse latest Browse all 4187

Trending Articles