[support] drupal6 and python

John Summerfield summer at js.id.au
Wed May 22 13:10:49 UTC 2013


On 21/05/13 09:35, Katy Mozafar wrote:
> 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
As others have said, no part of Drupal uses Python. If you need advice 
on Python programming you are best served by finding a community that 
does write Python code, and be quite clear about what you are trying to 
do with it.

Note that some web applications are written in Python just as Drupal and 
many others are written in PHP. Those sites are probably best avoided 
because the people there are likely to thing you are writing web apps in 
python.

Start from python.org, or use  your favourite search engine.

>
> Katy
> ------------------------------------------------------------------------
> **
> ------------ Original Message ------------
>  > Date: Monday, May 20, 2013 05:23:31 PM -0700
>  > From: Katy Mozafar <katy_mozafar at yahoo.com
> <mailto:katy_mozafar at yahoo.com>>
>  > To: support at drupal.org <mailto:support at 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
>
>
>
>



More information about the support mailing list