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
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'
>>
>>
>>
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
> $ 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
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