On Saturday, July 20, 2019 at 1:13:09 AM UTC+2, Tduell wrote: > > On Fri, 19 Jul 2019 18:40:22 +1000, 'kfj' via hugin and other free > panoramic software <[email protected] <javascript:>> wrote: > > [snip] > > > When it comes to picking only python3, I'm not sure how to do that, but > > I'll try and look into the matter eventually (busy with other stuff > now). > > Can we postpone this to some later time, or can someone else do that > bit? > > There is a bug report related to this issue, ( > https://bugs.launchpad.net/bugs/1829309) in which I have provided a > patch, which works here for me, but for some reason I was unable to push > to the repo. I had hoped another with admin privileges would push it but > that doesn't seem to have happened. > Have a look at that patch, and the source, and see if you think it is an > adequate fix. >
I checked some more, and came to the conclusion that the 'shebang line' ,' #! /usr/bin/env python' in the plugins is irrelevant when they are launched as plugins by hugin. Hugin, with the python interface linked in, *is* a python interpreter, and it's either python2 or python3, depending on what cmake figures out for it. The shebang, is only relevant when the plugin is executed as a stand-alone script: Some of the plugins (like woa.py) are programs in their own right, and the #! /usr/bin/env python tells the shell to launch 'python' to interpret the script. So no matter what the shebang is, when used as plugins from hugin, the shebang has no effect. There is no need to make any change to the plugin code. I think forcing the linking-in of a python3 interpreter should be handled by cmake. On my system, for example (I mistyped, I'm on ubuntu 18.04 LTS), when I build hugin as per instructions in the wiki, it comes out a python2 interpreter. There's docu I found here https://cmake.org/cmake/help/git-stage/module/FindPython3.html Does that help? Kay -- A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ --- You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/255d0a2a-8de5-4148-8509-16a7634d1a1b%40googlegroups.com.
