ImportError: No module named getopt
Fredrik Lundh
fredrik at pythonware.com
Thu Nov 23 10:22:59 EST 2006
"prashant" wrote:
>I am running a python script which has the line
>
> import getopt, sys, os, re, string
>
> And i get the error
>
> ImportError: No module named getopt
>
> Could you please point out a possible solution for this?
looks like a broken installation. try running the script as
python -vv script.py
and see where it looks for the getopt module.
is the ImportError all you get, btw ? it doesn't complain about site.py before
that ?
</F>
More information about the Python-list
mailing list