Bug#843898: Something to try

2016-11-21 Thread Tobias Hansen
On 11/21/2016 01:03 PM, Sebastian P. Luque wrote:
> On Sun, 20 Nov 2016 19:57:53 -0600,
> Sebastian P. Luque  wrote:
> 
>> On Sun, 20 Nov 2016 21:01:08 +,
>> Tobias Hansen  wrote:
> 
>> [...]
> 
 $ ls -alh ~/.local/lib/python2.7/site-packages/backports/ total 12K
 drwxr-xr-x 3 sluque sluque 4.0K Oct 30 16:16 .  drwx-- 20 sluque
 sluque 4.0K Oct 30 16:18 ..  drwxr-xr-x 2 sluque sluque 4.0K Oct 30
 16:16 configparser
> 
>>> What happens if you rename that for a moment? Does it fix the
>>> problem?
> 
>> No; same result.
> 
> I just tried a different approach, and it's revealing:
> 
> $ python -s
> Python 2.7.12+ (default, Sep  1 2016, 20:27:38) 
> [GCC 6.2.0 20160927] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
 from backports.shutil_get_terminal_size import get_terminal_size
> 
> Why on Earth did moving ~/.local/lib/python2.7/site-packages/backports
> not have the same effect is beyond me.
> 

So I guess we can close the bug. The problem is that different backport
packages can conflict with each other. The only thing we could think
about is if python-backports-shutil-get-terminal-size could be changed
to be more robust against that. Looks like a task for upstream.

Best,
Tobias



Bug#843898: Something to try

2016-11-21 Thread Sebastian P. Luque
On Sun, 20 Nov 2016 19:57:53 -0600,
Sebastian P. Luque  wrote:

> On Sun, 20 Nov 2016 21:01:08 +,
> Tobias Hansen  wrote:

> [...]

>>> $ ls -alh ~/.local/lib/python2.7/site-packages/backports/ total 12K
>>> drwxr-xr-x 3 sluque sluque 4.0K Oct 30 16:16 .  drwx-- 20 sluque
>>> sluque 4.0K Oct 30 16:18 ..  drwxr-xr-x 2 sluque sluque 4.0K Oct 30
>>> 16:16 configparser

>> What happens if you rename that for a moment? Does it fix the
>> problem?

> No; same result.

I just tried a different approach, and it's revealing:

$ python -s
Python 2.7.12+ (default, Sep  1 2016, 20:27:38) 
[GCC 6.2.0 20160927] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from backports.shutil_get_terminal_size import get_terminal_size

Why on Earth did moving ~/.local/lib/python2.7/site-packages/backports
not have the same effect is beyond me.

-- 
Seb



Bug#843898: Something to try

2016-11-21 Thread Tobias Hansen
On 11/21/2016 01:57 AM, Sebastian P. Luque wrote:
> On Sun, 20 Nov 2016 21:01:08 +,
> Tobias Hansen  wrote:
> 
> [...]
> 
>>> $ ls -alh ~/.local/lib/python2.7/site-packages/backports/ total 12K
>>> drwxr-xr-x 3 sluque sluque 4.0K Oct 30 16:16 .  drwx-- 20 sluque
>>> sluque 4.0K Oct 30 16:18 ..  drwxr-xr-x 2 sluque sluque 4.0K Oct 30
>>> 16:16 configparser
> 
>> What happens if you rename that for a moment? Does it fix the problem?
> 
> No; same result.
> 

What do you get if you run this:
python -c "import sys; print sys.path"

What exactly did you try? Could you try renaming the whole folder
~/.local/lib/python2.7/site-packages ?



Bug#843898: Something to try

2016-11-20 Thread Sebastian P . Luque
On Sun, 20 Nov 2016 21:01:08 +,
Tobias Hansen  wrote:

[...]

>> $ ls -alh ~/.local/lib/python2.7/site-packages/backports/ total 12K
>> drwxr-xr-x 3 sluque sluque 4.0K Oct 30 16:16 .  drwx-- 20 sluque
>> sluque 4.0K Oct 30 16:18 ..  drwxr-xr-x 2 sluque sluque 4.0K Oct 30
>> 16:16 configparser

> What happens if you rename that for a moment? Does it fix the problem?

No; same result.

-- 
Seb



Bug#843898: Something to try

2016-11-20 Thread Tobias Hansen
On 11/20/2016 08:29 PM, Sebastian P. Luque wrote:
> On Sun, 20 Nov 2016 19:17:49 +,
> Tobias Hansen  wrote:
> 
>> If you google this you see that tons of people have similar issues:
>> https://github.com/ipython/ipython/issues/9656
>> https://github.com/ipython/ipython/issues/9815
>> https://github.com/chrippa/backports.shutil_get_terminal_size/issues/9
> 
>> The most common "solution" there is reinstalling something with
>> pip. My suspicion is that the people who see this on Debian also used
>> pip and there is something interfering. Did you guys use pip (or
>> something else to install Python modules not from Debian) and have a
>> backports module or backports.shutil_get_terminal_size itself
>> installed there?
> 
> I do use pip within virtual environments, but these shouldn't interfere.
> 
> First, as per Julien's request, here's my output:
> 
> $ python
> Python 2.7.12+ (default, Sep  1 2016, 20:27:38) 
> [GCC 6.2.0 20160927] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
 from  backports.shutil_get_terminal_size import get_terminal_size
> Traceback (most recent call last):
>   File "", line 1, in 
> ImportError: No module named shutil_get_terminal_size
> 
> When using pip within virtual environments, packages/modules get
> installed in ~/.local/lib/python2.7 in my case.  There I see one
> potentially interfering backports module, which shows these contents:
> 
> $ ls -alh ~/.local/lib/python2.7/site-packages/backports/
> total 12K
> drwxr-xr-x  3 sluque sluque 4.0K Oct 30 16:16 .
> drwx-- 20 sluque sluque 4.0K Oct 30 16:18 ..
> drwxr-xr-x  2 sluque sluque 4.0K Oct 30 16:16 configparser
> 
> 

What happens if you rename that for a moment? Does it fix the problem?



Bug#843898: Something to try

2016-11-20 Thread Sebastian P . Luque
On Sun, 20 Nov 2016 19:17:49 +,
Tobias Hansen  wrote:

> If you google this you see that tons of people have similar issues:
> https://github.com/ipython/ipython/issues/9656
> https://github.com/ipython/ipython/issues/9815
> https://github.com/chrippa/backports.shutil_get_terminal_size/issues/9

> The most common "solution" there is reinstalling something with
> pip. My suspicion is that the people who see this on Debian also used
> pip and there is something interfering. Did you guys use pip (or
> something else to install Python modules not from Debian) and have a
> backports module or backports.shutil_get_terminal_size itself
> installed there?

I do use pip within virtual environments, but these shouldn't interfere.

First, as per Julien's request, here's my output:

$ python
Python 2.7.12+ (default, Sep  1 2016, 20:27:38) 
[GCC 6.2.0 20160927] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from  backports.shutil_get_terminal_size import get_terminal_size
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named shutil_get_terminal_size

When using pip within virtual environments, packages/modules get
installed in ~/.local/lib/python2.7 in my case.  There I see one
potentially interfering backports module, which shows these contents:

$ ls -alh ~/.local/lib/python2.7/site-packages/backports/
total 12K
drwxr-xr-x  3 sluque sluque 4.0K Oct 30 16:16 .
drwx-- 20 sluque sluque 4.0K Oct 30 16:18 ..
drwxr-xr-x  2 sluque sluque 4.0K Oct 30 16:16 configparser


-- 
Seb



Bug#843898: Something to try

2016-11-20 Thread Tobias Hansen
If you google this you see that tons of people have similar issues:

https://github.com/ipython/ipython/issues/9656
https://github.com/ipython/ipython/issues/9815
https://github.com/chrippa/backports.shutil_get_terminal_size/issues/9

The most common "solution" there is reinstalling something with pip. My
suspicion is that the people who see this on Debian also used pip and
there is something interfering. Did you guys use pip (or something else
to install Python modules not from Debian) and have a backports module
or backports.shutil_get_terminal_size itself installed there?

Best,
Tobias

On Wed, 16 Nov 2016 07:42:16 +0100 Julien Puydt
 wrote:
> Hi,
> 
> can all of you seeing the problem try to reproduce the following 
> session, please, and send what you get:
> 
> jpuydt@nox:~$ python
> Python 2.7.12+ (default, Nov  4 2016, 17:04:30)
> [GCC 6.2.0 20161027] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> from  backports.shutil_get_terminal_size import get_terminal_size
>  >>>
> 
> (as you see, there's no problem here...)
> 
> Thanks,
> 
> Snark on #debian-python
> 
> 



Bug#843898: Something to try

2016-11-15 Thread Julien Puydt

Hi,

can all of you seeing the problem try to reproduce the following 
session, please, and send what you get:


jpuydt@nox:~$ python
Python 2.7.12+ (default, Nov  4 2016, 17:04:30)
[GCC 6.2.0 20161027] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from  backports.shutil_get_terminal_size import get_terminal_size
>>>

(as you see, there's no problem here...)

Thanks,

Snark on #debian-python