Comments (4)
This "No data" error comes straight from gpgme - GPG_ERR_NO_DATA
https://www.gnupg.org/documentation/manuals/gpgme/Decrypt.html
GPG_ERR_NO_DATA if cipher does not contain any data to decrypt
I think this error message is probably misleading as these tests use their own keyring and definitely pass in data to decrypt.
I searched around a little and it seems to be a pretty common error message from gpgme but I'm not very familiar with it sorry. It's interesting that the Data
tests are passing on their own, but no encryption/decryption or even export/import. The encryption error you get GPG_ERR_INV_VALUE
https://www.gnupg.org/documentation/manuals/gpgme/Encrypting-a-Plaintext.html
GPG_ERR_INV_VALUE if ctx, recp, plain or cipher is not a valid pointer
from gpgme.
Ok but the thing is, gpg can decrypt that file just fine :(
from gpgme.
The tests do a wee bit of mucking around to try find the correct GPG binary to use (because some tests only work with gpg1). So maybe that's causing issues.
Maybe try run something like this and see if the binary location are what you'd expect https://play.golang.org/p/O-KodNjKXgi
from gpgme.
And it is not what I expected to thanks for the hint and GetEngineInfo()
. I have indeed a broken gpg binary lying around. I'll check and close the issue if this is what I think.
from gpgme.
Related Issues (12)
- Issues with building on Windows HOT 13
- Finding Keys on Windows HOT 3
- Does not build on Travis-CI [Linux] HOT 6
- tag official releases HOT 2
- Linking with older versions of GPGME should use the -lgpgme-pthread library HOT 2
- compilation terminated HOT 1
- macOS `fatal error: 'gpgme.h' file not found` HOT 2
- lb: library not found for -lassuan HOT 15
- Compilation on RHEL/CentOS 7 fails on pkg-config HOT 4
- could not import C (cgo preprocessing failed)) HOT 2
- Does not build against older gpgme versions HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpgme.