CarlosLugones / ptb-django-cookiecutter

A simple cookiecutter to create Python Telegram bots, wrapped with Django.
https://ptb-django-cookiecutter.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
25 stars 10 forks source link

no command line interface raise an error #4

Closed ragnarok22 closed 3 years ago

ragnarok22 commented 3 years ago

Description

Creating a project with no command line interface raise an error

Output

Select command_line_interface:
1 - Click
2 - Argparse
3 - No command-line interface
Choose from 1, 2, 3 [1]: 3
create_author_file [y]: 
Select open_source_license:
1 - MIT license
Choose from 1 [1]: 
Traceback (most recent call last):
  File "/tmp/tmpm9jc6wfl.py", line 19, in <module>
    remove_file(cli_file)
  File "/tmp/tmpm9jc6wfl.py", line 8, in remove_file
    os.remove(os.path.join(PROJECT_DIRECTORY, filepath))
FileNotFoundError: [Errno 2] No such file or directory: '/home/ragnarok/Projects/python/telegrambots/apimania_telegram_bot/apimania_telegram_bot/cli.py'
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 1)
CarlosLugones commented 3 years ago

@ragnarok22 Thanks for reporting this. Fixing it asap.

CarlosLugones commented 3 years ago

@all-contributors add @ragnarok22 in bug, review and test.

allcontributors[bot] commented 3 years ago

@lugodev

I've put up a pull request to add @ragnarok22! :tada:

CarlosLugones commented 3 years ago

@ragnarok22 Fixed, releasing it in the next version, very soon.