Make ERPNext to use python 2.7.5 located at /usr/local/bin/python2.7

Hi,

I already have python 2.7.5 here : /usr/local/bin/python2.7

But my Cento OS default is 2.6.6 and I cannot alter it as it will break my cpanel. The ERP has been installed but shows parser error.

How can I have ERPNEXT use the python on this location /usr/local/bin/python2.7  ?

Thanks



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.
You can try to use virtualenvwrapper. (On my local, Python 3 is default but I use 2.7.5 for projects).

$mkvirtualenv erpnext -p `which python2.7`

You might have to either change the shebangs of the CGI scripts to use python2.7 or play with SetEnv in apache conf to alter the path to use the virtualenv Python.



On Mon, Sep 30, 2013 at 6:30 PM, Aditya Kumar <to...@gmail.com> wrote:
Hi,

I already have python 2.7.5 here : /usr/local/bin/python2.7

But my Cento OS default is 2.6.6 and I cannot alter it as it will break my cpanel. The ERP has been installed but shows parser error.

How can I have ERPNEXT use the python on this location /usr/local/bin/python2.7 ?

Thanks



Note:



If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.



    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.




--
Pratik Vyas
Ph: +919925239915
Google Profile : http://www.google.com/profiles/pdvyas
Does the below work on a live server? Or is that solution only for a local machine server

On Monday, September 30, 2013 8:24:16 PM UTC+5:30, pdvyas wrote:
You can try to use virtualenvwrapper. (On my local, Python 3 is default but I use 2.7.5 for projects).

$mkvirtualenv erpnext -p `which python2.7`

You might have to either change the shebangs of the CGI scripts to use python2.7 or play with SetEnv in apache conf to alter the path to use the virtualenv Python.



On Mon, Sep 30, 2013 at 6:30 PM, Aditya Kumar <to...@gmail.com> wrote:
Hi,

I already have python 2.7.5 here : /usr/local/bin/python2.7

But my Cento OS default is 2.6.6 and I cannot alter it as it will break my cpanel. The ERP has been installed but shows parser error.

How can I have ERPNEXT use the python on this location /usr/local/bin/python2.7  ?

Thanks



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.




--
Pratik Vyas
Ph: +919925239915
Google Profile : http://www.google.com/profiles/pdvyas



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

    For more options, visit https://groups.google.com/groups/opt_out.