Wireshark-dev: Re: [Wireshark-dev] ASN dissector (re)generation: TypeError: unorderable types:

From: "Kukosa, Tomas" <tomas.kukosa@xxxxxxxxx>
Date: Tue, 3 Dec 2013 22:49:35 +0000
Hi Kuba,

I have found that it is the known Ply issue
http://code.google.com/p/ply/issues/detail?id=30

I will look whether it is better to fix yacc.py or to change our asn2wrs.py

Regards,
  Tomas

________________________________________
From: wireshark-dev-bounces@xxxxxxxxxxxxx [wireshark-dev-bounces@xxxxxxxxxxxxx] on behalf of Jakub Zawadzki [darkjames-ws@xxxxxxxxxxxx]
Sent: Tuesday, December 03, 2013 11:03 PM
To: wireshark-dev@xxxxxxxxxxxxx
Subject: [Wireshark-dev] ASN dissector (re)generation: TypeError: unorderable types: slice() >= int()

Hi,

I hit this problem when trying to regenerating few ASN dissectors:

/usr/bin/python ../../tools/asn2wrs.py \
        -E -b -L \
        -p dap \
        -c ./dap.cnf \
        -D . \
         dap.asn DirectoryAccessProtocol.asn
ASN.1 to Wireshark dissector compiler
Traceback (most recent call last):
  File "../../tools/asn2wrs.py", line 8028, in <module>
    eth_main()
  File "../../tools/asn2wrs.py", line 7959, in eth_main
    ast.extend(yacc.parse(f.read(), lexer=lexer, debug=pd))
  File "/tmp/wireshark/tools/yacc.py", line 265, in parse
    return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
  File "/tmp/wireshark/tools/yacc.py", line 971, in parseopt_notrack
    p.callable(pslice)
  File "../../tools/asn2wrs.py", line 7201, in p_cls_syntax_3
    t[0] = { get_class_fieled(' '.join(t[1:-1])) : t[-1:][0] }
  File "/tmp/wireshark/tools/yacc.py", line 198, in __getitem__
    if n >= 0: return self.slice[n].value
TypeError: unorderable types: slice() >= int()

After changing PYTHON= to python2 it works OK, so problem is with python 3.X (3.2.5?)

Kuba.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe