[prev in list] [next in list] [prev in thread] [next in thread]
List: wireshark-dev
Subject: Re: [Wireshark-dev] asn2wrs AttributeError: Node instance has no attribute 'AddTag'
From: Anders Broman <anders.broman () ericsson ! com>
Date: 2015-03-30 7:48:35
Message-ID: 43C5658BA3FB7B48A6F38EED0B6253F11AB46AE8 () ESESSMB105 ! ericsson ! se
[Download RAW message or body]
[Attachment #2 (text/plain)]
Hi,
You have to try to determine what statmet(s) in your asn1 file(s) throws as2wrs off, \
it looks like its related to tagged types any unusual complicated statements in \
there? Perhaps the order of inclusion matters? Regards
Anders
From: wireshark-dev-bounces@wireshark.org \
[mailto:wireshark-dev-bounces@wireshark.org] On Behalf Of lhasa \
wireshark
Sent: den 27 mars 2015 16:26
To: wireshark-dev@wireshark.org
Subject: [Wireshark-dev] asn2wrs AttributeError: Node instance has no attribute \
'AddTag'
Hello,
While trying to build an asn.1 dissector the asn2wrs.py tool gives the following \
error:
/usr/bin/python ../../tools/asn2wrs.py \
-b \
-p xyz \
-c ./xyz.cnf \
-s ./packet-xyz-template \
-D . \
-O ../../epan/dissectors \
asnfile1.asn asnfile2.asn asnfile3.asn
ASN.1 to Wireshark dissector compiler
Traceback (most recent call last):
File "../../tools/asn2wrs.py", line 8050, in <module>
eth_main()
File "../../tools/asn2wrs.py", line 7981, in eth_main
ast.extend(yacc.parse(f.read(), lexer=lexer, debug=pd))
File "/home/xyz/git/wireshark/tools/yacc.py", line 313, in parse
return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)
File "/home/xyz/git/wireshark/tools/yacc.py", line 1033, in parseopt_notrack
p.callable(pslice)
File "../../tools/asn2wrs.py", line 6435, in p_TaggedType_1
t[0].AddTag(t[1])
AttributeError: Node instance has no attribute 'AddTag'
make: *** [../../epan/dissectors/packet-xyz.c] Error 1
Is this a bug. Is there someone who can give me some clue.
Regards,
John
[Attachment #3 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">You \
have to try to determine what statmet(s) in your asn1 file(s) throws as2wrs off, it \
looks like its related to tagged types any unusual complicated statements in there? \
Perhaps the order of inclusion matters?<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Anders<o:p></o:p></span></p>
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span \
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span \
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> \
wireshark-dev-bounces@wireshark.org [mailto:wireshark-dev-bounces@wireshark.org] \
<b>On Behalf Of </b>lhasa wireshark<br> <b>Sent:</b> den 27 mars 2015 16:26<br>
<b>To:</b> wireshark-dev@wireshark.org<br>
<b>Subject:</b> [Wireshark-dev] asn2wrs AttributeError: Node instance has no \
attribute 'AddTag'<o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello,<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">While trying to build an asn.1 \
dissector the asn2wrs.py tool gives the following error:<br> <br>
/usr/bin/python ../../tools/asn2wrs.py \<br>
-b \<br>
-p xyz \<br>
-c ./xyz.cnf \<br>
-s ./packet-xyz-template \<br>
-D . \<br>
-O ../../epan/dissectors \<br>
asnfile1.asn asnfile2.asn asnfile3.asn<br>
ASN.1 to Wireshark dissector compiler<br>
Traceback (most recent call last):<br>
File "../../tools/asn2wrs.py", line 8050, in <module><br>
eth_main()<br>
File "../../tools/asn2wrs.py", line 7981, in eth_main<br>
ast.extend(yacc.parse(f.read(), lexer=lexer, debug=pd))<br>
File "/home/xyz/git/wireshark/tools/yacc.py", line 313, in parse<br>
return \
self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc)<br> File \
"/home/xyz/git/wireshark/tools/yacc.py", line 1033, in parseopt_notrack<br> \
p.callable(pslice)<br> File \
"../../tools/asn2wrs.py", line 6435, in p_TaggedType_1<br> \
t[0].AddTag(t[1])<br>
AttributeError: Node instance has no attribute 'AddTag'<br>
make: *** [../../epan/dissectors/packet-xyz.c] Error 1<br>
<br>
<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Is this a bug. Is there someone who \
can give me some clue.<o:p></o:p></p> </div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Regards,<o:p></o:p></p>
</div>
<p class="MsoNormal">John<o:p></o:p></p>
</div>
</div>
</body>
</html>
___________________________________________________________________________
Sent via: Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives: https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe
--===============2341159350463223363==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic