Bug 455226 - Panorama Tool needs the Hugin pto2mk software
Summary: Panorama Tool needs the Hugin pto2mk software
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-Panorama (show other bugs)
Version: 7.6.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-13 20:33 UTC by Steve
Modified: 2023-10-19 12:48 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screen shot of the Panorama Creator Wizard (743.39 KB, image/png)
2022-06-13 20:33 UTC, Steve
Details
attachment-30897-0.html (1.41 KB, text/html)
2022-06-14 13:30 UTC, Steve
Details
attachment-19556-0.html (1.11 KB, text/html)
2022-06-14 16:06 UTC, Steve
Details
attachment-516-0.html (3.68 KB, text/html)
2022-06-14 20:58 UTC, Steve
Details
attachment-516-1.html (281 bytes, text/html)
2022-06-14 20:58 UTC, Steve
Details
attachment-516-2.html (281 bytes, text/html)
2022-06-14 20:58 UTC, Steve
Details
attachment-516-3.html (1.50 KB, text/html)
2022-06-14 20:58 UTC, Steve
Details
Screen Shot 2022-06-14 at 4.09.54 PM.png (748.30 KB, image/png)
2022-06-14 20:58 UTC, Steve
Details
Screen Shot 2022-06-14 at 4.12.13 PM.png (739.14 KB, image/png)
2022-06-14 20:58 UTC, Steve
Details
digikam-cli-startup-messages.txt (11.92 KB, text/plain)
2022-06-14 20:58 UTC, Steve
Details
attachment-31640-0.html (1.18 KB, text/html)
2022-06-15 13:01 UTC, Steve
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve 2022-06-13 20:33:56 UTC
Created attachment 149669 [details]
Screen shot of the Panorama Creator Wizard

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
I’d like to give DigiKam’s 7.6.0 Panorama Tool a try.  The Panorama Creator Wizard sees all but the pto2mk components are installed, having previously downloaded Hugin.  Wikipedia (https://wiki.panotools.org/Pto2mk) suggests its replaced by Hugin_executor at 2014.0.  

Oddly Bugs.kde.org has no record of pto2mk in its database using pto2mk as a search term.  But I did see some references by starting this bug entry.

What do you recommend moving forward? 

STEPS TO REPRODUCE
1. Select thumbnail images
2. Select Tool > Create Panarama
3. 

OBSERVED RESULT
Panorama Creator Wizard can't find the pto2mk binary file.


EXPECTED RESULT
Possibly a redirect to install Hugin_excutor

SOFTWARE/OS VERSIONS
Windows: 
macOS: 12.4
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Bug 361440 suggests a fix but I did not see one in the dialogue.  Bug 353131, which is even older, suggests downgrade to older Hugin, wait or fix myself.  It's been a few years since these prior bugs were submitted.  What is the actual status?

Thanks in advance!  - Steve
Comment 1 Maik Qualmann 2022-06-13 20:41:41 UTC
You downloaded an old Hugin version. Is Hugin 2021 not available for MacOS?

Maik
Comment 2 Maik Qualmann 2022-06-13 20:55:17 UTC
If digiKam searches for pto2mk, a hugin version < 2015 must have been found.
Maybe you have 2 Hugin versions installed in your system?

Maik
Comment 3 caulier.gilles 2022-06-13 20:55:43 UTC
Steve,

 I already trying to install hugin on my mac to use with panorama tool and it sound like not all binary programs are not packaged in DMG.

Please report this problem to hugin project :

https://bugs.launchpad.net/hugin

Gilles Caulier
Comment 4 Steve 2022-06-13 21:20:19 UTC
It appears that version 2019.2.0.b690aa0334b5 built by Niklas Mischkulnig is available for MacOS.



Steve

> On Jun 13, 2022, at 4:41 PM, Maik Qualmann <bugzilla_noreply@kde.org> wrote:
> 
> https://bugs.kde.org/show_bug.cgi?id=455226
> 
> Maik Qualmann <metzpinguin@gmail.com> changed:
> 
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                 CC|                            |metzpinguin@gmail.com
> 
> --- Comment #1 from Maik Qualmann <metzpinguin@gmail.com> ---
> You downloaded an old Hugin version. Is Hugin 2021 not available for MacOS?
> 
> Maik
> 
> -- 
> You are receiving this mail because:
> You reported the bug.

Dr. Steven Bishop, Ph.D.
100 Lakebreeze Way
Fredericksburg, VA 22406
+1-540-429-1842
Comment 5 Steve 2022-06-14 13:30:58 UTC
Created attachment 149680 [details]
attachment-30897-0.html

Gilles,
I’ve subsequently learned that I can use TIF files (and not JPG) directly with the Hugin application to make a panorama. So that’s a work around for now. 

Sure, be glad to make the bug report as you suggest later today. 

Thanks!


Steve 

Sent from my Steve's iPad

> On Jun 13, 2022, at 4:55 PM, bugzilla_noreply@kde.org wrote:
> 
> https://bugs.kde.org/show_bug.cgi?id=455226
> 
> --- Comment #3 from caulier.gilles@gmail.com ---
> Steve,
> 
> I already trying to install hugin on my mac to use with panorama tool and it
> sound like not all binary programs are not packaged in DMG.
> 
> Please report this problem to hugin project :
> 
> https://bugs.launchpad.net/hugin
> 
> Gilles Caulier
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 6 Maik Qualmann 2022-06-14 15:39:05 UTC
Hugin for MacOS is only available as version 2019 - OK. I unpacked the DMG, the hugin_executor file is included. It is probably not found by digiKam, but the other files are probably in the same directory, strange.

Maik
Comment 7 Steve 2022-06-14 16:06:38 UTC
Created attachment 149689 [details]
attachment-19556-0.html

Maik,
I thought DigiKam 7.6.0 is looking for pto2mk and not Hughin_executor.

Steve

Sent from my Steve's iPad

> On Jun 14, 2022, at 11:39 AM, Maik Qualmann <bugzilla_noreply@kde.org> wrote:
> 
> https://bugs.kde.org/show_bug.cgi?id=455226
> 
> --- Comment #6 from Maik Qualmann <metzpinguin@gmail.com> ---
> Hugin for MacOS is only available as version 2019 - OK. I unpacked the DMG, the
> hugin_executor file is included. It is probably not found by digiKam, but the
> other files are probably in the same directory, strange.
> 
> Maik
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 8 Maik Qualmann 2022-06-14 16:29:15 UTC
No, whether digiKam searches for pto2mk depends on which Hugin version was detected. Hugin < 2015 trying to find pto2mk, Hugin > 2015 trying to find hugin_executor. We can in principle remove support for old Hugin versions < 2015.

Maik
Comment 9 Maik Qualmann 2022-06-14 16:39:35 UTC
Exactly it depends on the returned version of "autooptimiser". As you can see it is 2019.2 in your screenshot. So it is very strange that digiKam is looking for pto2mk. A debug output from the terminal would be interesting.

Maik
Comment 10 Steve 2022-06-14 20:58:19 UTC
Created attachment 149706 [details]
attachment-516-0.html

Maik, 
	I suspect having run Hugin directly yesturday made some changes in my computer.  Today I was able to run the application but with a couple tweaks.  I also downloaded the most recent version of Hugin available just to make sure I had it (2019.2.0.b690aa0334b5 built by Niklas Mischkulnig).

1. See the attached Panorama Creator Wizard screenshot where pto2mk is replaced by hugin_executor but there is no version number.
2. I ran digikam again but got an error message that it could not find enblend.  See the second screenshot and the messages citing having to revert to system path.
3. So I modified my zsh path to include /Applications/Hugin/tools_mac and that made some progress.

sbishop@MacBook-Pro ~ % echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin:/Applications/Hugin/tools_mac
sbishop@MacBook-Pro ~ % 

4. But what actually worked and rendered a panorama is starting digikam from the terminal command line rather than from the digikam icon on my Launchpad.

sbishop@MacBook-Pro ~ %  /Applications/digiKam.org/digikam.app/Contents/MacOS/digikam &


But this approach which is likely wrong way to do it, pops up a bunch of warning messages and Error # 11 because of my Affinity Photo images (.afphoto) file type.  See the terminal messages in the attached file.

So it appears to me that the digiKam 7.6.0 installation on Apple MacBook Pro running Monterey 12.4 might need some execution path changes to ensure Hugin’s tools_mac directory is found.  Note: This was an interesting exercise since I haven’t work with Unix commands in quite a while.


Sincerely,

Steve









Steve

> On Jun 14, 2022, at 12:39 PM, Maik Qualmann <bugzilla_noreply@kde.org> wrote:
> 
> https://bugs.kde.org/show_bug.cgi?id=455226
> 
> --- Comment #9 from Maik Qualmann <metzpinguin@gmail.com> ---
> Exactly it depends on the returned version of "autooptimiser". As you can see
> it is 2019.2 in your screenshot. So it is very strange that digiKam is looking
> for pto2mk. A debug output from the terminal would be interesting.
> 
> Maik
> 
> -- 
> You are receiving this mail because:
> You reported the bug.

Dr. Steven Bishop, Ph.D.
100 Lakebreeze Way
Fredericksburg, VA 22406
+1-540-429-1842
Comment 11 Steve 2022-06-14 20:58:20 UTC
Created attachment 149707 [details]
attachment-516-1.html
Comment 12 Steve 2022-06-14 20:58:20 UTC
Created attachment 149708 [details]
attachment-516-2.html
Comment 13 Steve 2022-06-14 20:58:20 UTC
Created attachment 149709 [details]
attachment-516-3.html
Comment 14 Steve 2022-06-14 20:58:20 UTC
Created attachment 149710 [details]
Screen Shot 2022-06-14 at 4.09.54 PM.png
Comment 15 Steve 2022-06-14 20:58:20 UTC
Created attachment 149711 [details]
Screen Shot 2022-06-14 at 4.12.13 PM.png
Comment 16 Steve 2022-06-14 20:58:20 UTC
Created attachment 149712 [details]
digikam-cli-startup-messages.txt
Comment 17 Maik Qualmann 2022-06-15 07:52:16 UTC
It is normal that hugin_executor does not show a version number, the tool has no option for it.

It works launched from the terminal but not via the icon?

Maik
Comment 18 Steve 2022-06-15 13:01:20 UTC
Created attachment 149743 [details]
attachment-31640-0.html

While the DigiKam app starts up and runs via the icon I found that it is the updated system PATH and use of the terminal cli that enables the Hugin to work correctly.  Have I done something wrong?

Steve

Sent from my Steve's iPad

> On Jun 15, 2022, at 3:52 AM, Maik Qualmann <bugzilla_noreply@kde.org> wrote:
> 
> https://bugs.kde.org/show_bug.cgi?id=455226
> 
> --- Comment #17 from Maik Qualmann <metzpinguin@gmail.com> ---
> It is normal that hugin_executor does not show a version number, the tool has
> no option for it.
> 
> It works launched from the terminal but not via the icon?
> 
> Maik
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 19 caulier.gilles 2023-05-02 07:23:18 UTC
@Steve,

Well i don't understand you last comment. What do you mean exactly ?

Also, digiKam 8.0.0 is out. This entry still valid with this release ?

Best regards

Gilles Caulier
Comment 20 caulier.gilles 2023-10-19 12:48:02 UTC
@Steve,

Did you seen my last comment ?

Also, digikam 8.2.0 pre-release have been rebuilt using last Qt 5.15.11 + KDE 5.110
frameworks. Installer is available at usual place :

https://files.kde.org/digikam/

Can reproduce the problem with this version?

Thanks in advance

Gilles Caulier