Hi all - I've been trying to freshen our build and update some prepared filters but since about 2.2.4 (the last build that I've done) I've found that the build is picking up the wrong python interpreter - or rather, not picking up anything at all I've explicitly added it to the path
CMakeCache reports the correct Python version
The Cmake output appears correct:
But the solution build fails with the error below:
I've seen some advice to remove cygwin from my path, but I can't see what's actually picking it up Do you think it might be an issue with asciidoc/a2x? Has anyone seen this before, so would I be best to scrub my environment. Best regards, Baffled of Sydney. asked 19 Jun '17, 18:22 Scott Harman |
2 Answers:
a2x (AsciiDoc) is part of your Cygwin installation and does not use the Python interpreter from your Windows installation. Does your Cygwin installation have a Python binary ("python", not just "python2" or "python3"). answered 19 Jun '17, 20:12 Lekensteyn Well that's just annoying - I've got python2 installed, and running which python returns the path to local Windows python under /cygdrive/c/Python27/python I'll attempt to scrub it all and go again, but something seems screwy. (20 Jun '17, 17:37) Scott Harman Had to completely remove and reinstall cygwin and both version 2 and version 3 of python - it looks like having Python on Windows PATH actually breaks a2x as adding it to PATH and refreshing variables gives me the /cygdrive/c/Python27/python path - which still shouldn't fail, but hey ho. Not the end of the world ;) Cheers (20 Jun '17, 19:49) Scott Harman |
I'm not entirely sure why your build is going wrong, but I see a couple of things that look odd to me:
answered 21 Jun '17, 07:05 grahamb ♦ |
Same issue with release notes:
101>CustomBuild: Generating release-notes.html
101>CustomBuild:
running a2x with args --format=xhtml --destination-dir=/cygdrive/c/Wireshark/build32/docbook --asciidoc-opts= --fop --stylesheet=ws.css release-notes.asciidoc
101>CustomBuild: /usr/bin/env: 'python': No such file or directory
101>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code 127. [C:\Wireshark\build32\docbook\release_notes_html.vcxproj]