# Problem create certificate template

**URL:** <https://community.blockcerts.org/t/problem-create-certificate-template/210>\
**Category:** Technical\
**Created:** [July 6, 2017, 12:36am UTC](https://community.blockcerts.org/t/problem-create-certificate-template/210 "2017-07-06T00:36:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngel](https://avatars.discourse-cdn.com/v4/letter/n/ba9def/32.png) [@ngel](https://community.blockcerts.org/u/ngel)\
**Post date:** [July 6, 2017, 12:36am UTC](https://community.blockcerts.org/t/problem-create-certificate-template/210/1 "2017-07-06T00:36:18Z")

</div>

hi everyone, I have a problem with create certificate like this:  
issuer\_signature\_lines  
Traceback (most recent call last):  
File “/usr/local/bin/create-certificate-template”, line 11, in   
sys.exit(main())  
File “/usr/local/lib/python2.7/dist-packages/cert\_tools/create\_v2\_certificate\_template.py”, line 185, in main  
template = create\_certificate\_template(conf)  
File “/usr/local/lib/python2.7/dist-packages/cert\_tools/create\_v2\_certificate\_template.py”, line 112, in create\_certificate\_template  
badge = create\_badge\_section(config)  
File “/usr/local/lib/python2.7/dist-packages/cert\_tools/create\_v2\_certificate\_template.py”, line 30, in create\_badge\_section  
’image’: helpers.encode\_image(cert\_image\_path),  
File “/usr/local/lib/python2.7/dist-packages/cert\_tools/helpers.py”, line 32, in encode\_image  
with open(filename, “rb”) as image\_file:  
IOError: [Errno 2] No such file or directory: ‘/usr/local/lib/python2.7/dist-packages/sample\_data/images/certificate-image.png’

the directory is created but I don’t understand why ?

I try run using like this:  
python3 create-certificate-template -c conf.ini  
the result is here:  
python3: can’t open file ‘create-certificate-template’: [Errno 2] No such file or directory  
and create create-create-template directory  
and run again python3 create-certificate-template -c conf.ini  
and the result is:  
/usr/bin/python3: can’t find ‘ **main** ’ module in ‘create-certificate-template’

please help me.

regards  
Angel

---

<div class="post-metadata">

**Author:** ![Gabalo](https://avatars.discourse-cdn.com/v4/letter/g/7c8e57/32.png) [@Gabalo](https://community.blockcerts.org/u/Gabalo)\
**Post date:** [July 6, 2017, 12:59am UTC](https://community.blockcerts.org/t/problem-create-certificate-template/210/2 "2017-07-06T00:59:02Z")

</div>

Hi Angel,

I assume you are working on Cert-Tools.  
Now, for this error:

> IOError: [Errno 2] No such file or directory: ‘/usr/local/lib/python2.7/dist-packages/sample\_data/images/certificate-image.png’

Just create those folders and make sure you have the images there.

For this one:

> python3: can’t open file ‘create-certificate-template’: [Errno 2] No such file or directory

Did you installed the package with pip before trying to run the script? These 2 commands worked fine for me:  
` pip install .`  
` create-certificate-template -c conf.ini`

Regards,  
Gabriel

---

<div class="post-metadata">

**Author:** ![ngel](https://avatars.discourse-cdn.com/v4/letter/n/ba9def/32.png) [@ngel](https://community.blockcerts.org/u/ngel)\
**Post date:** [July 6, 2017, 2:13am UTC](https://community.blockcerts.org/t/problem-create-certificate-template/210/3 "2017-07-06T02:13:51Z")

</div>

thank you Gabriel, please help me I fix the problem but I don’t know how to show the certificates.  
in the EXAMPLE, tell me the conf-mainnet.ini where is this file, or I create this file? if I create this file what do I put in there? and tell me this “Run create\_certificate\_template.py, which resulted in the certificate template /certificate\_templates/game\_of\_thrones\_live\_template.json”, but when I run create\_v2\_certificate\_template.py show me error in “ **main** ”,and where is game\_of\_thrones\_live\_template.json or how to do my own certificate.

please help me step by step

regards.  
Angel
