Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AI and Deep Learning by (17.6k points)

I installed cookiecutter using

`conda install cookiecutter` 

but when I try to import the repo from git hub using

`cookiecutter https://github.com/drivendata/cookiecutter-data-science`

I got the following error message:

{

Traceback (most recent call last):

File "C:\Users\iamuraptha\Anaconda3\Scripts\cookiecutter-script.py", line 5, in <module>

    sys.exit(cookiecutter.cli.main())

  File "C:\Users\iamuraptha\Anaconda3\lib\site-packages\click\core.py", line 722, in __call__

    return self.main(*args, **kwargs)

  File "C:\Users\iamuraptha\Anaconda3\lib\site-packages\click\core.py", line 697, in main

    rv = self.invoke(ctx)

  File "C:\Users\iamuraptha\Anaconda3\lib\site-packages\click\core.py", line 895, in invoke

    return ctx.invoke(self.callback, **ctx.params)

  File "C:\Users\iamuraptha\Anaconda3\lib\site-packages\click\core.py", line 535, in invoke

    return callback(*args, **kwargs)

  File "C:\Users\iamuraptha\Anaconda3\lib\site-packages\cookiecutter\cli.py", line 120, in main

    password=os.environ.get('COOKIECUTTER_REPO_PASSWORD')

  File "C:\Users\iamuraptha\Anaconda3\lib\site-packages\cookiecutter\main.py", line 63, in cookiecutter

    password=password

  File "C:\Users\iamuraptha\Anaconda3\lib\site-packages\cookiecutter\repository.py", line 103, in determine_repo_dir

    no_input=no_input,

  File "C:\Users\iamuraptha\Anaconda3\lib\site-packages\cookiecutter\vcs.py", line 99, in clone

    stderr=subprocess.STDOUT,

  File "C:\Users\iamuraptha\Anaconda3\lib\subprocess.py", line 336, in check_output

    **kwargs).stdout

  File "C:\Users\iamuraptha\Anaconda3\lib\subprocess.py", line 418, in run

    output=stdout, stderr=stderr)

subprocess.CalledProcessError: Command '['git', 'clone', 'https://github.com/drivendata/cookiecutter-data-science']' returned non-zero exit status 128. 

}

2 Answers

0 votes
by (107k points)

You can use the following link as this link provides you the 'clone or download' button in Github: https://github.com/drivendata/cookiecutter-data-science and you can easily import the repo from Github.

0 votes
by (41.4k points)

You can install the packages using below:

conda install cookiecutter

After installing the package use this:

cookiecutter https://github.com/drivendata/cookiecutter-data-science

This will give the following output:

project_name [project_name]: Fred

repo_name [Fred]: Fred

author_name [Your name (or your organization/company/team)]: Joseph 

Cunningham

description [A short description of the project.]: test

Select open_source_license:

1 - MIT

2 - BSD-3-Clause

3 - No license file

Choose from 1, 2, 3 [1]: 3

s3_bucket [[OPTIONAL] your-bucket-for-syncing-data (do not include 

's3://')]: 

aws_profile [default]: 

Select python_interpreter:

1 - python

2 - python3

Choose from 1, 2 [1]: 2

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...