sh: test: argument expected
Jeremy Fincher
jemfinch at gmail.com
Wed Nov 3 02:53:17 EST 2004
Iván Cabria <cabria at fta.uva.es> wrote in message news:<mailman.5832.1099421098.5135.python-list at python.org>...
> Hi,
>
> I am a new user of python. I ran
> a python script and I got the
> following message:
>
> sh: test: argument expected
>
> The first line of the python script is:
> #!/usr/bin/env python
Check that again, I suspect it's wrong. The error you're getting is
the exact error I get when that line isn't correct or isn't present in
my python scripts.
Run your script as "python <script>" and if you don't get that error,
you can be assured that the first line is the problem.
Jeremy
More information about the Python-list
mailing list