The OP's problem occurred when python was updated to 2.4.3-46.el5_8.2. ~0015604 spkane (reporter) 2012-08-08 15:48 Actually, I had rolled back the python release since it broke the system pretty badly. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Programmers can write new built-in modules for Python in C or C++. Wife Works in LA. Source
So, check the mod_python folder for permissions (linux apply). make_obcallback(): could not call init. All the same, all this extra information should hopefully be enough for people to see there is a misconfiguration problem and work out what is missing or wrongly installed. Would presence of MANPADS ground the entire airline industry?
Were Palpatine or Vader ever congratulatory or nice to any of their subordinates? I'll possibly tweak this a bit more. Watching apache's logs on startup, I can see it loading up mod_python: Code: [Thu Sep 27 14:56:32 2007] [notice] mod_python: Creating 8 session mutexes based on 256 max processes and 0 I fixed version.sh by just replacing the offending line with an empty definition: #GIT=`git describe --always` GIT= share|improve this answer answered Dec 31 '13 at 3:21 Ron 563 add a comment|
Programmers can write new built-in modules for Python in C or C++. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed import tempfile File "/usr/lib64/python2.4/tempfile.py", line 33, in ? So, in my case, it went a little like this: Code: ./configure --prefix=$HOME/local --with-apxs=$HOME/local/bin/apxs --with-python=$HOME/local/bin/python --with-python-src=$HOME/install/Python-2.5.1 make -j2 make test make install $HOME/bin/apachectl -k restart There's probably a way of doing
What are those "sticks" on Jyn Erso's back? Omd Could Not Import Mod_python Apache from os import urandom as _urandom ImportError: cannot import name urandom [Tue Jul 17 10:10:42 2012] [error] make_obcallback: Python path being used "['/omd/versions/0.52/lib/python', '/omd/sites/cdjintern/lib/python', '/omd/sites/cdjintern/local/lib/python', '/usr/lib64/python24.zip', '/usr/lib64/python2.4/', '/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk', '/usr/lib64/python2.4/lib-dynload']". [[email protected] A typical apache error message looks like this: Syntax error on line 173 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Cannot load C:/Program Files/Apache Group/Apache2/modules/mod_python.so into server: The specified module could not be found. from os import urandom as _urandom ImportError: cannot import name urandom [Sat Jun 30 12:01:19 2012] [error] make_obcallback: Python path being used "['/usr/lib/python24.zip', '/usr/lib/python2.4', '/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk', '/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages', '/usr/lib/python2.4/site-packages/Numeric', '/usr/lib/python2.4/site-packages/gtk-2.0']". [Sat
Any clues about what I'm doing wrong? I've edited my httpd.conf to load up the mod_python.so from my homedir. I get the following error when I try to access the mptest.py page: -- [Sat Aug 03 21:19:55 2002] [warn] Loaded DSO modules/mod_python.dll uses plain Apache 1.3 API, this module might Python supports interfaces to many system calls and libraries, as well as to various windowing systems (X11, Motif, Tk, Mac and MFC).
A similar error error is logged where "mod_python.apache" can be imported but an error occurred when doing so. You are currently viewing LQ as a guest. Make_obcallback Could Not Import Mod_python Apache Omd If they differ, it will log error messages like: [Mon Apr 10 16:06:22 2006] [error] python_init: Python version mismatch, expected '2.3.4', found '2.3'. [Mon Apr 10 16:06:22 2006] [error] python_init: Python Centos Mod_python Error: Twitter did not respond.
A similar error error is logged where "mod_python.apache" can be imported but an error occurred when doing so. http://sinistro.org/could-not/could-not-import-keysym-for-local-python-version.html Note that documentation for Python is provided in the python-docs package. # rpm -V python-2.4.3-46.el5_8.2 # rpm -V python-libs-2.4.3-46.el5_8.2 # /usr/bin/python -v # installing zipimport hook import zipimport # builtin # This can occur where Apache module is 3.2+ but Python code files found are 3.1.X. [Mon Apr 10 16:18:24 2006] [error] make_obcallback: could not call init.\n TypeError: init() takes no arguments Make sure that your Python directory and the runtime DLLs can be found on your PATH.
Explain it to me like I'm a physics grad: Greenhouse Effect Get out of the transit airport at Schengen area and the counting of Schengen period The female equivalent of "don't Installing the new python with its mystery urandom and then rebuilding and installing the local mod_python works properly. Python includes modules, classes, exceptions, very high level dynamic data types and dynamic typing. have a peek here Typical error message: httpd: Syntax error on line 231 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_python.so into server: /usr/local/apache2/modules/mod_python.so: undefined symbol: apr_sockaddr_port_get This error could indicate an actual bug in mod_python, or a
If so, how do I get it in there? On initialisation of mod_python, will compare the version string from the version of Python that mod_python was compiled against, with that which was found at runtime. make_obcallback(): could not import mod_python.apache.
This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. python python-module mod-python share|improve this question edited Nov 16 '13 at 19:57 asked Nov 16 '13 at 18:07 Juneyee 791211 add a comment| 2 Answers 2 active oldest votes up vote If the version disagrees it will complain. Maybe an ld path issue, effecting the library loading order.... ~0015605 spkane (reporter) 2012-08-08 15:55 Ok.
Atlassian Anonymous Login Signup for a new account ProjectAll Projects administration Atomic Buildsys CentOS-5 CentOS-6 » Xen4 CentOS-7 Cloud Instance SIG Documentation forums Mantis BT @ CentOS mirror website 2016-12-24 05:48 If they differ, it will log error messages like: [Mon Apr 10 16:06:22 2006] [error] python_init: Python version mismatch, expected '2.3.4', found '2.3'. [Mon Apr 10 16:06:22 2006] [error] python_init: Python Are zipped EXE files harmless for Linux servers? Check This Out HesabımAramaHaritalarYouTubePlayHaberlerGmailDriveTakvimGoogle+ÇeviriFotoğraflarDaha fazlasıDokümanlarBloggerKişilerHangoutsGoogle'a ait daha da fazla uygulamaOturum açınGizli alanlarGrupları veya mesajları ara Linked ApplicationsLoading… DashboardsProjectsIssuesAgile Help Online Help JIRA Agile Help JIRA Service Desk Help Keyboard Shortcuts About JIRA JIRA Credits
Thanks ahead! Then I got errors as follows: >>> import mod_python Traceback (most recent call last): File "
TIA, Robert Lilly Apache/Python/PHP newbie! Just starting httpd doesn't serve any pages. ~0015474 StefanKaerst (reporter) 2012-07-17 08:38 same issue here. Why was the plane going to Dulles? Description : Python is an interpreted, interactive, object-oriented programming language often compared to Tcl, Perl, Scheme or Java.
I have a locally built mod_python-3.3.1 (the distro version is 3.2.8 and isn't new enough for my use). You may close the bug as far as I'm concerned, though spkane or StefanKaerst may say otherwise. All the same, all this extra information should hopefully be enough for people to see there is a misconfiguration problem and work out what is missing or wrongly installed. For example, maybe should output _file_ from "mod_python" module so know where module is being picked up from.
This package contains most of the standard Python modules, as well as modules for interfacing to the Tix widget set for Tk and RPM.