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.

  • 2
    What are the extra details it outputs when you run it with --verbose? – Richard Horrocks Mar 17 '17 at 11:03
  • What does --verbose say? Could you add the whole log? It's working for me, just tested. – soc1c Mar 17 '17 at 11:03
  • @5chdn Sorry just added. – alper Mar 17 '17 at 11:06
  • Are you running it from inside the same directory as example-geth.json? (i.e. The directory created by git clone?) – Richard Horrocks Mar 17 '17 at 11:09
  • 2
    I didn't know you can run cargo without rust :) – soc1c Mar 17 '17 at 12:00
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
  • 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 Mar 17 '17 at 12:10
  • 1
    "homesteadBlock" : 0 translates to "homesteadTransision" : "0x00" in parity json. – soc1c Mar 23 '17 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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