Changing the header python localtion on all pages

I have python installed on /usr/local/bin/python2.7  which is ver 2.7.5

My systems environment python is 2.6.6 > Since I am getting a parsing error after logging in the issue is with the python 2.6.6 as I need 2.7+ for ERP Next.

Now each python file has this at the start /usr/bin/env python

If I replace this with /usr/local/bin/python2.7  will everything work correctly for the ERP Next on terms of using the python 2.7 instead of 2.6.6

Please guide



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.

Please try it for yourself.

% grep “bin/env” -r . --include “*.py”
./app/install_erpnext.py:#!/usr/bin/env python
./lib/webnotes/utils/email_lib/html2text.py:#!/usr/bin/env python
./lib/wnf.py:#!/usr/bin/env python
./lib/public/html/server.py:#!/usr/bin/env python
./lib/public/html/web.py:#!/usr/bin/env python

It seems that there aren’t many files to replace the shebang.


pd

On Wed, Oct 2, 2013 at 2:24 PM, Aditya Kumar to...@gmail.com wrote:

I have python installed on /usr/local/bin/python2.7 which is ver 2.7.5

My systems environment python is 2.6.6 > Since I am getting a parsing error
after logging in the issue is with the python 2.6.6 as I need 2.7+ for ERP
Next.

Now each python file has this at the start /usr/bin/env python

If I replace this with /usr/local/bin/python2.7 will everything work
correctly for the ERP Next on terms of using the python 2.7 instead of 2.6.6

Please guide


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.

Thanks much. That completes my install on a VPS Cpanel server successfully.

Aditya

On Wednesday, October 2, 2013 4:37:51 PM UTC+5:30, pdvyas wrote:
Please try it for yourself.

% grep "bin/env" -r . --include "*.py"
./app/install_erpnext.py:#!/usr/bin/env python
./lib/webnotes/utils/email_lib/html2text.py:#!/usr/bin/env python
./lib/wnf.py:#!/usr/bin/env python
./lib/public/html/server.py:#!/usr/bin/env python
./lib/public/html/web.py:#!/usr/bin/env python


It seems that there aren't many files to replace the shebang.

--
pd

On Wed, Oct 2, 2013 at 2:24 PM, Aditya Kumar <to...@gmail.com> wrote:
> I have python installed on /usr/local/bin/python2.7  which is ver 2.7.5
>
> My systems environment python is 2.6.6 > Since I am getting a parsing error
> after logging in the issue is with the python 2.6.6 as I need 2.7+ for ERP
> Next.
>
> Now each python file has this at the start /usr/bin/env python
>
> If I replace this with /usr/local/bin/python2.7  will everything work
> correctly for the ERP Next on terms of using the python 2.7 instead of 2.6.6
>
> Please guide
>
> --
> 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.



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.