Coding, iPython

IPython script sobre wsgi

@brberis
Jan. 6, 2016

python mod_wsgi

Nbgallery usa dependencias de Nbviewer, especificamente utils.py y la cadena continua hasta iPython libs. En detalle:

IPython/utils/io.py          #site-packages


Bajo python manage.py rumserver corre bien, pero con mod_wsgy: 

AttributeError: 'mod_wsgi.Log' object has no attribute 'name'

Solución

No encontré otra solución más práctica que agregar una excepción.  

	IPython/utils/io.py   Linea 45
	    for meth in filter(clone, dir(stream)):
         setattr(self, meth, getattr(stream, meth))

a

	IPython/utils/io.py   
	    for meth in filter(clone, dir(stream)):
        try:
            setattr(self, meth, getattr(stream, meth))
        except AttributeError:
            pass

 

IPython 4.0.1

 

 

 

 

blog comments powered by Disqus