{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/package-template/issues/230","repository_url":"https://api.github.com/repos/astropy/package-template","labels_url":"https://api.github.com/repos/astropy/package-template/issues/230/labels{/name}","comments_url":"https://api.github.com/repos/astropy/package-template/issues/230/comments","events_url":"https://api.github.com/repos/astropy/package-template/issues/230/events","html_url":"https://github.com/astropy/package-template/issues/230","id":218293300,"number":230,"title":"git import error with cookiecutter","user":{"login":"cdeil","id":852409,"avatar_url":"https://avatars0.githubusercontent.com/u/852409?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"labels":[{"id":573078921,"url":"https://api.github.com/repos/astropy/package-template/labels/cookiecutter","name":"cookiecutter","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-03-30T18:51:46Z","updated_at":"2017-05-26T09:44:54Z","closed_at":null,"body":"@Cadair - I just saw that the cookiecutter branch is already merged and wanted to try it.\r\n\r\nUnfortunately it failed after I entered all info:\r\n```\r\n$ cookiecutter gh:astropy/package-template --checkout cookiecutter\r\nYou've cloned /Users/deil/.cookiecutters/package-template before. Is it okay to delete and re-clone it? [yes]: \r\npackage_name [packagename]: hips\r\nmodule_name [hips]: \r\nshort_description [hips]: Python HIPS client using Astropy and Healpy\r\nlong_description []: Python HIPS client using Astropy and Healpy\r\nauthor_name [Astropy Developers]: hips developers                                    \r\nauthor_email []:                          \r\nSelect license:\r\n1 - BSD 3-Clause\r\n2 - GNU GPL v3+\r\n3 - Apache Software Licence 2.0\r\n4 - BSD 2-Clause\r\n5 - Other\r\nChoose from 1, 2, 3, 4, 5 [1]: \r\nproject_url [http://astropy.org]: https://github.com/tboch/hips\r\nproject_version [0.0.dev]: \r\ninclude_example_code [y]: n\r\ninclude_example_cython_code [n]: \r\ninclude_cextern_folder [n]: \r\nedit_on_github_extension [False]: \r\ngithub_project [astropy/astropy]: tboch/hips\r\nuse_travis_ci [y]: \r\nuse_appveyor_ci [y]: \r\nuse_read_the_docs [y]: \r\nsphinx_theme [astropy-boostrap]: sphinx_rtd_theme\r\ninitialize_git_repo [y]: \r\nastropy_helpers_version [v1.3.1]: \r\nTraceback (most recent call last):\r\n  File \"/var/folders/sb/4qv5j4m90pz1rw7m70rj1b1r0000gn/T/tmpa2ea3jx_.py\", line 41, in <module>\r\n    from git import Repo\r\nImportError: No module named 'git'\r\nERROR: Stopping generation because post_gen_project hook script didn't exit successfully\r\nHook script failed (exit status: 1)\r\n```\r\n\r\nMaybe move the `from git import Repo` to the top of the file to fail early?"},"comment":{"url":"https://api.github.com/repos/astropy/package-template/issues/comments/304239443","html_url":"https://github.com/astropy/package-template/issues/230#issuecomment-304239443","issue_url":"https://api.github.com/repos/astropy/package-template/issues/230","id":304239443,"user":{"login":"cdeil","id":852409,"avatar_url":"https://avatars0.githubusercontent.com/u/852409?v=3","gravatar_id":"","url":"https://api.github.com/users/cdeil","html_url":"https://github.com/cdeil","followers_url":"https://api.github.com/users/cdeil/followers","following_url":"https://api.github.com/users/cdeil/following{/other_user}","gists_url":"https://api.github.com/users/cdeil/gists{/gist_id}","starred_url":"https://api.github.com/users/cdeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdeil/subscriptions","organizations_url":"https://api.github.com/users/cdeil/orgs","repos_url":"https://api.github.com/users/cdeil/repos","events_url":"https://api.github.com/users/cdeil/events{/privacy}","received_events_url":"https://api.github.com/users/cdeil/received_events","type":"User","site_admin":false},"created_at":"2017-05-26T09:44:54Z","updated_at":"2017-05-26T09:44:54Z","body":"Just for reference, this is what I did for the new `hips` package: https://github.com/hipspy/hips/pull/1\r\n\r\nIn the end to work around the problem described in my last comment I did use `cookiecutter gh:astropy/package-template --checkout cookiecutter` to scaffold the files into a folder `hips` from within the existing `hips` repo. And then I moved the files up one level to be in the right place.\r\n"}}
{"actor":{"display_login":"cdeil"}}