1

In order to convert geth genesis to parity genesis I have guided into following link: github.com/keorn/parity-spec. I followed the explained usage.

When I try to run: cargo run -- example-geth.json I am faced with following error:

error: An unknown error occurred

To learn more, run the command again with --verbose.

-

*[master][~/parity-spec]$ sudo cargo run --verbose

error: could not execute process `rustc -vV` (never executed)

Caused by:
  No such file or directory (os error 2)

[Q] How could I prevent this error from happening? or is there any other way to convert geth genesis to parity genesis?

Thank you for your valuable time and help.

9
  • 2
    What are the extra details it outputs when you run it with --verbose? Commented Mar 17, 2017 at 11:03
  • What does --verbose say? Could you add the whole log? It's working for me, just tested.
    – q9f
    Commented Mar 17, 2017 at 11:03
  • @5chdn Sorry just added.
    – alper
    Commented Mar 17, 2017 at 11:06
  • Are you running it from inside the same directory as example-geth.json? (i.e. The directory created by git clone?) Commented Mar 17, 2017 at 11:09
  • 2
    I didn't know you can run cargo without rust :)
    – q9f
    Commented Mar 17, 2017 at 12:00

1 Answer 1

2

error: could not execute process rustc -vV (never executed)

Install rust https://www.rust-lang.org/en-US/ :)

curl https://sh.rustup.rs -sSf | sh
2
  • If my Genesis file starts with "config": {"homesteadBlock": 0}, , gist.github.com/avatar-lavventura/… , it sees JSON file as invalid, but I guess that line is not much important.
    – alper
    Commented Mar 17, 2017 at 12:10
  • 1
    "homesteadBlock" : 0 translates to "homesteadTransision" : "0x00" in parity json.
    – q9f
    Commented Mar 23, 2017 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.