Forums

shedule task error?

/usr/bin/env python: no such Python interpreter

2012-09-21 06:55:38 -- Completed task, took 1.00 seconds, return code was 0.

uhh... it's my mistake: script's header;

That's the best kind of problem. One you fix (or figure out) yourself!!

Glad you fixed it :-)

I have a small sheduled script ( BSE_scraper/stat_collector.py ) that returns the same error message

/usr/local/bin/python3.3
: no such Python interpreter

copy of the file: stat_collector.py

What am I doing wrong? Any chance of getting .stackexchange.com added to the whitelist ?

yikes, after further looking around it's possible to call http://api.stackexchange.com/2.1/info?site=blender.stackexchange.com and likely avoid the whitelist request.

The newline before the : is a clue that led us to a bug in our code. It should work now.

api.stackexchange.com is already on our whitelist, use that instead of scraping their website.

Hi, i am getting the same error

/usr/bin/env python: no such Python interpreter

2013-12-25 06:55:38 -- Completed task, took 1.00 seconds, return code was 0.

but when i execute the script with ./script.py it works fine. Why is it saying no such python interpreter? i have written this on the first line

1
#!/usr/bin/env python

That may be a little buglet. We'll have a look at it after the holidays. In the meantime, just use /usr/local/python instead of /usr/bin/env python