Package Details: mod_python 3.5.0-2

Git Clone URL: https://aur.archlinux.org/mod_python.git (read-only)
Package Base: mod_python
Description: An Apache module that embeds the Python interpreter within the server
Upstream URL: http://www.modpython.org/
Licenses: Apache
Conflicts: mod_python2, mod_python2-legacy
Submitter: ilpianista
Maintainer: AstroProfundis
Last Packager: AstroProfundis
Votes: 45
Popularity: 0.006064
First Submitted: 2010-10-19 22:08
Last Updated: 2015-06-08 08:35

Dependencies (2)

Required by (3)

Sources (1)

Latest Comments

benjarobin commented on 2014-03-08 12:16

It looks like it is not compatible with apache 2.4
It's recommended to used fast cgi instead if your application can support it

net147 commented on 2012-03-07 12:00

Fixed.

Anonymous comment on 2012-03-07 08:28

The problem seems to be that the sed line in PKGBUILD to delete "/ -Wl,--hash-style $/' in src/Makefile is not being called because the actual string is "-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style", and apparently it's not always at the end of the string either (because originally I modified sed to look for the longer sub string, but at the end of the line; however I was still getting the same error).

I edited PKGBUILD as below:

#sed -i -e 's/ -Wl,--hash-style $//' src/Makefile
sed -i -e 's/-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style //' src/Makefile

After the above change, mod_python is being made & installed successfully, however I decided to use mod_wsgi in the meantime anyway, so I am not sure if it actually works. I get no errors from makepkg or pacman -U mod_python-3.3.1-8-i686.pkg.tar.xz, in any case, and mod_python.so exists at /usr/lib/httpd/modules.

PS. Apparently mod_wsgi has much better performance anyway.

tywgg commented on 2011-12-07 17:41

Hi I got an error when install.


/usr/share/apr-1/build/libtool --silent --mode=link gcc -o mod_python.la -rpath /usr/lib/httpd/modules -module -avoid-version finfoobject.lo hlistobject.lo hlist.lo filterobject.lo connobject.lo serverobject.lo util.lo tableobject.lo requestobject.lo _apachemodule.lo mod_python.lo -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -L/usr/lib/python2.7/config -Xlinker -export-dynamic -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style -lm -lpython2.7 -lpthread -ldl -lutil -lm
/usr/bin/ld: invalid hash style `-soname'
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-tian/aur-mod_python/src/mod_python-3.3.1/src'
make: *** [do_dso] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build mod_python.


if the info is not enough please check http://pastebin.com/nRhibMyd

Also I have all the base-devel installed.

net147 commented on 2011-08-27 15:39

The project is officially dead upstream. Use mod_wsgi instead if possible.

Anonymous comment on 2011-08-27 15:33

This should be in community repo.

Anonymous comment on 2010-11-23 14:07

worked, thanks!

net147 commented on 2010-11-23 13:26

You need to install base-devel group (which includes patch, flex, etc.).

Anonymous comment on 2010-11-23 13:23

It's giving me the following error:

connobject.c: In function ‘_conn_read’:
connobject.c:142:19: error: request for member ‘next’ in something not a structure or union
apxs:Error: Command failed with rc=65536
.
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-ali/aur-mod_python/src/mod_python-3.3.1/src'
make: *** [do_dso] Error 2
Aborting...

You can see see the full output on http://pastebin.com/CgzRQtBF

Anonymous comment on 2010-11-16 08:00

Error 404

All comments