WYAE - FWTOOLS Mailing List Archive


Python Issues
From:"Ken Seefried"
Date: Fri, 18 May 2007 09:31:32 -0400

This is a multi-part message in MIME format.

------_=_NextPart_001_01C79950.D958B010
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Linux Ubuntu 7.04

Python 2.5.1~rc1-0ubu

Latest FWdoc

=20

Problem: Python scripts don't work.  Once I generate a processed JSOD
file with fw1r55_to_fwdoc.pl, I can't get much else:

=20

cat cluster.jsod | fwdoc_to_html.py | fwdoc_to_tables.py
--rules=3Daccessrules.txt --natrules=3Dnatrules.txt =
--objects=3Dobjects.txt
--services=3Dservices.txt --layer7=3Dlayer7.txt --users=3Dusers.txt

=20



}

' due to: '"'

Traceback (most recent call last):

  File "./fwdoc_to_tables.py", line 89, in 

    fwdoc =3D json.read(fwdoctxt)

  File "/home/seefriek/FW-1/json.py", line 311, in read

    return JsonReader().read(s)

  File "/home/seefriek/FW-1/json.py", line 55, in read

    result =3D self._read()

  File "/home/seefriek/FW-1/json.py", line 62, in _read

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

json.ReadException: Nothing to read: ''

=20

I get similar "Nothing to read" results with any of the python scripts.
Any clues?

=20

=20

Ken Seefried, CISSP

TwinEngines, Inc.
"Manufacturing Value Chains...Optimized"
O - 404-522-4262 X 605
F - 404-584-8003

=20


------_=_NextPart_001_01C79950.D958B010
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable












Linux Ubuntu 7.04

Python 2.5.1~rc1-0ubu

Latest FWdoc

 

Problem: Python scripts don’t work.  = Once I generate a processed JSOD file with fw1r55_to_fwdoc.pl, I can’t = get much else:

 

cat cluster.jsod | fwdoc_to_html.py | = fwdoc_to_tables.py --rules=3Daccessrules.txt --natrules=3Dnatrules.txt = --objects=3Dobjects.txt --services=3Dservices.txt --layer7=3Dlayer7.txt = --users=3Dusers.txt

 

<deleted>

}

' due to: '"'

Traceback (most recent call last):

  File "./fwdoc_to_tables.py", line = 89, in <module>

    fwdoc =3D = json.read(fwdoctxt)

  File = "/home/seefriek/FW-1/json.py", line 311, in read

    return = JsonReader().read(s)

  File = "/home/seefriek/FW-1/json.py", line 55, in read

    result =3D = self._read()

  File = "/home/seefriek/FW-1/json.py", line 62, in _read

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

json.ReadException: Nothing to read: = ''

 

I get similar “Nothing to read” results = with any of the python scripts.  Any clues?

 

 

Ken Seefried, CISSP

TwinEngines, Inc.
"Manufacturing Value Chains...Optimized"
O - 404-522-4262 X 605
F - 404-584-8003

 

------_=_NextPart_001_01C79950.D958B010--