pythoncookiecutter

Cookiecutter error message "A valid repository for "." could not be found in the following locations: ."


enter image description here

After doing that and open the terminal i wrote

cookiecutter .

and the message that appear is

A valid repository for "." could not be found in the following locations: .

Some one knows whats going on? I come from this other post about it
Cookiecutter: A valid repository for X could not be found in the following locations:
but nothing that was said there worked for me.

I corrected the name of the .json which was bad save and try again.

Did everything that was in the post I linked before


Solution

  • I think you have cookiecutter.json in wrong place.

    It seems you have it inside {{ ... _slug }} but it has to be directly in COOKIECUTTER_TESTING
    (if you run cookiecutter . in folder COOKIECUTTER_TESTING)

    COOKIECUTTER_TESTING
    |
    +--> cookiecutter.json
    |
    +--> {{ ... _slug }}
         |
         +--> data
         |
         +--> notebooks
         | 
         +--> environment.yml