Bug 497062 - "GpgME not installed correctly" when opening first PDF on Windows.
Summary: "GpgME not installed correctly" when opening first PDF on Windows.
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 24.08.3
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-04 23:44 UTC by Garret Wilson
Modified: 2024-12-05 00:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
"GpgME not installed correctly" screen shot (8.54 KB, image/png)
2024-12-04 23:44 UTC, Garret Wilson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Garret Wilson 2024-12-04 23:44:21 UTC
Created attachment 176363 [details]
"GpgME not installed correctly" screen shot

SUMMARY

Trying to open a PDF results in an error: "GpgME not installed correctly". This only occurs with the first PDF opened. After that the error does not occur until the program is restarted.

STEPS TO REPRODUCE
1. Download and install https://cdn.kde.org/ci-builds/graphics/okular/release-24.08/windows/okular-release_24.08-5436-windows-cl-msvc2022-x86_64.exe on Windows 10.
2. Download a PDF such as https://www.sscardapane.it/assets/alice/Alice_book_volume_1.pdf .
3. Open the PDF in Okular.

OBSERVED RESULT

```
GpgME not installed correctly

gpgme-w32spawn.exe was not found in the detected installation
directory of GpgME
                  "C:\Program Files\Okular\bin"

Crypto operations will not work.

If you see this it indicates a problem with your installation.
Please report the problem to your distributor of GpgME.

Developer's Note: The installer dir can be manually set with:
gpgme_set_global_flag
```
EXPECTED RESULT

The PDF opens with no error.

SOFTWARE/OS VERSIONS
Windows: Windows 10 22H2 19045.5131

ADDITIONAL INFORMATION
I had previously installed the version from Microsoft Store as the documentation indicated, and it did not exhibit this error. However the Microsoft Store version is over a year old: v23.08. So I uninstalled it and downloaded v24.08.

From a little research, it would appear that this should have been fixed long ago. See links below.

* [“GpgME not installed correctly” error when opening regular Okular](https://forum.gnupg.org/t/gpgme-not-installed-correctly-error-when-opening-regular-okular/4190)
* [Binary Factory build #1575 is missing one .exe from /bin -- Configure backend doesn't work ](https://bugs.kde.org/show_bug.cgi?id=476981).
* [GPGME: Finding gpgme-w32-spawn.exe should be optiona](https://dev.gnupg.org/T6818).
* [core: Fail loudly in case w32 spawner not found](https://dev.gnupg.org/rM9cf983b0199950c8f8cccee2cb8e45aafcba9fd1).
Comment 1 Garret Wilson 2024-12-04 23:51:28 UTC
I uninstalled v24.08 and installed the very latest nightly https://cdn.kde.org/ci-builds/graphics/okular/master/windows/okular-master-5563-windows-cl-msvc2022-x86_64.exe (which appears to be v24.08.3 according to **Help > About Okular**), and the exact same error appears.
Comment 2 Albert Astals Cid 2024-12-05 00:22:26 UTC
If you want a version that works use the Microsoft Store one, all the other binaries are provided as a best effort, if they don't work either don't use them or provide patches to make them work.