-
Notifications
You must be signed in to change notification settings - Fork 11
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
non-zero exit status 4 #5
Comments
Can you post the command you used when you did the export? -- Edit -- |
Thank you for the reply. I tried splitting in 4 QR codes and then importing. Same result.
It must be a silly mistake at my end. Thank you for helping. |
Sorry, it has taken so long for me to reply. What size is the key you are using (1024, 2048, 4096 etc)? Can you post the command you used to create your gpg key (don't post any of the output from the command or any other sensitive information)? |
I encountered the same error. zbar is not recognizing the images. But as mentioned in the original gist this project was inspired on, it says to try downscaling the images when this happens. After i did this the script exited without errors. |
@welteki Yeah, my suspicion is that the keys are 4096 bits, or the images just need to be downsampled as you pointed out. I tried splitting a 4096 bit key into 4 QR codes, and then tried importing them and I get the error from zbar. Splitting the 4096 bit key into 8 QR codes seems to work though. From the standpoint of easy-gpg-to-paper I think that a minimum number of qrcodes to split the key into can be required based on the size of a key. However, if a qrcode is scanned in and then passed to easy-gpg-to-paper, the best thing that can be done is to provide a better error explaining that the image may need to be downsampled. |
I'm getting a non-zero exit status 4 error.
Probably due to my incompetence.
I'm trying to import 2 png's that I just made with the export tool.
gpg2paper.py import --pubkey mykey.asc --png --in tryout1.png tryout2.png
after which I get:
`scanned 0 barcode symbols from 1 images in 1 seconds
WARNING: barcode data was not detected in some image(s)
things to check:
- is the barcode type supported? currently supported symbologies are:
EAN/UPC (EAN-13, EAN-8, UPC-A, UPC-E, ISBN-10, ISBN-13),
Code 128, Code 39 and Interleaved 2 of 5
- is the barcode large enough in the image?
- is the barcode mostly in focus?
- is there sufficient contrast/illumination?
Traceback (most recent call last):
File "/usr/local/bin/gpg2paper.py", line 274, in
sys.exit(main())
File "/usr/local/bin/gpg2paper.py", line 109, in main
do_import(args)
File "/usr/local/bin/gpg2paper.py", line 122, in do_import
base64str = read_chunks_png(args.in_filenames)
File "/usr/local/bin/gpg2paper.py", line 151, in read_chunks_png
chunk = subprocess.check_output(['zbarimg', '--raw', in_filename])
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
`
Any ideas about what I'm doing wrong?
And thanks for making this tool!
The text was updated successfully, but these errors were encountered: