Tryton cookiecutter error

28 views
Skip to first unread message

Vincent Bastos

unread,
Jan 12, 2017, 8:13:52 PM1/12/17
to tryton-dev
Hey,

I thought I would try to use the Tryton cookiecutter, but I am getting the following error:

(tryton38testmodule)➜  tryton38testmodule cookiecutter https://hg.tryton.org/cookiecutter

Traceback (most recent call last):

  File "/usr/local/bin/cookiecutter", line 11, in <module>

    sys.exit(main())

  File "/Library/Python/2.7/site-packages/click/core.py", line 610, in __call__

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

  File "/Library/Python/2.7/site-packages/click/core.py", line 590, in main

    rv = self.invoke(ctx)

  File "/Library/Python/2.7/site-packages/click/core.py", line 782, in invoke

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

  File "/Library/Python/2.7/site-packages/click/core.py", line 416, in invoke

    return callback(*args, **kwargs)

  File "/Library/Python/2.7/site-packages/cookiecutter/cli.py", line 70, in main

    cookiecutter(template, checkout, no_input)

  File "/Library/Python/2.7/site-packages/cookiecutter/main.py", line 79, in cookiecutter

    no_input=no_input

  File "/Library/Python/2.7/site-packages/cookiecutter/vcs.py", line 97, in clone

    repo_type, repo_url = identify_repo(repo_url)

  File "/Library/Python/2.7/site-packages/cookiecutter/vcs.py", line 69, in identify_repo

    raise UnknownRepoType

cookiecutter.exceptions.UnknownRepoType

Sergi Almacellas Abellana

unread,
Jan 13, 2017, 3:07:22 AM1/13/17
to tryto...@googlegroups.com
El 13/01/17 a les 02:13, Vincent Bastos ha escrit:
> Hey,
>
> I thought I would try to use the Tryton cookiecutter, but I am getting
> the following error:
>
> (tryton38testmodule)*➜ **tryton38testmodule*cookiecutter
You should indicate the repo type in the cookiecutter URL. This is
explained on their docs:

https://cookiecutter.readthedocs.io/en/latest/usage.html#works-directly-with-git-and-hg-mercurial-repos-too



--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Cédric Krier

unread,
Jan 13, 2017, 4:25:05 AM1/13/17
to tryton-dev
On 2017-01-12 17:13, Vincent Bastos wrote:
> Hey,
>
> I thought I would try to use the Tryton cookiecutter, but I am getting the
> following error:
>
> (tryton38testmodule)*➜ **tryton38testmodule* cookiecutter
> https://hg.tryton.org/cookiecutter

You must use the URL: hg+https://hg.tryton.org/cookiecutter
because cookiecutter does not know the type of repository.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
Forward
0 new messages