This is a path issue, and in my case I am on a Windows Machine, all I needed to do to fix this problem was to add an Environment Variable (under And in the docs, they tell you to .make, configure, .install, whatever you call those, and thats all they tell you of how to install it. Graham Mar 31 '08 #2 This discussion thread is closed Start new discussion Replies have been disabled for this discussion. I fire up my browser of choice. Source
This can happen when Apache module is 3.2+ and Python module code files are 2.7.X. [Mon Apr 10 16:13:15 2006] [error] make_obcallback: could not import mod_python.apache.\n Traceback (most recent call last): IQ Test Time! » Blog at WordPress.com. Also, make sure that the user which is running Apache has its PATH variable properly set. They have GREAT documentation so I'd be shocked if they didn't have it checklisted for you. [aside]AirForceOne? https://issues.apache.org/jira/browse/modpython-158
I add "LoadModule python_module modules/mod_python.so" to the httpd.conf file. People Assignee: Unassigned Reporter: Jim Gallacher Votes: 0 Vote for this issue Watchers: 0 Start watching this issue Dates Created: 09/Apr/06 23:47 Updated: 10/Apr/06 14:34 DevelopmentAgile View on Board Atlassian JIRA A similar error error is logged where "mod_python.apache" can be imported but an error occurred when doing so. i don't know if that bogus path comes from python, or from, apache, or from a registry value ...
I would spend hours combing through those types of docs and not understanding really any of it. Linked ApplicationsLoading… DashboardsProjectsIssuesAgile Help Online Help JIRA Agile Help JIRA Service Desk Help Keyboard Shortcuts About JIRA JIRA Credits What’s New Log In Export Tools mod_pythonMODPYTHON-158Improve Installation / Troubleshooting section in I find using Google (to other sources) is much better. I have no experience with those OS's.
This setup looks easy as you need to add only two lines to httd.conf. Same error. Quick Navigation Server Configuration, Apache & URL Rewriting Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Community Center News & Announcements General Discussions Introductions Talk Typical error message: [Sun Apr 09 14:03:46 2006] [error] make_obcallback: could not import mod_python.apache.\n [Sun Apr 09 14:03:46 2006] [error] python_handler: no interpreter callback found. [Sun Apr 09 14:03:46 2006] [error]
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. I go to Settings -> System and check the Environmental Variables. This can happen when Apache module is 3.2+ and Python module code files are 2.7.X. [Mon Apr 10 16:13:15 2006] [error] make_obcallback: could not import mod_python.apache.\n Traceback (most recent call last): I'll possibly tweak this a bit more.
Jun 25, 2007,20:21 #4 AirForceOne View Profile View Forum Posts SitePoint Enthusiast Join Date Aug 2006 Posts 35 Mentioned 0 Post(s) Tagged 0 Thread(s) Ok I founded this thread: http://www.sitepoint.com/forums/show...ght=mod_python I make_obcallback(): could not import mod_python.apache. Life is full of interesting things…. You may have to register before you can post: click the register link above to proceed.
ablegreenJune 26th, 2007, 02:33 AMHow the heck do you do this? http://sinistro.org/could-not/could-not-import-keysym-for-local-python-version.html MySQLdb problem with mod_python, please help Running mod_python on Apache on Windows2000 * Browse more Python Questions on Bytes Question stats viewed: 2528 replies: 1 date asked: Mar 31 '08 Follow Apache can't load mod_python.so --------------------------------------------- This more common problem on Windows, but can occur on other platforms. What the heck is going on?
I've been working for hours trying to figure the problem out. I type in "http://localhost/mptest.py". 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. have a peek here 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
I check the error log, and I see part of what it's there: [Mon Jun 25 17:58:16 2007] [notice] Parent: Created child process 5028 [Mon Jun 25 17:58:16 2007] [error] python_init: If anyone can help fix these current errors that would be nice. Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. (LogOut/Change) You are
Apache server cann't import mod_python.apache, we should add a PYTHONPATH system variable to contain the python modules path, for example, we can set it as following C:\Python;C:\Python\DLLs;C:\Python\Lib;C:\Python\Lib\lib-tk;C:\Python\Lib\site-packages Posted by max at The runtime DLLs are normaly copied in your Python directory, so putting the Python directory on your PATH variable should do the trick. From the python interpreter, we can import mod_python successfully, why? Post your question and get tips & solutions from a community of 419,119 IT Pros & Developers.
This forum is now closed to new posts, but you can browse existing content. Activity Ascending order - Click to sort in descending order All Comments Work Log History Activity Transitions Hide Permalink Graham Dumpleton added a comment - 10/Apr/06 14:22 I have checked into make_obcallback(): could not import mod_python.apache. http://sinistro.org/could-not/could-not-import-mod-python.html The error log contains the above.
Show 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: e.g. /usr/lib/python2.5/site-packages/mod_python chmod 777 mod_python chmod 666 mod_python/* This will make files available also to apache user (or the user under webserver runs).