Richard, Thanks, I guess we're getting closer to a solution. The version is red hat 5.3.
I did what you suggested: The pathing to the binary from inside the application is: /usr/lib/python2.4 If I call the same python script from the server CMD then the pathing is: /usr/local/lib/python2.7
Now how can I change the calling to python call to be python2.7, what should I put in my python script, it starts with import sys ...
I'm not a python expert! Would appreciate your help.
Katy
________________________________
------------ Original Message ------------
Date: Monday, May 20, 2013 05:23:31 PM -0700 From: Katy Mozafar katy_mozafar@yahoo.com To: support@drupal.org Subject: [support] drupal6 and python
I have a problem in Drupal 6! I'm using Python and all of a sudden the application is pointing to a different version of python. It used to be python2.7, now the application is pointed to python2.4 and it causes errors. I haven't changed anything! The server is pointing to 2.7, it's only the application. Do you have any idea where it's set, which file? It's a linux machine and uses LAMP.
Thanks, Katy
I suspect that the pathing for the python reference is pointing to a non-standard location (i.e., not the system default location, given that you say the system version is 2.7) and that the version installed there was changed in some fashion.
To figure things out, find the module(s) that are calling python and check the pathing to the binary, then check things from there. The solution may be as easy as changing the pathing on the python call to the system-default location.
By the way, what linux distribution and release/version?
- Richard