Ticket #158 (closed defect: fixed)

Opened 2 months ago

Last modified 3 weeks ago

UTscapy : Another import failure

Reported by: nico@chdir.org Assigned to: pbi
Priority: major Milestone:
Component: Scapy Version:
Keywords: Cc:

Description

$ UTscapy -t d.txt -f latex -o o.tex -F
Traceback (most recent call last):
  File "./bin/UTscapy", line 27, in <module>
    main(sys.argv[1:])
  File "/var/lib/python-support/python2.5/scapy/tools/UTscapy.py", line 620, in main
    run_campaign(test_campaign, autorun_func[FORMAT], verb=VERB)
  File "/var/lib/python-support/python2.5/scapy/tools/UTscapy.py", line 295, in run_campaign
    t.output,res = get_interactive_session(t.test.strip())
  File "/var/lib/python-support/python2.5/scapy/autorun.py", line 134, in autorun_get_latex_interactive_session
    return to_latex(s),res
  File "/var/lib/python-support/python2.5/scapy/autorun.py", line 124, in <lambda>
    to_latex = lambda s: tex_escape(s).replace("@[@","{").replace("@]@","}").replace("@`@","\\")
NameError: global name 'tex_escape' is not defined

The following patch fixes it.

diff -r cdea8d8a25ea scapy/autorun.py
--- a/scapy/autorun.py	Wed Oct 01 19:07:27 2008 +0200
+++ b/scapy/autorun.py	Tue Nov 11 22:34:57 2008 +0100
@@ -7,6 +7,7 @@
 from config import conf
 from themes import *
 from error import Scapy_Exception
+from utils import tex_escape
 
 #########################
 ##### Autorun stuff #####

Attachments

Change History

12/19/08 15:07:12 changed by pbi

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [906064148321]


Add/Change #158 (UTscapy : Another import failure)




Change Properties
Action