New submission from Jasper Op de Coul <jas...@infrae.com>: Hi,
I'm having trouble running bfg with mod_wsgi in Apache. In paster.py the following code tries to import IPython shell if this is available: try: 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: File "/home/jasper/wip/repub_eur/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/paster.py", line 13, in <module> from IPython.Shell import IPShell # pragma: no cover File "/var/lib/python-support/python2.6/IPython/__init__.py", line 58, in <module> __import__(name,glob,loc,[]) File "/var/lib/python-support/python2.6/IPython/ipstruct.py", line 22, in <module> from IPython.genutils import list2dict2 File "/var/lib/python-support/python2.6/IPython/genutils.py", line 55, in <module> from IPython.Itpl import Itpl,itpl,printpl File "/var/lib/python-support/python2.6/IPython/Itpl.py", 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 <b...@bugs.repoze.org> <http://bugs.repoze.org/issue138> __________________________________ _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev