Re: ipython/jupyter issue [Was: RuntimeError: Kernel died before replying to kernel_info (#4116)]

2017-11-12 Thread Gordon Ball
On 10/11/17 17:28, Andreas Tille wrote:
> Hi,
> 
> On Thu, Nov 09, 2017 at 08:48:02PM +0100, Gordon Ball wrote:
>>
>> I just built statsmodels 0.8.0-6 in and amd64 sbuild chroot without
>> encountering this issue.
>>
>> Looking at the trace in #880245, it looks like the key error is
>>
>> zmq.error.ZMQError: Address already in use
>>
>> and the other
>>
>> RuntimeError: Kernel died before replying to kernel_info
>>
>> are just caused by the other process not being able to communicate. My
>> guess is that this is an environment heisenbug - container network
>> issues/socket exhaustion...
> 
> IMHO this would be a good reason to lower the severity of the bug, isn't
> it?

You can check this for yourself, but yes - it appears that it does not
consistently FTBFS, and therefore shouldn't be RC.

>  
>> It might be possible to get `ExecutePreprocessor` in
>> `tools/nbgenerate.py` to use IPC instead of TCP transport, which might
>> be more reliable for this sort of use (although it probably doesn't get
>> tested as much, so might have its own problems); this is a supported
>> option when invoking some CLI tools (eg, `jupyter console --transport
>> ipc --kernel python3`), but it's not obvious to me how to do it in this
>> case.
> 
> Any further hits?

I don't think I have time to dig into this at the moment, but given the
nbgenerate task is already run (docs/Makefile:58,70) with
`--allow_errors=True` to ignore errors within the notebooks, I'd just
patch the Makefile to ignore any errors from that command, which in the
worst case will result in some documentation notebooks not being populated.

> 
> Kind regards
> 
>  Andreas. 
> 



python-csb: Please help: Clean target throws UnicodeDecodeError

2017-11-12 Thread Andreas Tille
Hi,

I'm trying to upgrade python-csb to the new upstream version (in
Git[1]).  If I try to build it I get:


gbp:info: Building with (cowbuilder) for sid
gbp:info: Tarballs 'python-csb_1.2.5+dfsg.orig.tar.gz' not found at 
'../tarballs/'
gbp:info: Creating 
/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-csb_1.2.5+dfsg.orig.tar.gz
gbp:info: Exporting 'WC' to 
'/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-csb-tmp'
gbp:info: Moving 
'/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-csb-tmp' 
to 
'/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-csb-1.2.5+dfsg'
I: using cowbuilder as pbuilder
dpkg-source: info: applying exclude_online_tests.patch
dpkg-source: info: applying reproducible.patch
dh clean --with python2,python3 --buildsystem=pybuild
   debian/rules override_dh_auto_clean
make[1]: Entering directory 
'/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-csb-1.2.5+dfsg'
dh_auto_clean
I: pybuild base:184: python2.7 setup.py clean 
running clean
removing 
'/home/andreas/debian-maintain/alioth/debian-med_git/build-area/python-csb-1.2.5+dfsg/.pybuild/pythonX.Y_2.7/build'
 (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
I: pybuild base:184: python3.6 setup.py clean 
Traceback (most recent call last):
  File "setup.py", line 8, in 
__doc__ = open('README.rst').read()
  File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 4205: 
ordinal not in range(128)
E: pybuild pybuild:283: clean: plugin distutils failed with: exit code=1: 
python3.6 setup.py clean 
dh_auto_clean: pybuild --clean -i python{version} -p 3.6 returned exit code 13
debian/rules:21: recipe for target 'override_dh_auto_clean' failed


Any idea how to fix this?

Kind regards

   Andreas.


[1] https://anonscm.debian.org/git/debian-med/python-csb.git

-- 
http://fam-tille.de