A similar error error is logged where "mod_python.apache" can be imported but an error occurred when doing so. If you'd like to contribute content, let us know. Python can be used as an extension language for applications that need a programmable interface. I can build & install mod_python fine now. Source
Im getting this error: [Mon Mar 31 23:53:03 2008] [error] make_obcallback: could not import mod_python.apache.\n 'import site' failed; use -v for traceback 'import site' failed; use -v for traceback ImportError: No If I set it to 1, however, the same thing happens. Try JIRA - bug tracking software for your team. Dowgrade to python-2.4.3-46.el5.i386.
Im getting this error: [Mon Mar 31 23:53:03 2008] [error] make_obcallback: could not import mod_python.apache.\n 'import site' failed; use -v for traceback 'import site' failed; use -v for traceback ImportError: No import mimetools File "/usr/lib64/python2.4/mimetools.py", line 6, in ? Restart httpd. I found a matching issue."FS#3738 --- mod_python [error] make_obcallback: could not importmod_python.apache.\n""Details recently discovered the following error in my apache 2.0.55-1 log[error] make_obcallback: could not import mod_python.apache.\nFile "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 24, in
That being said, I know what the problem is for me, and likely many others. The runtime DLLs are normaly copied in your Python directory, so putting the Python directory on your PATH variable should do the trick. Although looking at the environment via "export" doesn't show much of interest, beside the actually binary path (which does have /usr/local/bin before /usr/bin and /bin. ~0015599 toracat (manager) 2012-08-07 23:44 Use Does any arch user have mod_python work successfullyafter updating to most recent packages?- Casey------------------------------------------------------------------------_______________________________________________arch mailing listhttp://www.archlinux.org/mailman/listinfo/arch 1 Reply 37 Views Switch to linear view Disable enhanced parsing Permalink to this page
I'm still not sure how (or if) the distro mod_python-3.2.8 works, as rebuilding mod_python-3.3.1 with the previous python did not work (no urandom), so I don't know how the old distro Graham Mar 31 '08 #2 This discussion thread is closed Start new discussion Replies have been disabled for this discussion. The best way to do this is to define it at the system-wide level, but logging it under the user and defining the variable at the user level is also possible. https://issues.apache.org/jira/browse/modpython-158 This package contains most of the standard Python modules, as well as modules for interfacing to the Tix widget set for Tk and RPM.
Python includes modules, classes, exceptions, very high level dynamic data types and dynamic typing. Python includes modules, classes, exceptions, very high level dynamic data types and dynamic typing. Hide Permalink Graham Dumpleton added a comment - 10/Apr/06 14:34 With "_file_" output, last case now looks like: [Mon Apr 10 16:29:09 2006] [error] make_obcallback: could not call init.\n TypeError: init() It was a path issue.
If you want further help you are going to have to say which UNIX platform you are on. https://pucadinga.wordpress.com/2008/10/26/error-make_obcallback-could-not-import-mod_pythonapache/ make_table = _apache.make_table AttributeError: 'module' object has no attribute 'make_table' [Mon Apr 10 16:13:15 2006] [error] make_obcallback: Python path being used " ['/Users/grahamd/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python23.zip', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages', Make_obcallback Could Not Import Mod_python Apache Omd Post your question and get tips & solutions from a community of 419,119 IT Pros & Developers. Centos Mod_python Ie., include the mod_python extension loading message. [Mon Nov 22 08:12:39 2004] [notice] mod_python: Creating 32 session mutexes based on 6 max processes and 25 max threads. [Mon Nov 22 08:12:40
build 1495)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import mod_python.apache Traceback (most recent call last): File "
One of the reasons you will get that error is if the Python modules for mod_python are not actually installed, or not installed in the location where the version of Python Atlassian Help answer threads with 0 replies. So, I re-installed it and ran a few of the commands again, with the results below. have a peek here 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).
This could occur if the message has been deleted or the URL has been edited. All this output should hopefully eliminate a lot of issues down the track. random.py: a = long(_hexlify(_urandom(16)), 16) random.py: a = long(_hexlify(_urandom(16)), 16) random.py: by the operating system (such as /dev/urandom on Unix or random.py: Not available on all systems (see os.urandom() for details).
Want to know which application is best for the job? Downgrading to python-2.4.3-46.el5.i386 and restarting httpd fixed the issue. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. import _apache ImportError: No module named _apache >>> If you get the first error then mod_python isn't even installed correctly for the version of Python being used.
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. 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 Also, show the full error messages appearing around the make_obcallback error in the logs. http://sinistro.org/could-not/could-not-import-mod-python.html FWIW, `python -c 'import cgi'` works even with the failing python (and `python -c 'import mod_python.apache'` fails as it normally would, with "ImportError: No module named _apache"). [Sat Jun 30 12:01:19
OSDir.com python.mod_python Subject: make_obcallback: could not importmod_python.apache Date Index Thread: Prev Next Thread Index -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm trying to get mod python working on a