openstack-charmers / pydeb-cookiecutter

Cookiecutter template for a basic Python Debian package
6 stars 2 forks source link

I can't use this cookiecutter. #2

Open fmv1992 opened 1 year ago

fmv1992 commented 1 year ago

This is not working, or maybe I'm doing something wrong:

$ cookiecutter https://github.com/openstack-charmers/pydeb-cookiecutter
You've downloaded /home/abc/.cookiecutters/pydeb-cookiecutter before. Is it okay to delete and re-download it? [yes]: n
Do you want to re-use the existing version? [yes]: yes
modulename [replace with the name of the python module]: mymod
repo_name [replace with the name for the package git repo]: gitreso
homepage [replace with the homepage of the upstream project]: homep
project_short_description [OpenStack Boilerplate contains all the boilerplate you need to create an OpenStack package.]: short desc
project_long_description [OpenStack Boilerplate contains all the boilerplate you need to create an OpenStack package.]: long desc
version [version of module to package]: v01
maintainer [name and email address of maintainer]: f
Initialized empty Git repository in /tmp/tmp.tx2FxAPSMK/gitreso/.git/
[master (root-commit) e7660ca] Initial Cookiecutter Commit.
 8 files changed, 73 insertions(+)
 create mode 100644 debian/changelog
 create mode 100644 debian/control
 create mode 100644 debian/copyright
 create mode 100644 debian/gbp.conf
 create mode 100755 debian/rules
 create mode 100644 debian/source/format
 create mode 100644 debian/source/options
 create mode 100644 debian/watch
Switched to a new branch 'upstream'
rm 'debian/changelog'
rm 'debian/control'
rm 'debian/copyright'
rm 'debian/gbp.conf'
rm 'debian/rules'
rm 'debian/source/format'
rm 'debian/source/options'
rm 'debian/watch'
[upstream (root-commit) cb10bef] Initial upstream branch.
error: pathspec 'main' did not match any file(s) known to git
dpkg-parsechangelog: error: cannot open file debian/changelog: No such file or directory
dpkg-parsechangelog: error: cannot open file debian/changelog: No such file or directory
/tmp/tmpfm6zdraj.sh: 16: uscan: not found
/tmp/tmpfm6zdraj.sh: 17: gbp: not found
ERROR: Stopping generation because post_gen_project hook script didn't exit successfully
Hook script failed (exit status: 127)
gabriel-samfira commented 1 month ago

Hi @fmv1992,

I think this is an old issue, but from the looks of it, you need to install the uscan and gbp packages. I think they get pulled in if you install the build-essential metapackage. Otherwise, just install them manually.