# Where is CreateNewExample.py for ITKExamples

**URL:** <https://discourse.itk.org/t/where-is-createnewexample-py-for-itkexamples/2269>\
**Category:** Uncategorized\
**Created:** [September 27, 2019, 3:29am UTC](https://discourse.itk.org/t/where-is-createnewexample-py-for-itkexamples/2269 "2019-09-27T03:29:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hina-shah](https://discourse.itk.org/user_avatar/discourse.itk.org/hina-shah/32/1001_2.png) [@hina-shah](https://discourse.itk.org/u/hina-shah)\
**Post date:** [September 27, 2019, 3:29am UTC](https://discourse.itk.org/t/where-is-createnewexample-py-for-itkexamples/2269/1 "2019-09-27T03:29:33Z")

</div>

I built ITKExamples against an existing ITK 5.1beta1 build. But I cannot find the CreateNewExample.py in the ITExamples build directory (or source for that matter). Has it moved somewhere else? Or did I just mess up something?

Thanks!

---

<div class="post-metadata">

**Author:** ![hina-shah](https://discourse.itk.org/user_avatar/discourse.itk.org/hina-shah/32/1001_2.png) [@hina-shah](https://discourse.itk.org/u/hina-shah)\
**Post date:** [September 27, 2019, 3:57am UTC](https://discourse.itk.org/t/where-is-createnewexample-py-for-itkexamples/2269/2 "2019-09-27T03:57:03Z")

</div>

So it looks like the _CreateNewExamply.py_ is deprecated, and the new examples are to be created using _cookiecutter_. I tried that but cookiecutter fails at the _download url_ generation, saying that **group\_name** does not exist - which I can see in the _cookiecutter.json_ file, and I’m pretty sure it’s going to fail at one more attribute.

I’ve created an [issue](https://github.com/InsightSoftwareConsortium/ITKExamples/issues/136) in the repository. Can somebody with a better background please have a look? I’m happy to help in any way I can!

Thanks!!

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [September 27, 2019, 7:06pm UTC](https://discourse.itk.org/t/where-is-createnewexample-py-for-itkexamples/2269/3 "2019-09-27T19:06:09Z")

</div>

Hi @hina-shah,

Thanks for contributing to ITK and the examples! ☀ 👏

@jhlegarreta has is work in progress to fix the example cookie-cutter here:

> <https://github.com/InsightSoftwareConsortium/ITKExamples/pull/120>

Any thoughts are welcome. I will be mostly offline until Monday, but I will be able to take a deeper look next week.

Matt

---

<div class="post-metadata">

**Author:** ![jhlegarreta](https://discourse.itk.org/user_avatar/discourse.itk.org/jhlegarreta/32/476_2.png) [@jhlegarreta](https://discourse.itk.org/u/jhlegarreta)\
**Post date:** [September 27, 2019, 7:23pm UTC](https://discourse.itk.org/t/where-is-createnewexample-py-for-itkexamples/2269/4 "2019-09-27T19:23:43Z")

</div>

@matt.mccormick is right. Sorry for having missed the message and the trouble @hina-shah.

As commented in the [issue](https://github.com/InsightSoftwareConsortium/ITKExamples/issues/136) you opened, the `cookiecutter` way needs to be polished.

In order to create new examples, you will need to use the legacy `CreateNewExamply.py` by using a commit version of the repository prior to [07ba3d0](https://github.com/InsightSoftwareConsortium/ITKExamples/commit/07ba3d01036a0c294eddbf1853b28ed608cb8198) to get the file.

We hope to be able to have a go and finish the `cookicutter` alternative some time soon.

---

<div class="post-metadata">

**Author:** ![hina-shah](https://discourse.itk.org/user_avatar/discourse.itk.org/hina-shah/32/1001_2.png) [@hina-shah](https://discourse.itk.org/u/hina-shah)\
**Post date:** [September 28, 2019, 2:32am UTC](https://discourse.itk.org/t/where-is-createnewexample-py-for-itkexamples/2269/5 "2019-09-28T02:32:03Z")

</div>

Thanks @matt.mccormick, and @jhlegarreta! @jhlegarreta commented on my issue and I realized that since it’s still WIP, my issue does not make sense. So I closed the issue, but I can help. But to add the examples, I’ll continue using an older commit version…
