WYAE - FWTOOLS Mailing List Archive


FWTools Problems
From:"Deric Scott"
Date: Mon, 30 Apr 2007 11:40:34 -0400

This is a multi-part message in MIME format.

------_=_NextPart_001_01C78B3E.59F87318
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I am trying to use the latest versions of the FWTools applications to
generate a document showing the configuration of a CheckPoint firewall I
am migrating.

=20

The problem is that, when I run it under Windows, using ActivePerl and
ActivePython (latest versions), I get the following error:

=20

Traceback (most recent call last):

  File "H:\Temp\FWDOC\fwdoc_used_objects\fwdoc_used_objects.py", line
56, in 

    fwdoctxt =3D sys.stdin.read(MAXSIZE)

IOError: [Errno 9] Bad file descriptor

=20

After playing with it, I decided just to use one of my Linux boxes to
get things going.  Here, though, I get the following message:

=20

' due to: '{'

Traceback (most recent call last):

  File "./fwdoc_to_html.py", line 46, in ?

    fwdoc =3D json.read(fwdoctxt)

  File "./fwdoc/json.py", line 311, in read

    return JsonReader().read(s)

  File "./fwdoc/json.py", line 55, in read

    result =3D self._read()

  File "./fwdoc/json.py", line 62, in _read

    raise ReadException, "Nothing to read: '%s'" % self._generator.all()

json.ReadException: Nothing to read: ''

=20

In both environments, I am using the same command:

=20

perl fw1r55_to_fwdoc.pl --rules=3Dfwrules.W --objects=3Dobjects.C
--with_implicit_rules | fwdoc_used_objects.py | fwdoc_to_html.py

=20

What am I doing wrong, as is there anyone who can lend me a hand?

=20

Thank you.

=20

Deric Scott

=20

=20

=20


------_=_NextPart_001_01C78B3E.59F87318
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable












I am trying to use the latest versions of the FWTools applications to generate a document showing the configuration of a = CheckPoint firewall I am migrating.

 

The problem is that, when I run it under Windows, = using ActivePerl and ActivePython (latest versions), I get the following = error:

 

Traceback (most recent call = last):

  File "H:\Temp\FWDOC\fwdoc_used_objects\fwdoc_used_objects.py", line = 56, in <module>

    fwdoctxt =3D = sys.stdin.read(MAXSIZE)

IOError: [Errno 9] Bad file = descriptor

 

After playing with it, I decided just to use one of = my Linux boxes to get things going.  Here, though, I get the following = message:

 

' due to: '{'

Traceback (most recent call = last):

  File "./fwdoc_to_html.py", line 46, = in ?

    fwdoc =3D = json.read(fwdoctxt)

  File "./fwdoc/json.py", line 311, in = read

    return = JsonReader().read(s)

  File "./fwdoc/json.py", line 55, in = read

    result =3D = self._read()

  File "./fwdoc/json.py", line 62, in = _read

    raise ReadException, "Nothing = to read: '%s'" % self._generator.all()

json.ReadException: Nothing to read: = ''

 

In both environments, I am using the same = command:

 

perl fw1r55_to_fwdoc.pl --rules=3Dfwrules.W --objects=3Dobjects.C --with_implicit_rules | fwdoc_used_objects.py | fwdoc_to_html.py

 

What am I doing wrong, as is there anyone who can = lend me a hand?

 

Thank you.

 

Deric Scott

 

 

 

------_=_NextPart_001_01C78B3E.59F87318--