The first line of itstool [1] is #!/usr/bin/python -s It should instead be #!/usr/bin/python2 -s to ensure compatibility with systems where "python" refers to Python 3. See [2]. [1] https://gitorious.org/itstool/itstool/blobs/master/itstool.in [2] http://www.python.org/dev/peps/pep-0394/
Created attachment 73025 [details] [review] Update itstool shebang to force usage of python2
I just had the issue on ArchLinux, which switched to Python 3 as default for a while.
After https://gitorious.org/itstool/itstool/commit/1cce05f8c3d2b52f030b3e253d37ae5a6eee8003 this is resolved; the user can run PYTHON=/usr/bin/python2 ./configure ... instead of ./configure ...
The check for libxml2 does not use the $PYTHON version discovered from AutoConf I built a patch for this on gitorious under rickmarks-itstool that changes the check to use $PYTHON, works for me with a dual python 2 and 3 system correctly
Created attachment 103408 [details] [review] Fix for libxml2 discovery Here's a patch to fix the libxml2 discovery
I think only Richard's patch is needed nowadays, and it's identical to my patch in bug #73491, so let's use that bug instead. *** This bug has been marked as a duplicate of bug 73491 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.