2015-03-17, 02:43
(2015-03-17, 02:38)Milhouse Wrote: What about:
And in the directory where you have the script:Code:which python
echo $PATH
Code:pwd
ls -la
I can only imagine the script is not finding your Python interpreter, for some reason. Also double check you haven't downloaded the HTML web page instead of the script source code.
which python
/usr/bin/python
echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/opt/vc/bin
pwd
/home/osmc
ls -la
osmc@osmc:~$ ls -la
total 60
drwxr-xr-x 8 osmc osmc 4096 Mar 16 16:57 .
drwxr-xr-x 3 root root 4096 Dec 31 1969 ..
-rw------- 1 osmc osmc 26 Mar 15 23:44 .bash_history
-rw-r--r-- 1 osmc osmc 220 Nov 12 15:21 .bash_logout
-rw-r--r-- 1 osmc osmc 3515 Nov 12 15:21 .bashrc
drwxr-xr-x 8 osmc osmc 4096 Dec 31 1969 .kodi
-rw------- 1 osmc osmc 9016 Mar 15 14:00 lircd.conf
drwxr-xr-x 2 osmc osmc 4096 Mar 14 16:15 Movies
drwxr-xr-x 2 osmc osmc 4096 Mar 14 16:15 Music
drwxr-xr-x 2 osmc osmc 4096 Mar 14 16:15 Pictures
-rw-r--r-- 1 osmc osmc 675 Nov 12 15:21 .profile
drwxr-xr-x 2 osmc osmc 4096 Mar 15 14:09 .smb
drwxr-xr-x 2 osmc osmc 4096 Mar 14 16:15 TV Shows