Package Details: mod_python 3.5.0.2-1

Git Clone URL: https://aur.archlinux.org/mod_python.git (read-only, click to copy)
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: None
Last Packager: micwoj92
Votes: 43
Popularity: 0.000000
First Submitted: 2010-10-19 22:08 (UTC)
Last Updated: 2024-05-01 00:06 (UTC)

Latest Comments

1 2 Next › Last »

micwoj92 commented on 2020-10-30 21:59 (UTC)

error fixed

micwoj92 commented on 2020-08-23 00:50 (UTC) (edited on 2020-08-23 00:51 (UTC) by micwoj92)

Got error while installing

/usr/share/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include -I/home/micwoj92/.cache/pikaur/build/mod_python/src/mod_python-3.5.0/src/include -I/usr/include/python3.8 -DNDEBUG -c -o _apachemodule.lo _apachemodule.c && touch _apachemodule.slo _apachemodule.c: In function ‘_apache_module_init’: _apachemodule.c:854:5: error: too few arguments to function ‘_PyImport_FixupExtensionObject’ 854 | _PyImport_FixupExtensionObject(m, name, name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.8/Python.h:145, from /home/micwoj92/.cache/pikaur/build/mod_python/src/mod_python-3.5.0/src/include/mod_python.h:46, from _apachemodule.c:25: /usr/include/python3.8/import.h:115:17: note: declared here 115 | PyAPI_FUNC(int) _PyImport_FixupExtensionObject(PyObject, PyObject , | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ apxs:Error: Command failed with rc=65536 . make[1]: [Makefile:57: mod_python.so] Error 1 make[1]: Leaving directory '/home/micwoj92/.cache/pikaur/build/mod_python/src/mod_python-3.5.0/src' make: [Makefile:34: do_dso] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

benjarobin commented on 2014-03-08 12:16 (UTC)

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 (UTC)

Fixed.

<deleted-account> commented on 2012-03-07 08:28 (UTC)

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 (UTC)

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 (UTC)

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

<deleted-account> commented on 2011-08-27 15:33 (UTC)

This should be in community repo.

<deleted-account> commented on 2010-11-23 14:07 (UTC)

worked, thanks!

net147 commented on 2010-11-23 13:26 (UTC)

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