Since a few days I am not able to run my own python scrips on a rPI2 running OSMC, version 2017.04-1 . If I try to execute just python from /usr/bin I get this errormessage
/usr/bin/python: cannot execute binary file: Exec format error
It happens after update running apt-get
i am quite newbie on both osmc and linux , so I am not sure how to proceed here.
I’ll apreciate any help.
Thanks
First step could be providing logs via grab-logs -A
Thanks for the quick response.
I get this:
/usr/bin/python2: 1: /usr/bin/python2: Syntax error: word unexpected (expecting “)”)
Ok, forgot that we use python to do that
Try cat /var/log/apt/term.log | paste-log
Here is the log:
https://paste.osmc.tv/ziyerimova
Last successful run of my scripts was May 9 at 23:00 and the next one, scheduled at Midnight failed.
Thanks !
Your SD card is corrupted.
Check the card and reinstall OSMC.
Reinstall? Again? I did it one month ago…
Thanks,
Hi,
If you haven’t already, it may be time to replace the SD card.
Thanks Tom.
You shouldn’t need to reinstall regularly. It sounds like you have a hardware problem.
It seems like your SD card may be problematic.
Some SD cards are not genuine or have a lower capacity than advertised. Some simply fail over time.
Symptoms of SD cards not working correctly are:
- Read-only behaviour, or changes made not persisting
- A filesystem corruption error
Symptoms of counterfeit SD cards are:
- Writing works until a certain filesystem size is reached, thereafter, writes seem to cause issues where existing data is lost or newly written data is not preserved.
- SD card fails after a short amount of time.
Counterfeit cards are usually found on Amazon and eBay.
SD cards have a limited lifespan. I recommend you change SD card and suspect that issues will no longer persist with a good card. If you would like to be a good quality SD card purpose manufactured for OSMC, then you can find one in the Store.
I reinstalled because osmc raised errors updating, so
… Sounds like I need a New SD.
Thanks people.
Get the OSMC one, happy days.