Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
4suite and mod_python -- Import error when bringing in
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jsight
n00b
n00b


Joined: 02 Sep 2004
Posts: 20

PostPosted: Mon Feb 28, 2005 12:25 am    Post subject: 4suite and mod_python -- Import error when bringing in Reply with quote

Using a request.publisher style Request Handler...

Apache - 2.0.52
mod_python - 3.1.3

The code works fine outside of mod_python, but in mod_python, I get a "[Sun Feb 27 19:17:58 2005] [notice] child pid 17727 exit signal Segmentation fault (11)" error in the apache error_log.

Also, periodically, it will fail with an import error on the line:
from Ft.Xml.Xslt import Processor

The line:
from Ft.Xml import InputSource
works fine.

Also, removing all XSL makes the script work fine.

What could this problem be? All the mailing list posts that I have found basically say "Use the latest mod_python, expat, and 4suite as possible with Python 2.3". I am doing all of those, but still getting the segfault.

Any ideas?

Thanks for any help,
Jess
Back to top
View user's profile Send private message
jsight
n00b
n00b


Joined: 02 Sep 2004
Posts: 20

PostPosted: Mon Feb 28, 2005 1:10 am    Post subject: More details.... Reply with quote

Here is the stacktrace from after I've gotten it into "Import fail" mode instead of "segfault" mode.

[Sun Feb 27 20:08:41 2005] [error] [client 127.0.0.1] PythonHandler mod_python.publisher: Traceback (most recent call last):
[Sun Feb 27 20:08:41 2005] [error] [client 127.0.0.1] PythonHandler mod_python.publisher: File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n result = object(req)
[Sun Feb 27 20:08:41 2005] [error] [client 127.0.0.1] PythonHandler mod_python.publisher: File "/usr/lib/python2.3/site-packages/mod_python/publisher.py", line 98, in handler\n path=[path])
[Sun Feb 27 20:08:41 2005] [error] [client 127.0.0.1] PythonHandler mod_python.publisher: File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 457, in import_module\n module = imp.load_module(mname, f, p, d)
[Sun Feb 27 20:08:41 2005] [error] [client 127.0.0.1] PythonHandler mod_python.publisher: File "/var/www/localhost/htdocs/jsight/bible.py", line 6, in ?\n from Ft.Xml.Xslt import Processor
[Sun Feb 27 20:08:41 2005] [error] [client 127.0.0.1] PythonHandler mod_python.publisher: File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/__init__.py", line 166, in ?\n from StylesheetTree import XsltElement
[Sun Feb 27 20:08:41 2005] [error] [client 127.0.0.1] PythonHandler mod_python.publisher: File "/usr/lib/python2.3/site-packages/Ft/Xml/Xslt/StylesheetTree.py", line 18, in ?\n from Ft.Xml.XPath import parser
[Sun Feb 27 20:08:41 2005] [error] [client 127.0.0.1] PythonHandler mod_python.publisher: ImportError: cannot import name parser
Back to top
View user's profile Send private message
jsight
n00b
n00b


Joined: 02 Sep 2004
Posts: 20

PostPosted: Tue Mar 01, 2005 2:13 am    Post subject: Well, giving up on 4suite... Reply with quote

<a href="http://pyana.sourceforge.net/">Pyana</a> - I wish this had an ebuild in portage, but it's a Python interface to Xalan-C++. So far it seems pretty good, and possibly faster than the 4Suite XSLT implementation, anyway.

Works well under mod_python in my simple tests as well.

Anyway, hopefully someone else will fix the 4Suite and mod_python issues one day.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum