Re: help with an error msg please

2017-05-14 Thread Charles T. Smith
On Sun, 14 May 2017 15:30:52 +0200, Pavol Lisy wrote: > On 5/14/17, Charles T. Smith wrote: >> I'm stumped by this: ... > Did you create getopt.py in your working directory? If so then try to > rename it. > > PL. That was it! Not in my working directory, but in the directory where the test p

Re: help with an error msg please

2017-05-14 Thread Pavol Lisy
On 5/14/17, Pavol Lisy wrote: > On 5/14/17, Charles T. Smith wrote: >> I'm stumped by this: > >> $ PYTHONPATH= python except >> Traceback (most recent call last): >> File "except", line 7, in >> except getopt.error, msg: >> AttributeError: 'module' object has no attribute 'error' >> >> >>

Re: help with an error msg please

2017-05-14 Thread Pavol Lisy
On 5/14/17, Charles T. Smith wrote: > I'm stumped by this: > $ PYTHONPATH= python except > Traceback (most recent call last): > File "except", line 7, in > except getopt.error, msg: > AttributeError: 'module' object has no attribute 'error' > > > The program is: > > $ cat except > #!/usr

Re: help with an error msg please

2017-05-14 Thread Lutz Horn
> $ PYTHONPATH= python except > Traceback (most recent call last): > File "except", line 7, in > except getopt.error, msg: > AttributeError: 'module' object has no attribute 'error' > > > The program is: > > $ cat except > #!/usr/bin/env python > > import getopt > > try: > opts, a

help with an error msg please

2017-05-14 Thread Charles T. Smith
I'm stumped by this: $ PYTHONPATH= python except Traceback (most recent call last): File "except", line 7, in except getopt.error, msg: AttributeError: 'module' object has no attribute 'error' The program is: $ cat except #!/usr/bin/env python import getopt try: opts, args = get