# Cert-issuer -c conf.ini Error

**URL:** <https://community.blockcerts.org/t/cert-issuer-c-conf-ini-error/3450>\
**Category:** Support\
**Created:** [August 2, 2023, 8:32am UTC](https://community.blockcerts.org/t/cert-issuer-c-conf-ini-error/3450 "2023-08-02T08:32:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![oto3](https://avatars.discourse-cdn.com/v4/letter/o/258eb7/32.png) [@oto3](https://community.blockcerts.org/u/oto3)\
**Post date:** [August 2, 2023, 8:32am UTC](https://community.blockcerts.org/t/cert-issuer-c-conf-ini-error/3450/1 "2023-08-02T08:32:41Z")

</div>

When I run the command I get the following error:  
What should I do?

```auto
TypeError: CertificateV3Handler. __init__ () missing 1 required positional argument: 'app_config'

```

conf.ini

```auto
issuing_address = 0x000000000000000000000000000000000000
verification_method = did:web:xxxxxxx.storage.googleapis.com#key-1
usb_name=.
key_file=key_file.txt

unsigned_certificates_dir=/Project/blockcerts/data/unsigned_certificates
blockchain_certificates_dir=/Project/blockcerts/data/blockchain_certificates
work_dir=/Project/blockcerts/data/work

chain = ethereum_sepolia
sepolia_rpc_url = https://eth-sepolia.g.alchemy.com/v2/ALO1O9NVB6XAs9pidhicAfAhZaLRwCKx

no_safe_mode

```

---

<div class="post-metadata">

**Author:** ![lemoustachiste](https://avatars.discourse-cdn.com/v4/letter/l/7c8e57/32.png) [@lemoustachiste](https://community.blockcerts.org/u/lemoustachiste)\
**Post date:** [August 18, 2023, 7:06am UTC](https://community.blockcerts.org/t/cert-issuer-c-conf-ini-error/3450/2 "2023-08-18T07:06:24Z")

</div>

This looks like an error with Python rather than the library itself.

Did you modify the code?

You need to check why the app\_config arg is not passed / available to the function

---

<div class="post-metadata">

**Author:** ![oto3](https://avatars.discourse-cdn.com/v4/letter/o/258eb7/32.png) [@oto3](https://community.blockcerts.org/u/oto3)\
**Post date:** [September 4, 2023, 5:37am UTC](https://community.blockcerts.org/t/cert-issuer-c-conf-ini-error/3450/3 "2023-09-04T05:37:30Z")

</div>

> <https://github.com/blockchain-certificates/cert-issuer/blob/master/prepare-vc-compliance-tests-config.sh>

It worked fine by setting chain to mockchain.Thanks.  
If I want to use the originally configured sepolia network, how should I configure it?  
I originally defined it like this:

```auto
chain = ethereum_sepolia
sepolia_rpc_url = https://eth-sepolia.g.alchemy.com/v2/ALO1O9NVB6XAs9pidhicAfAhZaLRwCKx

```

---

<div class="post-metadata">

**Author:** ![lemoustachiste](https://avatars.discourse-cdn.com/v4/letter/l/7c8e57/32.png) [@lemoustachiste](https://community.blockcerts.org/u/lemoustachiste)\
**Post date:** [September 4, 2023, 12:38pm UTC](https://community.blockcerts.org/t/cert-issuer-c-conf-ini-error/3450/4 "2023-09-04T12:38:03Z")

</div>

```auto
issuing_address=0xyourissuingaddress
chain=ethereum_sepolia

```

in pk\_issuer.txt: your private key

---

<div class="post-metadata">

**Author:** ![oto3](https://avatars.discourse-cdn.com/v4/letter/o/258eb7/32.png) [@oto3](https://community.blockcerts.org/u/oto3)\
**Post date:** [September 5, 2023, 5:51am UTC](https://community.blockcerts.org/t/cert-issuer-c-conf-ini-error/3450/5 "2023-09-05T05:51:00Z")

</div>

Thank you for your reply.  
If you continue to specify “ethereum\_sepolia” in the “chain” field, the same error below will occur.

```auto
😭 cert-issuer -c conf.ini
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 ethereum_sepolia chain
Traceback (most recent call last):
  File "/Users/ogawaranaoki/.pyenv/versions/3.10.7/bin/cert-issuer", line 8, in <module>
    sys.exit(cert_issuer_main())
  File "/Users/ogawaranaoki/.pyenv/versions/3.10.7/lib/python3.10/site-packages/cert_issuer/ __main__.py", line 17, in cert_issuer_main
    issue_certificates.main(parsed_config)
  File "/Users/ogawaranaoki/.pyenv/versions/3.10.7/lib/python3.10/site-packages/cert_issuer/issue_certificates.py", line 30, in main
    certificate_batch_handler, transaction_handler, connector = ethereum.instantiate_blockchain_handlers(app_config)
  File "/Users/ogawaranaoki/.pyenv/versions/3.10.7/lib/python3.10/site-packages/cert_issuer/blockchain_handlers/ethereum/ __init__.py", line 64, in instantiate_blockchain_handlers
    certificate_handler=CertificateV3Handler(),
TypeError: CertificateV3Handler. __init__ () missing 1 required positional argument: 'app_config'

```

The conf.ini that is set is below.

```auto
verification_method=did:web:blockcerts-20230802.storage.googleapis.com#key-1
usb_name=.
key_file=pk.txt
unsigned_certificates_dir=/Users/ogawaranaoki/Project/blockcerts/data/unsigned_certificates
blockchain_certificates_dir=/Users/ogawaranaoki/Project/blockcerts/data/blockchain_certificates
work_dir=/Users/ogawaranaoki/Project/blockcerts/data/work

issuing_address=0xEd098A14695cA7Eb019615C9370D136EdAABf236
chain=ethereum_sepolia
sepolia_rpc_url=https://eth-sepolia.g.alchemy.com/v2/myalchemysepolianetkey

no_safe_mode

```

If you specify mockchain for chain, it will succeed, but if you change it to ethereum\_sepolia, an app\_config error will occur.

---

<div class="post-metadata">

**Author:** ![linear](https://avatars.discourse-cdn.com/v4/letter/l/90ced4/32.png) [@linear](https://community.blockcerts.org/u/linear)\
**Post date:** [October 4, 2023, 8:29am UTC](https://community.blockcerts.org/t/cert-issuer-c-conf-ini-error/3450/6 "2023-10-04T08:29:04Z")

</div>

I solved this by changing the “certificate\_handler=CertificateV3Handler()” to “certificate\_handler=CertificateV3Handler(app\_config)” in python3.10/site-packages/cert\_issuer/blockchain\_handlers/ethereum/ **init**.py

---

<div class="post-metadata">

**Author:** ![oto3](https://avatars.discourse-cdn.com/v4/letter/o/258eb7/32.png) [@oto3](https://community.blockcerts.org/u/oto3)\
**Post date:** [October 6, 2023, 5:06am UTC](https://community.blockcerts.org/t/cert-issuer-c-conf-ini-error/3450/7 "2023-10-06T05:06:19Z")

</div>

Thanks so much!!

```auto
certificate_handler=CertificateV3Handler(app_config)

```

After making this modification, it worked!

@lemoustachiste  
Is this a bug in cert-issuer?
