scraperwiki / code-scraper-in-browser-tool

Just like on ScraperWiki Classic; now a part of QuickCode.
https://quickcode.io
Other
38 stars 8 forks source link

/usr/bin/env: python : No such file or directory #106

Closed mattnorris closed 11 years ago

mattnorris commented 11 years ago

I placed the bash line for Python like the prompt told me, but now I get this when I run my scraper:

Started run: 2013-07-11 18:26:40+00:00
/usr/bin/env: python
: No such file or directory
Finished run: 2013-07-11 18:26:40+00:00 Exit code: 127
frabcus commented 11 years ago

Oh interesting! There's a CR NL (carriage-return, new-line) at the end of the #! line in your programme, and Unix needs just a NL.

Now we just need to work out how that has happened...

What browser and operating system are you using?

frabcus commented 11 years ago

Fixed now I think. Let me know if it goes wrong again!

I changed ACE to setNewLineMode("unix")

mattnorris commented 11 years ago

Thanks! I am using Chrome in Windows 7.

frabcus commented 11 years ago

Ah! That must explain it. Hopefull it works fine from now on...