[git-buildpackage] gbp Python

Guido Günther agx at sigxcpu.org
Sat Nov 30 19:55:59 CET 2019


Hi,
On Sat, Nov 30, 2019 at 07:13:49PM +0100, john doe wrote:
> Hi,
> 
> Following the instructions at (1), I can install 'gbp' using pip ('pip
> install gbp').
> 
> On Debian Buster, if I install 'git-buildpackage' (apt-get install
> git-buildpackage'), and try to import gbp.git as follow it fails:
> 
> Python 2.7.16 (default, Oct 10 2019, 22:02:15)
> [GCC 8.3.0] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from gbp.git import GitRepository
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named gbp.Can

There's no python2 support in gbp since some time. You want to use
either python3 or use pip which gives you a gbp old enough to support
python2.
Cheers,
 -- Guido

> 
> 
> gith I install gbp for Python using apt-get?
> 
> 
> In other words, What is the Python way to install gbp on Debian.
> 
> 
> Any help is appriciated.
> 
> 
> 1)  https://pypi.org/project/gbp/
> 
> --
> John Doe
> _______________________________________________
> git-buildpackage mailing list
> git-buildpackage at lists.sigxcpu.org
> http://lists.sigxcpu.org/mailman/listinfo/git-buildpackage


More information about the git-buildpackage mailing list