Bug#880964: closed by Guido Günther <a...@sigxcpu.org> (Re: Bug#880964: git-buildpackage: non-ascii character in d/changelog: UnicodeDecodeError)

2017-11-06 Thread Guido Günther
Hi,
On Mon, Nov 06, 2017 at 03:36:20PM +, Nico Schlömer wrote:
> > I'm not uploading any wheels only the sources to pypi.
> 
> I know; sources are Python version agnostic, so there's no handle on how to
> restrict the version; hence the idea of publishing wheels instead of
> sources. There appears to be another option though, see [1].
> 
> [1] https://stackoverflow.com/a/42792413/353337

Nice. Thanks for digging this one out!
Cheers,
 -- Guido

> 
> 
> 
> On Mon, Nov 6, 2017 at 4:03 PM Guido Günther  wrote:
> 
> > Hi,
> > On Mon, Nov 06, 2017 at 02:53:11PM +, Nico Schlömer wrote:
> > > Thanks for following up on this.
> > >
> > > > But this is not Python2.
> > >
> > > This is the culprit. I installed gbp with pip on my system, with pip
> > > defaulting to python2, which leads to an array of errors, e.g., the
> > > encoding error from above. Perhaps one way of preventing pip2-installs
> > from
> > > pypi is to create wheels with
> > > ```
> > > python3 setup.py bdist_wheel
> > > ```
> > > (not `python setup.py bdist_wheel --universal`); see [1].
> >
> > I'm not uploading any wheels only the sources to pypi. I have no idea
> > how to make pip not use modules that are "Programming Language :: Python
> > :: 3" with Python2.
> >
> > Cheers,
> >  -- Guido
> >



Bug#880964: closed by Guido Günther <a...@sigxcpu.org> (Re: Bug#880964: git-buildpackage: non-ascii character in d/changelog: UnicodeDecodeError)

2017-11-06 Thread Nico Schlömer
> I'm not uploading any wheels only the sources to pypi.

I know; sources are Python version agnostic, so there's no handle on how to
restrict the version; hence the idea of publishing wheels instead of
sources. There appears to be another option though, see [1].

[1] https://stackoverflow.com/a/42792413/353337



On Mon, Nov 6, 2017 at 4:03 PM Guido Günther  wrote:

> Hi,
> On Mon, Nov 06, 2017 at 02:53:11PM +, Nico Schlömer wrote:
> > Thanks for following up on this.
> >
> > > But this is not Python2.
> >
> > This is the culprit. I installed gbp with pip on my system, with pip
> > defaulting to python2, which leads to an array of errors, e.g., the
> > encoding error from above. Perhaps one way of preventing pip2-installs
> from
> > pypi is to create wheels with
> > ```
> > python3 setup.py bdist_wheel
> > ```
> > (not `python setup.py bdist_wheel --universal`); see [1].
>
> I'm not uploading any wheels only the sources to pypi. I have no idea
> how to make pip not use modules that are "Programming Language :: Python
> :: 3" with Python2.
>
> Cheers,
>  -- Guido
>


Bug#880964: closed by Guido Günther <a...@sigxcpu.org> (Re: Bug#880964: git-buildpackage: non-ascii character in d/changelog: UnicodeDecodeError)

2017-11-06 Thread Guido Günther
Hi,
On Mon, Nov 06, 2017 at 02:53:11PM +, Nico Schlömer wrote:
> Thanks for following up on this.
> 
> > But this is not Python2.
> 
> This is the culprit. I installed gbp with pip on my system, with pip
> defaulting to python2, which leads to an array of errors, e.g., the
> encoding error from above. Perhaps one way of preventing pip2-installs from
> pypi is to create wheels with
> ```
> python3 setup.py bdist_wheel
> ```
> (not `python setup.py bdist_wheel --universal`); see [1].

I'm not uploading any wheels only the sources to pypi. I have no idea
how to make pip not use modules that are "Programming Language :: Python
:: 3" with Python2.

Cheers,
 -- Guido



Bug#880964: closed by Guido Günther <a...@sigxcpu.org> (Re: Bug#880964: git-buildpackage: non-ascii character in d/changelog: UnicodeDecodeError)

2017-11-06 Thread Nico Schlömer
Thanks for following up on this.

> But this is not Python2.

This is the culprit. I installed gbp with pip on my system, with pip
defaulting to python2, which leads to an array of errors, e.g., the
encoding error from above. Perhaps one way of preventing pip2-installs from
pypi is to create wheels with
```
python3 setup.py bdist_wheel
```
(not `python setup.py bdist_wheel --universal`); see [1].


[1]
https://packaging.python.org/tutorials/distributing-packages/#pure-python-wheels

On Mon, Nov 6, 2017 at 3:33 PM Guido Günther  wrote:

> Hi,
> On Mon, Nov 06, 2017 at 02:21:16PM +, Nico Schlömer wrote:
> > I've tried with 0.9.1 and I'm getting the same error. The error message
> > makes sense too: In `_run_parsechangelog` one finds
>
> Then please provide steps to reproduce.
>
> > ```
> > self._contents.encode()
> > ```
> > which fails in Python 2 if `self._contents` contains a non-ascii
> character.
> > (Reproducable with `'ö'.encode()`.)
>
> But this is not Python2. I know about encoding/decoding of strings in
> Python but I don't know why it fails on your system. I have parsed all
> changelogs in the archive in the passt and believe me your name isn't
> the only one with an umlaut. What locale are you running under? What's
> the exact git tree to reproduce this?
>
> Cheers,
>  -- Guido
>
> > Position 399 in the error message
> > ```
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 399:
> > ordinal not in range(128)
> > ```
> > also refers to an "ö".
> >
> > I would hence vote for reopening this bug.
> >
> > On Mon, Nov 6, 2017 at 2:30 PM Debian Bug Tracking System <
> > ow...@bugs.debian.org> wrote:
> >
> > > This is an automatic notification regarding your Bug report
> > > which was filed against the git-buildpackage package:
> > >
> > > #880964: git-buildpackage: non-ascii character in d/changelog:
> > > UnicodeDecodeError
> > >
> > > It has been closed by Guido Günther .
> > >
> > > Their explanation is attached below along with your original report.
> > > If this explanation is unsatisfactory and you have not received a
> > > better one in a separate message then please contact Guido Günther <
> > > a...@sigxcpu.org> by
> > > replying to this email.
> > >
> > >
> > > --
> > > 880964: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880964
> > > Debian Bug Tracking System
> > > Contact ow...@bugs.debian.org with problems
> > >
> > >
> > >
> > > -- Forwarded message --
> > > From: "Guido Günther" 
> > > To: 880964-d...@bugs.debian.org
> > > Cc:
> > > Bcc:
> > > Date: Mon, 6 Nov 2017 14:27:19 +0100
> > > Subject: Re: Bug#880964: git-buildpackage: non-ascii character in
> > > d/changelog: UnicodeDecodeError
> > > Version: git-buildpackge/0.9.1
> > >
> > > Hi,
> > > On Mon, Nov 06, 2017 at 02:17:29PM +0100, Nico Schlömer wrote:
> > > > Package: git-buildpackage
> > > > Version: 0.8.18
> > > > Severity: important
> > > >
> > > > When running
> > > > ```
> > > > gbp import-orig --uscan --pristine-tar
> > > > ```
> > > > on the gmsh package, gbp bails out with the error message
> > > > ```
> > > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
> 399:
> > > > ordinal not in range(128)
> > > > ```
> > > > referring to
> > > > ```
> > > >   File "/usr/local/lib/python2.7/dist-packages/gbp/deb/changelog.py",
> > > line 100,
> > > > in _run_parsechangelog
> > > > (stdout, stderr) = cmd.communicate(self._contents.encode())
> > > >
> > > > ```
> > > > This is because of the non-ascii character "ö".
> > >
> > > This is wired and likely not the source of the problem (not that my
> name
> > > contiains a 'ü' as well). However I can't reproduce this with 0.9.x on
> > > gmsh from sid.
> > > Cheers,
> > >  -- Guido
> > >
> > >
> > > -- Forwarded message --
> > > From: "Nico Schlömer" 
> > > To: Debian Bug Tracking System 
> > > Cc:
> > > Bcc:
> > > Date: Mon, 06 Nov 2017 14:17:29 +0100
> > > Subject: git-buildpackage: non-ascii character in d/changelog:
> > > UnicodeDecodeError
> > > Package: git-buildpackage
> > > Version: 0.8.18
> > > Severity: important
> > >
> > > When running
> > > ```
> > > gbp import-orig --uscan --pristine-tar
> > > ```
> > > on the gmsh package, gbp bails out with the error message
> > > ```
> > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
> 399:
> > > ordinal not in range(128)
> > > ```
> > > referring to
> > > ```
> > >   File "/usr/local/lib/python2.7/dist-packages/gbp/deb/changelog.py",
> line
> > > 100,
> > > in _run_parsechangelog
> > > (stdout, stderr) = cmd.communicate(self._contents.encode())
> > >
> > > ```
> > > This is because of the non-ascii character "ö".
> > >
> > >
> > >
> > > -- System Information:
> > > Debian Release: stretch/sid
> > >   APT prefers artful-updates
> > >   APT policy: (500, 'artful-updates'), (500, 'artful-security'), (500,
> > > 'artful')
> 

Bug#880964: closed by Guido Günther <a...@sigxcpu.org> (Re: Bug#880964: git-buildpackage: non-ascii character in d/changelog: UnicodeDecodeError)

2017-11-06 Thread Guido Günther
Hi,
On Mon, Nov 06, 2017 at 02:21:16PM +, Nico Schlömer wrote:
> I've tried with 0.9.1 and I'm getting the same error. The error message
> makes sense too: In `_run_parsechangelog` one finds

Then please provide steps to reproduce.

> ```
> self._contents.encode()
> ```
> which fails in Python 2 if `self._contents` contains a non-ascii character.
> (Reproducable with `'ö'.encode()`.)

But this is not Python2. I know about encoding/decoding of strings in
Python but I don't know why it fails on your system. I have parsed all
changelogs in the archive in the passt and believe me your name isn't
the only one with an umlaut. What locale are you running under? What's
the exact git tree to reproduce this?

Cheers,
 -- Guido

> Position 399 in the error message
> ```
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 399:
> ordinal not in range(128)
> ```
> also refers to an "ö".
> 
> I would hence vote for reopening this bug.
> 
> On Mon, Nov 6, 2017 at 2:30 PM Debian Bug Tracking System <
> ow...@bugs.debian.org> wrote:
> 
> > This is an automatic notification regarding your Bug report
> > which was filed against the git-buildpackage package:
> >
> > #880964: git-buildpackage: non-ascii character in d/changelog:
> > UnicodeDecodeError
> >
> > It has been closed by Guido Günther .
> >
> > Their explanation is attached below along with your original report.
> > If this explanation is unsatisfactory and you have not received a
> > better one in a separate message then please contact Guido Günther <
> > a...@sigxcpu.org> by
> > replying to this email.
> >
> >
> > --
> > 880964: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880964
> > Debian Bug Tracking System
> > Contact ow...@bugs.debian.org with problems
> >
> >
> >
> > -- Forwarded message --
> > From: "Guido Günther" 
> > To: 880964-d...@bugs.debian.org
> > Cc:
> > Bcc:
> > Date: Mon, 6 Nov 2017 14:27:19 +0100
> > Subject: Re: Bug#880964: git-buildpackage: non-ascii character in
> > d/changelog: UnicodeDecodeError
> > Version: git-buildpackge/0.9.1
> >
> > Hi,
> > On Mon, Nov 06, 2017 at 02:17:29PM +0100, Nico Schlömer wrote:
> > > Package: git-buildpackage
> > > Version: 0.8.18
> > > Severity: important
> > >
> > > When running
> > > ```
> > > gbp import-orig --uscan --pristine-tar
> > > ```
> > > on the gmsh package, gbp bails out with the error message
> > > ```
> > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 399:
> > > ordinal not in range(128)
> > > ```
> > > referring to
> > > ```
> > >   File "/usr/local/lib/python2.7/dist-packages/gbp/deb/changelog.py",
> > line 100,
> > > in _run_parsechangelog
> > > (stdout, stderr) = cmd.communicate(self._contents.encode())
> > >
> > > ```
> > > This is because of the non-ascii character "ö".
> >
> > This is wired and likely not the source of the problem (not that my name
> > contiains a 'ü' as well). However I can't reproduce this with 0.9.x on
> > gmsh from sid.
> > Cheers,
> >  -- Guido
> >
> >
> > -- Forwarded message --
> > From: "Nico Schlömer" 
> > To: Debian Bug Tracking System 
> > Cc:
> > Bcc:
> > Date: Mon, 06 Nov 2017 14:17:29 +0100
> > Subject: git-buildpackage: non-ascii character in d/changelog:
> > UnicodeDecodeError
> > Package: git-buildpackage
> > Version: 0.8.18
> > Severity: important
> >
> > When running
> > ```
> > gbp import-orig --uscan --pristine-tar
> > ```
> > on the gmsh package, gbp bails out with the error message
> > ```
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 399:
> > ordinal not in range(128)
> > ```
> > referring to
> > ```
> >   File "/usr/local/lib/python2.7/dist-packages/gbp/deb/changelog.py", line
> > 100,
> > in _run_parsechangelog
> > (stdout, stderr) = cmd.communicate(self._contents.encode())
> >
> > ```
> > This is because of the non-ascii character "ö".
> >
> >
> >
> > -- System Information:
> > Debian Release: stretch/sid
> >   APT prefers artful-updates
> >   APT policy: (500, 'artful-updates'), (500, 'artful-security'), (500,
> > 'artful')
> > Architecture: amd64 (x86_64)
> > Foreign Architectures: i386
> >
> > Kernel: Linux 4.13.0-16-generic (SMP w/4 CPU cores)
> > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
> > LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
> > Shell: /bin/sh linked to /bin/dash
> > Init: systemd (via /run/systemd/system)
> >
> > Versions of packages git-buildpackage depends on:
> > ii  devscripts2.17.9build1
> > ii  git   1:2.14.1-1ubuntu4
> > ii  man-db2.7.6.1-2
> > ii  python2.7.14-2ubuntu1
> > ii  python-dateutil   2.6.0-1
> > ii  python-pkg-resources  36.2.7-2
> > ii  python-six1.10.0-4
> >
> > Versions of packages git-buildpackage recommends:
> > ii  pbuilder 0.228.9
> > ii  pristine-tar 1.41
> > ii  python-requests  2.18.1-1
> >
> > 

Bug#880964: closed by Guido Günther <a...@sigxcpu.org> (Re: Bug#880964: git-buildpackage: non-ascii character in d/changelog: UnicodeDecodeError)

2017-11-06 Thread Nico Schlömer
I've tried with 0.9.1 and I'm getting the same error. The error message
makes sense too: In `_run_parsechangelog` one finds
```
self._contents.encode()
```
which fails in Python 2 if `self._contents` contains a non-ascii character.
(Reproducable with `'ö'.encode()`.)

Position 399 in the error message
```
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 399:
ordinal not in range(128)
```
also refers to an "ö".

I would hence vote for reopening this bug.

On Mon, Nov 6, 2017 at 2:30 PM Debian Bug Tracking System <
ow...@bugs.debian.org> wrote:

> This is an automatic notification regarding your Bug report
> which was filed against the git-buildpackage package:
>
> #880964: git-buildpackage: non-ascii character in d/changelog:
> UnicodeDecodeError
>
> It has been closed by Guido Günther .
>
> Their explanation is attached below along with your original report.
> If this explanation is unsatisfactory and you have not received a
> better one in a separate message then please contact Guido Günther <
> a...@sigxcpu.org> by
> replying to this email.
>
>
> --
> 880964: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880964
> Debian Bug Tracking System
> Contact ow...@bugs.debian.org with problems
>
>
>
> -- Forwarded message --
> From: "Guido Günther" 
> To: 880964-d...@bugs.debian.org
> Cc:
> Bcc:
> Date: Mon, 6 Nov 2017 14:27:19 +0100
> Subject: Re: Bug#880964: git-buildpackage: non-ascii character in
> d/changelog: UnicodeDecodeError
> Version: git-buildpackge/0.9.1
>
> Hi,
> On Mon, Nov 06, 2017 at 02:17:29PM +0100, Nico Schlömer wrote:
> > Package: git-buildpackage
> > Version: 0.8.18
> > Severity: important
> >
> > When running
> > ```
> > gbp import-orig --uscan --pristine-tar
> > ```
> > on the gmsh package, gbp bails out with the error message
> > ```
> > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 399:
> > ordinal not in range(128)
> > ```
> > referring to
> > ```
> >   File "/usr/local/lib/python2.7/dist-packages/gbp/deb/changelog.py",
> line 100,
> > in _run_parsechangelog
> > (stdout, stderr) = cmd.communicate(self._contents.encode())
> >
> > ```
> > This is because of the non-ascii character "ö".
>
> This is wired and likely not the source of the problem (not that my name
> contiains a 'ü' as well). However I can't reproduce this with 0.9.x on
> gmsh from sid.
> Cheers,
>  -- Guido
>
>
> -- Forwarded message --
> From: "Nico Schlömer" 
> To: Debian Bug Tracking System 
> Cc:
> Bcc:
> Date: Mon, 06 Nov 2017 14:17:29 +0100
> Subject: git-buildpackage: non-ascii character in d/changelog:
> UnicodeDecodeError
> Package: git-buildpackage
> Version: 0.8.18
> Severity: important
>
> When running
> ```
> gbp import-orig --uscan --pristine-tar
> ```
> on the gmsh package, gbp bails out with the error message
> ```
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 399:
> ordinal not in range(128)
> ```
> referring to
> ```
>   File "/usr/local/lib/python2.7/dist-packages/gbp/deb/changelog.py", line
> 100,
> in _run_parsechangelog
> (stdout, stderr) = cmd.communicate(self._contents.encode())
>
> ```
> This is because of the non-ascii character "ö".
>
>
>
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers artful-updates
>   APT policy: (500, 'artful-updates'), (500, 'artful-security'), (500,
> 'artful')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 4.13.0-16-generic (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
> LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages git-buildpackage depends on:
> ii  devscripts2.17.9build1
> ii  git   1:2.14.1-1ubuntu4
> ii  man-db2.7.6.1-2
> ii  python2.7.14-2ubuntu1
> ii  python-dateutil   2.6.0-1
> ii  python-pkg-resources  36.2.7-2
> ii  python-six1.10.0-4
>
> Versions of packages git-buildpackage recommends:
> ii  pbuilder 0.228.9
> ii  pristine-tar 1.41
> ii  python-requests  2.18.1-1
>
> Versions of packages git-buildpackage suggests:
> pn  python-notify  
> ii  sudo   1.8.20p2-1ubuntu1
> ii  unzip  6.0-21ubuntu1
>
> -- Configuration Files:
> /etc/git-buildpackage/gbp.conf changed [not included]
>
> -- no debconf information
>