python32-mod_wsgi load errors

Bug #1045118 reported by Jason Garber
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IUS Community Project
Fix Released
Undecided
Unassigned

Bug Description

This is on a clean, fresh install of Oracle Enterprise Linux 6.

On a fresh install of "python32-mod_wsgi-3.3-4.ius.el6.x86_64", I received this error on starting Apache:

Starting httpd: httpd: Syntax error on line 91 of /etc/httpd/conf/httpd.conf: Syntax error on line 21 of /etc/httpd/conf.d/python32-mod_wsgi.conf: Cannot load /etc/httpd/modules/python31-mod_wsgi.so into server: /etc/httpd/modules/python31-mod_wsgi.so: cannot open shared object file: No such file or directory
                                                           [FAILED]

(Note the reference to python31 instead of python32)

When adjusting this to python32, another error is encountered:

[root@step nginx]# service httpd start
Starting httpd: httpd: Syntax error on line 91 of /etc/httpd/conf/httpd.conf: Syntax error on line 21 of /etc/httpd/conf.d/python32-mod_wsgi.conf: Cannot load /etc/httpd/modules/python32-mod_wsgi.so into server: /etc/httpd/modules/python32-mod_wsgi.so: undefined symbol: PyCObject_FromVoidPtr
                                                           [FAILED]

It appears we might be in need for a code upgrade:

http://stackoverflow.com/questions/5544756/mod-wsgi-on-archlinux-with-python-3-2

Revision history for this message
Jason Garber (gahooa) wrote :

Here is an updated set of files which correct the described problems.

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

Hello Jason,

Thank you for that information, I'm going to test package for mod_wsgi 3.4.

The Changelog mentions support for Python 3.2:
   http://code.google.com/p/modwsgi/wiki/ChangesInVersion0304

I'll get back to you once I package and test this out.

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

Looks like the 3.4 sources resolves the issue. I'm going to get this in IUS testing for you here shortly.

# rpm -q python32-mod_wsgi
python32-mod_wsgi-3.4-1.ius.el6.x86_64

# service httpd stop
Stopping httpd: [ OK ]

# service httpd start
Starting httpd: [ OK ]

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

Hello Jason,

I've got this build into IUS Testing:

  http://dl.iuscommunity.org/pub/ius/testing/Redhat/6/x86_64/python32-mod_wsgi-3.4-1.ius.el6.x86_64.rpm

This release appears to resolve the issue you posted above.

Revision history for this message
Jason Garber (gahooa) wrote :

Hey Jeff,

I just tested this and it worked great. Thanks for fixing it up.

Jason Garber

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

Excellent! I'll be getting these python32 packages in the Stable repos here soon.

Revision history for this message
Jeffrey Ness (jeffrey-ness) wrote :

Thank you very much for helping with these packages Jason,
I've got them pushed to IUS Stable.

Changed in ius:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.