HackSoftware / cookiecutter-django-ansible

Powered by Cookiecutter, Cookiecutter Django Ansible is a framework for jumpstarting an ansible project for provisioning a server that is ready for your cookiecutter-django application.
MIT License
73 stars 8 forks source link

post_gen_project hook script didn't exit successfully #41

Closed fortunto2 closed 7 years ago

fortunto2 commented 7 years ago

Hi. i got error

Ubuntu 16

cookiecutter gh:HackSoftware/cookiecutter-django-ansible
You've cloned /home/rustam/.cookiecutters/cookiecutter-django-ansible before. Is it okay to delete and re-clone it? [yes]:   
ansible_project_name [Name of the ansible project]: qwe
ansible_project_slug [qwe]: qwe
application_name [Name of the project]: qwe
application_slug [qwe]: qwe
application_user [hack]: 
application_root [/hack/qwe/]: 
staging_server_domain [staging.example.com]: 
production_server_domain [example.com]: 
add_your_pulic_key [y]: 
add_celery_support [n]: 
add_letsencrypt_certificate [y]: 
letsencrypt_email [support@production_server_domain]: 
project_git_remote [git@github.com:HackSoftware/cookiecutter-django-ansible.git]: 
  File "/tmp/tmp6VUAZ0.py", line 10
    *,
     ^
SyntaxError: invalid syntax
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
stoltzmaniac commented 7 years ago

I also get this exact error! I have tried on Mac OS as well.

Ivaylo-Bachvarov commented 7 years ago

Thanks for that report. I`m trying to reproduce the error locally.

Ivaylo-Bachvarov commented 7 years ago

Hey,

So it turns out that the post_gen file contains some python3 only syntax. I just removed it and it seems working with python2.

Thanks for the report. I am going to add a python2 build in the CI.

stoltzmaniac commented 7 years ago

Thanks, works for me now!