GPGME progress callback no current or total

Jacob Adams tookmund at gmail.com
Tue May 15 20:45:25 CEST 2018


I was testing the progress callback of GPGME in python and got some
strange results.
I'm using GPGME v1.11.1

$ cat progresstest.py


import gpg, tempfile



# Borrowed from callbacks.py

def progress_stdout(what, type, current, total, hook=None):

	print("PROGRESS UPDATE: what = %s, type = %d, current = %d, total = %d" %\

		(what, type, current, total))



tmp = tempfile.TemporaryDirectory()

ctx = gpg.Context(home_dir=tmp.name)

ctx.set_progress_cb(progress_stdout)

ctx.create_key("Test <test at example.com>", algorithm="rsa4096")


$ python3 progresstest.py


PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 46, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0

PROGRESS UPDATE: what = primegen, type = 43, current = 0, total = 0


Aren't current and total supposed to indicate progress? Why might they
be zero?

Thanks,
Jacob

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20180515/b30b0ccc/attachment-0001.sig>


More information about the Gnupg-users mailing list