LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Running script (probably python) (https://www.linuxquestions.org/questions/linux-software-2/running-script-probably-python-588150/)

Bob Jones 09-29-2007 01:15 AM

Running script (probably python)
 
I am trying to run a script from the python cookbook - it can be found here:

http://aspn.activestate.com/ASPN/Coo.../Recipe/496790

I am running Fedora Core 6; kernel 2.6.22.4-45.fc6. I got a copy of the script and saved it to my computer, but I do not have the directory named in teh file:

/usr/local/bin/python

Does anyone know how to set up and run the script so the program runs automatically . . . even if I am not at home?

Much appreciated.

BJ.

Bob Jones 09-29-2007 01:20 AM

This is the error that I get when I run:

! python filename

[root@localhost checkin]# ! python southwest
Traceback (most recent call last):
File "southwest", line 509, in ?
main()
File "southwest", line 444, in main
departure = getFlightTimes(retrieve_url, confirmation, firstname, lastname)
File "southwest", line 289, in getFlightTimes
to_arrive_time = ts[1]
IndexError: list index out of range
[root@localhost checkin]#

Any suggestions? Is this an error with the code?


All times are GMT -5. The time now is 04:29 PM.