Cert-tools Error

When attempting instantiate-certificate-batch -c conf.ini after using create-certificate-template -c conf.ini to create a template, I get the following error:

Traceback (most recent call last):
  File "/usr/local/bin/instantiate-certificate-batch", line 33, in <module>
    sys.exit(load_entry_point('cert-tools==3.0.0a2', 'console_scripts', 'instantiate-certificate-batch')())
  File "/usr/local/lib/python3.9/site-packages/cert_tools-3.0.0a2-py3.9.egg/cert_tools/instantiate_v2_certificate_batch.py", line 150, in main
    instantiate_batch(conf)
  File "/usr/local/lib/python3.9/site-packages/cert_tools-3.0.0a2-py3.9.egg/cert_tools/instantiate_v2_certificate_batch.py", line 114, in instantiate_batch
    certs = create_unsigned_certificates_from_roster(template, recipients, use_identities, config.additional_per_recipient_fields, config.hash_emails)
  File "/usr/local/lib/python3.9/site-packages/cert_tools-3.0.0a2-py3.9.egg/cert_tools/instantiate_v2_certificate_batch.py", line 73, in create_unsigned_certificates_from_roster
    issued_on = helpers.create_iso8601_tz()
  File "/usr/local/lib/python3.9/site-packages/cert_tools-3.0.0a2-py3.9.egg/cert_tools/helpers.py", line 61, in create_iso8601_tz
    return ret.isoformat()
AttributeError: 'str' object has no attribute 'isoformat'

Any ideas as to what I’ve done wrong?

I should note, I am simply running through the steps laid out in the readme:
https://github.com/blockchain-certificates/cert-tools#readme
I haven’t changed any options in the conf.ini file.

Never mind. I found an edit to helpers.py that fixes the issue.
https://github.com/blockchain-certificates/cert-tools/issues/48#issuecomment-815065200

@LSmith sorry I just received the notification for your question. Glad you could figure it out. There is indeed a PR that’s been waiting to be merged, but there is an issue with it.

I am new with blockcerts, I read a lot, but I cant test it
If I search the place y must to change the code, I find this files

$HOME/cert-tools/cert_tools/helpers.py:59:def create_iso8601_tz():
$HOME/.local/lib/python3.9/site-packages/cert_tools/helpers.py:59:def create_iso8601_tz():

Which are the file I must change?
Modifying one of it like this…

def create_iso8601_tz():
    return datetime.now(timezone.utc).isoformat()[:-13]+'Z'

My console show me a loooong response starting with this lines

ERROR:root:‘nonce’ is a required property

Failed validating ‘required’ in schema:
{‘$schema’: ‘http://json-schema.org/draft-07/schema#’,
‘additionalProperties’: True,

I dont know how to proceed, because i dont find answers when I search this error.
Can anybody help me?? :sob:

Hi, i´m resolve this replace return ret.isoformat() with return ret and this works for me. I hope this help you!

Still happening in python 312

Hey, please merge cert-tools#55 to solve this issue.