This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

While building my wireshark, when I run the command- "nmake -f makefile.nmake all" I get an error:

python faq.py | python ..\tools\html2text.py --width=72 --no-links > faq .txt

File "..\tools\html2text.py", line 332 self.o("][" + a['count'] + "]") ^ SyntaxError: invalid syntax

Traceback (most recent call last):

File "faq.py", line 2100, in <module> sys.exit(main())

File "faq.py", line 263, in main create_output(header, footer)

File "faq.py", line 234, in create_output create_index()

File "faq.py", line 224, in create_index sec.print_index()

File "faq.py", line 69, in print_index print(('%s %s\n' % (id, id, question)))

OSError: [Errno 22] Invalid argument

NMAKE : fatal error U1077: 'python' : return code '0x1' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0 \VC\BIN\nmake.exe"' : return code '0x2' Stop.

How do I solve this? my python is running perfectly..

asked 15 Oct '14, 07:03

aman's gravatar image

aman
36151620
accept rate: 0%

edited 15 Oct '14, 09:04

grahamb's gravatar image

grahamb ♦
19.8k330206

Your python version?

(15 Oct '14, 08:52) grahamb ♦

python 3.4

(15 Oct '14, 08:55) aman

You'll need a 2.x version, we're not 3.x compliant yet. I use 2.7.6.

The Developers Guide says to install a 2.7.x version.

permanent link

answered 15 Oct '14, 09:03

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

I installed 2.7.6 version and rebuilt it. Is says:

powershell -executionpolicy bypass -File tools/textify.ps1 -Destination wireshark-gtk2 ./COPYING ./NEWS ./README ./README.windows 'powershell' is not recognized as an internal or external command, operable program or batch file.

NMAKE : fatal error U1077: 'powershell' : return code '0x1' Stop. How go work about this?

(15 Oct '14, 10:31) aman

Download and install powershell 2.0 or later from Microsoft website. See https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html#ChSetupPowerShell

(15 Oct '14, 10:49) Pascal Quantin

It says it is needed only for VISTA.. I am working on Win-7. Do I still need to install it?

(15 Oct '14, 11:14) aman

Check if powershell is already installed on your system. If yes, add it to the PATH. If not, install it.

(15 Oct '14, 13:38) Pascal Quantin

Powershell should be available on Win 7, my Wireshark Win 7 dev VM has it, I've never installed it and it isn't listed under Programs and Features, nor in Windows Features.

See this article on PS and Win 7.

(15 Oct '14, 13:39) grahamb ♦

fatal error C1083: Cannot open include file: 'to_str-deprecat ed.h': No such file or directory

Any suggestions to solve this for a wireshark plugin?

(22 Oct '14, 12:40) aman
1

Stop including it?

(22 Oct '14, 13:00) Pascal Quantin

if I remove it, I get many other errors.

(23 Oct '14, 06:25) aman

I don't have the sources at hand, but perhaps the functions have been moved and you need to include a different file? Try grep for the failing functions.

(23 Oct '14, 07:41) Anders ♦

sadly grep gives the same issue message as to_str-deprecated.h

(23 Oct '14, 08:37) aman
1

The fact that you get many errors when removing it is perfectly normal: looks like you are trying to compile a Wireshark plugin not designed for the Wireshark version you installed. So either:

  • ask for some support to the plugin author, or
  • modify the source code yourself so as to make it compatible with your Wireshark version, or
  • install the Wireshark version for which the plugin was written.

It's up to you.

(23 Oct '14, 10:40) Pascal Quantin
showing 5 of 11 show 6 more comments
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×1,620
×26

question asked: 15 Oct '14, 07:03

question was seen: 2,795 times

last updated: 23 Oct '14, 10:40

p​o​w​e​r​e​d by O​S​Q​A