<p>Run the following command in your terminal:</p>

<p>pip install construct==2.5.2</p>

<p>Then try to run the python script again.</p>

CC BY-SA 4.0
2018-07-21T19:01:56.080Z
2018-07-21T19:01:56.080Z
apt-getschwifty
<p>I'm trying to use the genesis script from innova to generate a genesis block of Xevan_hash</p>

<p><a href="https://github.com/innovacoin/GenesisH0/blob/master/genesis.py" rel="nofollow noreferrer">https://github.com/innovacoin/GenesisH0/blob/master/genesis.py</a></p>

<p>I'm using these parameters:
python genesis.py -a xevan_hash -z "a news string" -p "myprivate key"</p>

<p>and I always get this error:</p>

<pre><code>Traceback (most recent call last):
  File "genesis.py", line 224, in &lt;module&gt;
    main()
  File "genesis.py", line 15, in main
    tx = create_transaction(input_script, output_script, options)
  File "genesis.py", line 74, in create_transaction
    Bytes("version", 4),
TypeError: __init__() takes exactly 2 arguments (3 given)
</code></pre>

<altcoin><python><altcoin-development><genesis-block>
Altcoin - genesis block - TypeError: __init__() takes exactly 2 arguments (3 given)
Marco
# Altcoin - genesis block - TypeError: __init__() takes exactly 2 arguments (3 given)

(Asked by: username_0 on 2018-05-30)

I'm trying to use the genesis script from innova to generate a genesis block of Xevan\_hash

<https://github.com/innovacoin/GenesisH0/blob/master/genesis.py>

I'm using these parameters:
python genesis.py -a xevan\_hash -z "a news string" -p "myprivate key"

and I always get this error:

```
Traceback (most recent call last):
  File "genesis.py", line 224, in <module>
    main()
  File "genesis.py", line 15, in main
    tx = create_transaction(input_script, output_script, options)
  File "genesis.py", line 74, in create_transaction
    Bytes("version", 4),
TypeError: __init__() takes exactly 2 arguments (3 given)

```

**Tags:** altcoin, python, altcoin-development, genesis-block


---

## 1 answers

### Answer by username_1 on 2018-07-21. Score: 1

Run the following command in your terminal:

pip install construct==2.5.2

Then try to run the python script again.


---

