<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Richard,</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>Thanks, I guess we're getting closer to a solution.</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>The version is red hat 5.3.</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>I did what you suggested:</span></div><div style="color: rgb(0, 0, 0); font-size:
13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>The pathing to the binary from inside the application is:</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>/usr/lib/python2.4</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>If I call the same python script from the server CMD then the pathing is:</span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">/usr/local/lib/python2.7<br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style:
normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>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 ... <br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><span>I'm not a python expert! Would appreciate your help.<br></span></div><div><br></div><div>Katy<br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div class="y_msg_container"> <hr
size="1"><font face="Arial" size="2"><b><span style="font-weight:bold;"></span></b></font><br>------------ Original Message ------------<br>> Date: Monday, May 20, 2013 05:23:31 PM -0700<br>> From: Katy Mozafar <<a ymailto="mailto:katy_mozafar@yahoo.com" href="mailto:katy_mozafar@yahoo.com">katy_mozafar@yahoo.com</a>><br>> To: <a ymailto="mailto:support@drupal.org" href="mailto:support@drupal.org">support@drupal.org</a><br>> Subject: [support] drupal6 and python<br>><br>> I have a problem in Drupal 6!<br>> I'm using Python and all of a <br>> sudden the application is pointing to a different version of<br>> python. It used to be python2.7, now the application is pointed<br>> to python2.4 and it causes errors. I haven't changed anything!<br>> The server is pointing to 2.7, it's only the application. Do you<br>> have any idea where it's set, which file? It's a linux machine<br>> and uses
LAMP.<br>> <br>> Thanks, Katy<br><br>I suspect that the pathing for the python reference is pointing to a<br>non-standard location (i.e., not the system default location, given<br>that you say the system version is 2.7) and that the version<br>installed there was changed in some fashion.<br><br>To figure things out, find the module(s) that are calling python and<br>check the pathing to the binary, then check things from there. The<br>solution may be as easy as changing the pathing on the python call<br>to the system-default location.<br><br>By the way, what linux distribution and release/version?<br><br> - Richard<br><br><br></div> </div> </div> </div></body></html>