Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find `Cargo.toml or any parent directory #4034

Closed
dotnetspec opened this issue May 12, 2017 · 4 comments
Closed

Could not find `Cargo.toml or any parent directory #4034

dotnetspec opened this issue May 12, 2017 · 4 comments

Comments

@dotnetspec
Copy link

Hi,

I'm in the process of installing Parity on Win 10 32 bit machine.

I follow download and follow instructions from here:

https://parity.io/parity.html

git clone https://github.com/paritytech/parity.git && cd parity

cargo run --release

and get error:

could not find Cargo.toml in C:\Program Files\Ethcore\Parity or any parent directory

all the cargo.toml files are in sub directories.

Why is cargo looking in parent directories?

How to fix?

@alexcrichton
Copy link
Member

Thanks for the report! Are you sure you're cd'ing into the parity directory? The repository has a top-level Cargo.toml, so in theory this would work

@tregismoreira
Copy link

Hey, I got the same error. But I realized that the installation instructions in Pariti's hub isn't accurate. The commands in the section Build from source doesn't clone the repository.

# download Parity code
$ git clone https://github.com/ethcore/parity
$ cd parity

If you go to https://github.com/ethcore/parity you will see the following message:

Moved to https://github.com/paritytech/parity

Then you should run the following command to clone the project:

$ git clone https://github.com/paritytech/parity.git

It worked for me.

@alexcrichton
Copy link
Member

Ah that'd do it, thanks for the comment @tregismoreira!

@achillegley
Copy link

I got the same issue and i fix it by finding the path of Cargo.toml " .cargo\registry\src\github.com-1ecc6299db9ec823\cargo_toml-0.11.6 " in my case... so i just run "cargo check" or "cargo update" or "cargo add library" from terminal from this path..... may be i should add specific environnement PATH to avoid reffering all time to this path..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants