Problem using execvp

Nobody nobody at nowhere.com
Thu Oct 27 22:00:28 EDT 2011


On 2011年10月27日 01:57:55 -0700, faucheuse wrote:
> I get this error : OSError : [Errno 8] Exec format error.

The most likely reason for this error is a missing or invalid
shebang, e.g.:
	#!/usr/bin/python
or:
	#!/usr/bin/env python
The "#!" must be the first two bytes in the file. Beware of text editors
adding a Unicode BOM (byte order mark) at the beginning of the file.
Forgetting to add execute permission would result in EPERM (errno=13,
"Permission denied"). An invalid interpreter results in ENOENT (errno=2,
"No such file or directory").


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /