← Back to team overview

hugin-devs team mailing list archive

[Bug 1829309] Re: Building current default in Fedora 30 fails due to Python plugins

 

I looked a bit more into this, and found that src/hugin_script_interface/hpi.py doesn't reference python3.
I've just made a temporary local change to hpi.py (#!/usr/bin/python3), and hugin now builds here without error on Fedora 30.
I've not tested whether the python scripting works.

Cheers,
Terry

-- 
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/1829309

Title:
  Building current default in Fedora 30 fails due to Python plugins

Status in Hugin:
  Fix Committed

Bug description:
  Building current hugin default 8203 01e87b730bb3 in Fedora 30, fails
  with the following message...

  Bytecompiling .py files below /home/terry/rpmbuild/BUILDROOT/hugin-2019.1.0-0.1.20190516hg.fc30.x86_64/usr/lib/debug/usr/lib64/python2.7 using /usr/bin/python2.7
  Bytecompiling .py files below /home/terry/rpmbuild/BUILDROOT/hugin-2019.1.0-0.1.20190516hg.fc30.x86_64/usr/lib64/python2.7 using /usr/bin/python2.7
  + /usr/lib/rpm/brp-python-hardlink
  + /usr/lib/rpm/redhat/brp-mangle-shebangs
  *** ERROR: ambiguous python shebang in /usr/share/hugin/data/plugins/shooting_pattern.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
  *** ERROR: ambiguous python shebang in /usr/share/hugin/data/plugins/top_five.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
  *** ERROR: ambiguous python shebang in /usr/share/hugin/data/plugins/crop_cp.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
  *** ERROR: ambiguous python shebang in /usr/share/hugin/data/plugins/woa.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
  *** ERROR: ambiguous python shebang in /usr/share/hugin/data/plugins-templates/plugin_skeleton.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
  *** ERROR: ambiguous python shebang in /usr/share/hugin/data/plugins-templates/dual_use.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
  *** ERROR: ambiguous python shebang in /usr/lib64/python2.7/site-packages/hpi.py: #!/usr/bin/env python. Change it to python3 (or python2) explicitly.
  error: Bad exit status from /var/tmp/rpm-tmp.eEpDLf (%install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/hugin/+bug/1829309/+subscriptions


References