[Repoze-dev] [issue138] Running BFG with mod_wsgi and ipython installed

2010-03-04 Thread Jasper Op de Coul

Jasper Op de Coul jas...@infrae.com added the comment:

I verified, the error is gone, Thanks.

--
status: chatting - resolved

__
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


[Repoze-dev] [issue138] Running BFG with mod_wsgi and ipython installed

2010-03-03 Thread Jasper Op de Coul

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


[Repoze-dev] [issue138] Running BFG with mod_wsgi and ipython installed

2010-03-03 Thread Tres Seaver

Tres Seaver tsea...@agendaless.com added the comment:

Apparently IPython is doing something nasty at import time.  I just checked in a
change which delayed BFG's import until actually needed, which should prevent
the import-time side effect from hurting under mod_wsgi.  Please verify and 
close.

--
assignedto:  - JasperOC
status: unread - chatting

__
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