← Back to team overview

hugin-devs team mailing list archive

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

 

FWIW I have just switched Debian's hugin binary to python 3.

As a minimal test I have tried running the included examples (after
fixing the shebang and bumping api-max). Two of them fail.

woa.py:
 run python script: /usr/share/hugin/data/plugins/woa.py
hpi: accessing plugin file /usr/share/hugin/data/plugins/woa.py
matching pair (0, 1) failed with TypeError: "cannot use a string pattern on a bytes-like object"
stack traceback:
  File "/usr/share/hugin/data/plugins/woa.py", line 1759, in process_image_set
    cps_added = cps_from_overlap ( pano , *pair )
  File "/usr/share/hugin/data/plugins/woa.py", line 1625, in cps_from_overlap
    xoff1 , yoff1 = get_tiff_offset ( nona_output[0] )
  File "/usr/share/hugin/data/plugins/woa.py", line 237, in get_tiff_offset
    fieldname = re.match ( r'[^\(]+' , t ) . group(0) . strip()
  File "/usr/lib/python3.7/re.py", line 173, in match
    return _compile(pattern, flags).match(string)

crop_cp.py
hpi: plugin crop_cp.py failed with TypeError: "in method 'Panorama_setCtrlPoints', argument 2 of type 'HuginBase::CPVector const &'"
hpi: stack traceback:
  File "/usr/lib/python3/dist-packages/hpi.py", line 44, in hpi_dispatch
    success = plugin [ 'entry' ] ( *args )
  File "/usr/share/hugin/data/plugins/crop_cp.py", line 237, in entry
    return crop_cps ( pano , inside )
  File "/usr/share/hugin/data/plugins/crop_cp.py", line 158, in crop_cps
    pano.setCtrlPoints ( ncpv )
  File "/usr/lib/python3/dist-packages/hsi.py", line 7626, in setCtrlPoints
    return _hsi.Panorama_setCtrlPoints(self, points)

-- 
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:
  New

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