# Error when Issue certificate "UnboundLocalError"

**URL:** <https://community.blockcerts.org/t/error-when-issue-certificate-unboundlocalerror/1036>\
**Category:** Support\
**Created:** [May 16, 2018, 10:13am UTC](https://community.blockcerts.org/t/error-when-issue-certificate-unboundlocalerror/1036 "2018-05-16T10:13:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taibah](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@Taibah](https://community.blockcerts.org/u/Taibah)\
**Post date:** [May 16, 2018, 10:13am UTC](https://community.blockcerts.org/t/error-when-issue-certificate-unboundlocalerror/1036/1 "2018-05-16T10:13:24Z")

</div>

Hello,

When i try to issue a certificate with “cert-issuer -c /etc/cert-issuer/conf.ini” i get the following error

WARNING - Your app is configured to skip the wifi check when the USB is plugged in. Read the documentation to ensure this is what you want, since this is less secure  
INFO - This run will try to issue on the bitcoin\_regtest chain  
Traceback (most recent call last):  
File “/usr/bin/cert-issuer”, line 11, in   
load\_entry\_point(‘cert-issuer==2.0.14’, ‘console\_scripts’, ‘cert-issuer’)()  
File “/usr/lib/python3.6/site-packages/cert\_issuer/ **main**.py”, line 17, in cert\_issuer\_main  
issue\_certificates.main(parsed\_config)  
File “/usr/lib/python3.6/site-packages/cert\_issuer/issue\_certificates.py”, line 35, in main  
certificate\_batch\_handler, transaction\_handler, connector = bitcoin.instantiate\_blockchain\_handlers(app\_config)  
File “/usr/lib/python3.6/site-packages/cert\_issuer/blockchain\_handlers/bitcoin/ **init**.py”, line 66, in instantiate\_blockchain\_handlers  
transaction\_handler = BitcoinTransactionHandler(connector, cost\_constants, secret\_manager,  
UnboundLocalError: local variable ‘cost\_constants’ referenced before assignment

---

<div class="post-metadata">

**Author:** ![aronning](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@aronning](https://community.blockcerts.org/u/aronning)\
**Post date:** [May 16, 2018, 6:12pm UTC](https://community.blockcerts.org/t/error-when-issue-certificate-unboundlocalerror/1036/2 "2018-05-16T18:12:57Z")

</div>

Hello @Taibah

I ran into this problem myself, should be fixed as part of 2.0.15 (released just moments ago). Let us know if you’re having any problems with that after pulling down the latest code.

Anthony

---

<div class="post-metadata">

**Author:** ![Taibah](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@Taibah](https://community.blockcerts.org/u/Taibah)\
**Post date:** [May 16, 2018, 8:17pm UTC](https://community.blockcerts.org/t/error-when-issue-certificate-unboundlocalerror/1036/3 "2018-05-16T20:17:50Z")

</div>

> [@Taibah](#):
>
> File “/usr/lib/python3.6/site-packages/cert\_issuer/ **main**.py”, line 17, in cert\_issuer\_main  
> issue\_certificates.main(parsed\_config)

Thanks its working now after i pulled the last version.
