New submission from Jasper Op de Coul <>:


I'm having trouble running bfg with mod_wsgi in Apache.

In the following code tries to import IPython shell if this is 
    from IPython.Shell import IPShell # pragma: no cover
except ImportError:
    IPShell = None # pragma: no cover

I have ipython installed, but importing fails because sys.stdin is not available
in mod_wsgi/apache:

line 13, in <module>
from IPython.Shell import IPShell # pragma: no cover
File "/var/lib/python-support/python2.6/IPython/", line 58, in
<module> __import__(name,glob,loc,[])
File "/var/lib/python-support/python2.6/IPython/", line 22, in 
from IPython.genutils import list2dict2
File "/var/lib/python-support/python2.6/IPython/", line 55, in 
from IPython.Itpl import Itpl,itpl,printpl
File "/var/lib/python-support/python2.6/IPython/", line 101, in <module>
itpl_encoding = sys.stdin.encoding or 'ascii'
ConfigurationExecutionError: <type 'exceptions.IOError'>: sys.stdin access
restricted by mod_wsgi

messages: 371
nosy: JasperOC
priority: bug
status: unread
title: Running BFG with mod_wsgi and ipython installed

Repoze Bugs <>
Repoze-dev mailing list

Reply via email to