Why optparse wont import?

2006-01-20 Thread Karlo Lozovina
If I create a file with only one line: --- from optparse import OptionParser --- I get this when I try to run it from DOS prompt: Traceback (most recent call last): File optparse.py, line 1, in ? from optparse import OptionParser File X:\data\other\source\python\population\optparse.py,

Re: Why optparse wont import?

2006-01-20 Thread Jorge Godoy
Karlo Lozovina [EMAIL PROTECTED] writes: If I create a file with only one line: --- from optparse import OptionParser --- I get this when I try to run it from DOS prompt: Traceback (most recent call last): File optparse.py, line 1, in ? from optparse import OptionParser File

Re: Why optparse wont import?

2006-01-20 Thread Karlo Lozovina
Jorge Godoy [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Rename your file to something other than optparse.py... Oh my :(... I'm so ashamed :). -- ___Karlo Lozovina - Mosor | | |.-.-. web: http://www.mosor.net || ICQ#:

Re: Why optparse wont import?

2006-01-20 Thread Steve Holden
Karlo Lozovina wrote: Jorge Godoy [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: Rename your file to something other than optparse.py... Oh my :(... I'm so ashamed :). Don't worry. If this list had a FAQ, that would be on it. You are by no means the first ... regards Steve --