Helsinki-NLP / OPUS-MT-train

Training open neural machine translation models
MIT License
312 stars 39 forks source link

Unable to find current origin/master revision in submodule path #87

Open hthanhbmt opened 1 year ago

hthanhbmt commented 1 year ago

When I install I got some issue:

Unable to find current origin/master revision in submodule path third_party/cpuinfo
Failed to recurse into submodule path tools/marian-dev/src/3rd_party/fbgemm
Failed to recurse into submodule path tools/browsermt/marian-dev
Failed to recurse into submodule path tools/marian-dev

I found that cpuinfo and googletest repository changed the default "Master branch" to "Main branch", so we need to change the config in file: tools/marian-dev/src/3rd_party/fbgemm/.gitmodules and tools/browsermt/marian-dev/src/3rd_party/fbgemm/.gitmodules

for example, I added the attribute branch = main

[submodule "third_party/cpuinfo"]
    path = third_party/cpuinfo
    url = https://github.com/pytorch/cpuinfo
    branch = main

[submodule "third_party/googletest"]
    path = third_party/googletest
    url = https://github.com/google/googletest
    branch = main
pdakwal commented 1 year ago

@hthanhbmt I am getting the same error. Even after adding branch=main. Any success regarding this?

hthanhbmt commented 1 year ago

@pdakwal

I remember I changed 2 files with the same content, you should check again. There are: tools/marian-dev/src/3rd_party/fbgemm/.gitmodules tools/browsermt/marian-dev/src/3rd_party/fbgemm/.gitmodules