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

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

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

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

Traceback (most recent call last):

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

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

File "", line 234, in create_output create_index()

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

File "", 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

accept rate: 0%

edited 15 Oct '14, 09:04

grahamb's gravatar image

grahamb ♦

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 ♦
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 ./ '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

(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

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

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 15 Oct '14, 07:03

question was seen: 2,932 times

last updated: 23 Oct '14, 10:40

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