-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPGME error: Invalid crypto engine #393
Comments
Causes and solutions
References
|
I removed my local Git installation since it has own
I also ran
|
I'm sorry, the package name was wrong. Can you try re-installing If that doesn't help either, we need more information. Would you be able to capture the whole run of pacman with Process Monitor, save the logfile (in the PML format) and upload it somewhere for us? I would suggest strace, but it seems to have some bad interactions with pacman. :\ Also, in the future, remember to use |
Hi, just quitting MacType process doesn't seem to stop hooking. I disable them and I rebooted, and then clean installing MSYS2 makes work with Actually I realized that the cause is MacType by running Process Monitor. This is Thanks for you help, and sorry for confusing! |
Also, for MacType users, when you put following lines into your [UnloadDll]
gpg.exe |
Thanks for the follow-up! I'll update the top post to include your fix. |
One more patch. MacType was observed by several users to cause `GPGME: Invalid crypto engine` failures in MSYS2. See <msys2/MSYS2-packages#393>. I also removed two full stops in the sake of consistency. * faq-using.xml: Add MacType to the BLODA. Fix formatting. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
For MacType users, if you have this problem even after adding [UnloadDll]
gpg.exe
pacman.exe |
Updated. |
To people who find a solution here, please leave a comment to let us know what worked for you if you wouldn't mind. Thanks in advance. |
Had this issue due to MacType; adding |
@hkmix: I've solved the problem because of your comment, thank you. |
See the discussion on the mailing list: http://marc.info/?l=gnupg-devel&m=144604688823859&w=2 Important: on windows, gpgme needs a special executable Also starting version 1.7.0 of GPGME it does a better job in finding GPG4Win on x64 systems. |
I use MSYS2 with ConEmu and was having this issue as well. Running |
SELF-FIX: I'm on Win10 X64 and For me the issue was caused by Windows Firewall being on block outgoing connections that do not match a rule. Obviously I allowed pacman.exe first and that was allowing it to connect to the package server but not exchange the cryptographic keys, and was just giving a buncha non-descript crypto errors. So having dealt with weird crypto before just now installing the new Github Desktop for Windows, I fixed this one by finding the right .exes to firewall unblock. During the installer, it attempts to update itself, and do some kind of GNUPG trust/key server exchange handshake thing connecting out of gpg.exe (along with the gpg-keys.exe) |
I completely forgot about this issue but just had it again and found my own comment from several months ago, which fixed the problem for me again: |
In my experience this issue may also appear if Msys2 is installed on non-NTFS drive (Ext2fsd in my case). Reinstalling on C:\ works fine. |
@isapir i run msys2_shell.cmd then solved this issue,this seems to be the bug of ConEmu |
@runapp My debug output was pretty much the same as yours. Output
For me, the root cause actually turned out to be the same as an unrelated problem where git rebase interactive was hanging. The culprit was good old BLODA COMODO. It was more obvious in that git problem because I saw high CPU usage from COMODO while However, turning off all of COMODO's services/systems wasn't enough to fix the problem. The workaround (discussed here, here, here, and here) turned out to be to go to After that, git rebase interactive and pacman worked properly. |
@ahiijny Thank you for your tips! Now msys is working flawlessly. |
I just had another issue ( in Win 1803) - but the same "error: GPGME error: Invalid crypto engine " |
@ahiijny work fine after change comodo advance settings. Software version:
Thanks. |
I get this, but not with pacman, just executing various examples of the gpgme lib
This yields
Seems to find gpgconf.exe but not gpg.exe anyone else having this problem? |
@genbtc its the same story there, can you reproduce this behavior on your installation? does that python script prints something different for you? |
@lovetox So same thing. Then i tried in Mingw32 and got the same "No Module named gpg" , so i did: (also the last line in your script had a typo/bug, the last line said "def" again but it meant to call the first def.) So its probably not 64/32 but that is some weird stuff. hope this helps. i dont have the answer. |
I just tested this and i dont have the problem in the MSYS env, only in MINGW env, so i will move my issue |
I also have this issue, I tried all the techniques described here but I still get the following error:
It was a fresh (and the 1st!) install of MSYS2 on a clean machine that I got just 2 weeks ago. It's running Win10 64-bits. |
@ahiijny I had the exact same issue. Turning off the COMODO firewall was not enough. It would be really helpful if they would add this information to a note at the top of this thread. The BLODA hint is sort of vague (at least to me).
|
Hi, |
Because the issue is in 90% of cases caused by the other software and the other 10% is virtually impossible to reproduce. |
This error usually means that there are conflicting gpg installations installed. It can happen for example if you use gpgme from msys2 but also have GnuPG for Windows installed. We also see this on MacOS when using the homebrew version of gpgme on systems that also have MacGPG2 is installed. Clean your system and make sure there is only one version of |
Yo quise compilar Super Mario 64 Plus en MSYS2 MINGW64 y me aparece esto: Que debo hacer? |
This is a super-issue for
GPGME error: Invalid crypto engine
and related errors.The text was updated successfully, but these errors were encountered: