Setting up Update Process Resolving Dependencies Skipping security plugin, no data --> Running transaction check --> Processing Dependency: python = 2.4.3-46.el5 for package: tkinter ---> Package python.i386 0:2.4.3-46.el5_8.2 set to be If it was able to import "mod_python.apache" but a failure occurred when calling "apache.init()", it will compare the version of the Apache mod_python module load against the version of mod_python Python I think I have the problem. # echo $LD_LIBRARY_PATH # python Python 2.4.6 (#1, Jun 27 2012, 14:58:52) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Type "help", "copyright", "credits" or I install Python 2.5.1 to C:/Python25. Source
Quote Report Content Go to Page Top Share Facebook 0 Twitter 0 Google Plus 0 Reddit 0 Users Online 2 2 Guests monitoring-portal.org » Forum » Projects » OMD » Privacy Because that looks like python 2.4.6 to me, not 2.4.3 (see above). ~0015597 toracat (manager) 2012-08-07 20:57 @spkane Can you post the output returned by: rpm -qi `rpm -qf /usr/bin/python` ~0015598 Danach ersetze diese Dateien mal durch jene, die du unter /usr/lib64/python2.7 findest. python_init: Python version mismatch, expected '2.5', found '2.5.1'.
mod_python and Internal Server Error ... And this is my place to share these things with the world!! :-) Powerball Record: 13,014 RPMSet: 16th October 2008 Daily Press-ups: 135 reps Since initially: 45 reps in March 2004 Python can be used as an extension language for applications that need a programmable interface. If it was able to import "mod_python.apache" but a failure occurred when calling "apache.init()", it will compare the version of the Apache mod_python module load against the version of mod_python Python
Quote Report Content Go to Page Top Boulette Beginner Posts 5 Number of hosts 150 Number of services 2600 Operating Systems Centos 7.2 3 Jan 22nd 2016, 5:00pm Hallo, geh mal mod_python still fails. 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 EDIT: - Ok I looked in the system32 folder and theres no python25.zip so I have no idea why it's looking the in sys 32 folder lol - If it's trying
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] Omd Could Not Import Mod_python Apache http://www.imladris.com/Scripts/PythonForWindows.html http://www.google.com/search?hl=en&q...th&btnG=Search Success: [Mon Jun 25 21:42:51 2007] [notice] Apache/2.2.4 (Win32) configured -- resuming normal operations [Mon Jun 25 21:42:51 2007] [notice] Server built: Jan 9 2007 23:17:20 [Mon Jun 25 Die Front-Ends von Thruk und Nagios funktionieren ohne Probleme. Post your question and get tips & solutions from a community of 419,120 IT Pros & Developers.
This may require configuring mod_python. For example, maybe should output _file_ from "mod_python" module so know where module is being picked up from. Register FAQ/Rules My SitePoint Forum Actions Mark Forums Read Quick Links View Forum Leaders Remember Me? This will be platform specific.
In my case the immediate fix, was as simple as this: [[email protected] ~]# export PATH=/usr/bin:bin:$PATH Now to see if I can't upgrade the Python is /usr/local ~0015593 spkane (reporter) 2012-08-06 23:21 see here AttributeError: 'module' object has no attribute 'urandom' >>> ~0015595 range (administrator) 2012-08-07 19:38 I still cannot reproduce that: [[email protected] ~]$ rpm -q python python-libs python-2.4.3-46.el5_8.2 python-libs-2.4.3-46.el5_8.2 [[email protected] ~]$ python Python 2.4.3 Make_obcallback: Could Not Import Mod_python.apache. Omd 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 Centos Mod_python I make sure there are no variables with "xampp" in it.
from random import Random as _Random File "/usr/lib/python2.4/random.py", line 46, in ? this contact form As for why ther python says, 2.4.6, that is a great question, and maybe a big hint at the problem. I go to localhost to test it, and it works. Quote Report Content Go to Page Top pitchfork Enlightened Likes Received 33 Posts 21,294 Occupation Sysadmin SAP / Linux / AIX Number of hosts 360 Number of services 6700 Operating Systems
If the version disagrees it will complain. What do I do. 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 have a peek here Description : Python is an interpreted, interactive, object-oriented programming language often compared to Tcl, Perl, Scheme or Java.
try, ah, installing ubuntu, and then see how that goes :p my first guess is this: check your version of python, see if you need to downgrade to 2.5. It's quick & easy. Running python v. _8.2 normally does find urandom, but it isn't available to mod_python. # python Python 2.4.3 (#1, Jun 18 2012, 08:55:31) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
I find using Google (to other sources) is much better. 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 Tags: 500 server error, apache, error, mod_python.apache, obcallback, Python. 1 Comment » One Response to "Error: make_obcallback: could not import mod_python.apache" Cristian Navalici Says: December 7, 2008 at 6:52 pm Another 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).
Grüße OK, WARNING, CRITICAL und BIER: der Münchner Monitoring-Stammtisch Quote Report Content Go to Page Top sni Administrator Likes Received 9 Posts 2,022 Number of hosts Number of services Operating Systems Grüße, nasowas Quote Report Content Go to Page Top Tisman Administrator Posts 40 Occupation Admin Number of hosts ca. 350 Number of services ca. 1500 Operating Systems CentOS 6.4 8 Jan Related Posted in Computers & Technology, Python. http://gsbook.org/could-not/make-sock-could-not-bind-to-address-apache.php Graham Mar 31 '08 #2 This discussion thread is closed Start new discussion Replies have been disabled for this discussion.
Reply Leave a Reply Cancel reply Enter your comment here... Any page that mod_python would handle should show the issue. 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. Note that documentation for Python is provided in the python-docs package. ------ The package also verifies fine, Although this is with the older version installed. [[email protected] ~]# rpm -V python-2.4.3-46.el5 [[email protected]
You can now find them here. Ich vermute der Fehler kam erst mit Centos 7.2. Das kann ich mir nur nicht vorstellen, da Sven eine ganze Test Suite hat die durchlaufen werden muss bevor er Pakete zum Download ins Repo stellt. +++ PNP Developer +++ PNP Sign-ups and logins are not working! 1monthago Life is full of interesting things….
I'm not sure there is an easy answer, but we should offer some initial troubleshooting suggestions. I type in "http://localhost/mptest.py". Nach dem ersetzen der Dateien lief OMD bei mir problemlos. Maybe an environment variable is causing /usr/bin/python to pick up the python libs from another installation?
I have: apache_2.2.4-win32-x86-no_ssl.msi python-2.5.1.msi mod_python-3.3.1.win32-py2.5-Apache2.2.exe I install fresh all the programs above.