I realized yesterday that this problem will happen for everyone with nupic
already checked out when they update. The right command to fix it (cleaner
than `rm -rf nta`) would be:

    git clean -dfx

This will remove all untracked files within the repository, including the
"nta" directory. Running the build after that will install the submodule
properly.


---------
Matt Taylor
OS Community Flag-Bearer
Numenta


On Tue, Feb 4, 2014 at 12:56 PM, Matt Keith <[email protected]> wrote:

> Matt,
>
> I had to manually remove the nta directory as well.  I had the original
> code base checked out, did a git pull to update it and then ./cleanbuild.sh
> and got the following error message:
>
> fatal: destination path 'nta' already exists and is not an empty directory.
> Clone of 'git://github.com/numenta/nupic.core.git' into submodule path
> 'nta' failed
>
> So I just did a 'rm -rf nta' to delete the directory and then the
> cleanbuild pulled the submodule and built fine.
>
> Thanks,
>
> Matt
>
> On Feb 4, 2014, at 1:20 PM, Matthew Taylor <[email protected]> wrote:
>
> With the merge of this PR[1], the nupic repository[2] no longer contains
> C++. It has all been pulled out into nupic.core[3] and included as a git
> submodule.
>
> If you already have NuPIC checked out, your next pull from master will
> have this change. I've gotten one report that someone needed to manually
> remove the "nta" directory's contents, but that wasn't the case for me.
>
> Please try to run a clean build (cleanbuild.sh) and make sure everything
> works. If you have problems, let us know.
>
> We'll continue working on nupic.core to get it building independently from
> nupic, but for now nupic builds nupic.core entirely. The nupic.core
> repository only contains source code that was originally in the "nta"
> folder.
>
> [1] https://github.com/numenta/nupic/pull/597
> [2] https://github.com/numenta/nupic
> [3] https://github.com/numenta/nupic.core
>
> Thanks,
> ---------
> Matt Taylor
> OS Community Flag-Bearer
> Numenta
>  _______________________________________________
> nupic mailing list
> [email protected]
> http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
>
>
>
> _______________________________________________
> nupic mailing list
> [email protected]
> http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org
>
>
_______________________________________________
nupic mailing list
[email protected]
http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org

Reply via email to