[git-buildpackage] gbp Python

john doe johndoe65534 at mail.com
Sat Nov 30 20:19:43 CET 2019


Hi  and thank you for your answer.

On 11/30/2019 7:55 PM, Guido Günther wrote:
> 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.
>

Okay, I get the following on Python3:


Python 3.7.3 (default, Apr  3 2019, 05:39:12)
[GCC 8.3.0] on linux
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>
ModuleNotFoundError: No module named 'gbp'


Should I do anything special prior to execute the above command?


In other words, how can I use gbp on Python3.

--
John Doe


More information about the git-buildpackage mailing list