Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 3031] Generating a dissector with asn2wrs using python 2.6

Date: Sat, 15 Nov 2008 10:55:43 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3031


Bill Meier <wmeier@xxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




--- Comment #2 from Bill Meier <wmeier@xxxxxxxxxxx>  2008-11-15 10:55:41 PDT ---
Um ....  

I still get an error when using Python 2.6 in my Windows Vista environment; 

Python 2.4 & 2.5 seem to work OK.

Bill

==============================
$cd asn1\x411

$head ..\..\tools\asn2wrs.py
#!/usr/bin/env python

#
# asn2wrs.py
# ASN.1 to Wireshark dissector compiler
# 2004 Tomas Kukosa
#
# $Id: asn2wrs.py 26738 2008-11-10 13:27:41Z kukosa $
#

$nmake /E /NOLOGO /f makefile.nmake generate_export
        "C:\Python26\python.exe" "../../tools/asn2wrs.py"  -E -b -e  -p x411 
-c x411.cnf   MTAAbstractService.asn  MTSAbstractService.asn

c:\Users\wmeier\Technical\wswm\wsh-svn\tools\yacc.py:74: DeprecationWarning:
the md5 module is deprecated; use hashlib instead
  import re, types, sys, cStringIO, md5, os.path
ASN.1 to Wireshark dissector compiler
Traceback (most recent call last):
  File "../../tools/asn2wrs.py", line 7660, in <module>
    eth_main()
  File "../../tools/asn2wrs.py", line 7598, in eth_main
    ectx.eth_prepare()
  File "../../tools/asn2wrs.py", line 1304, in eth_prepare
    self.all_tags[m][t] = self.type[t]['val'].GetTTag(self)
  File "../../tools/asn2wrs.py", line 3560, in GetTTag
    warnings.warn_explicit(msg, UserWarning, '', '')
TypeError: an integer is required
NMAKE : fatal error U1077: 'C:\Python26\python.exe' : return code '0x1'
Stop.


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.