Can't open erpnext after update

Dear Pratik

'which python2.7'  returns

/usr/local/bin/python2.7


I ran next command nevertheless...  'python ./lib/wnf.py -b'  and the output is

er...@SatishG:~/erpnext$ python ./lib/wnf.py -b
Setting up lang files for el...
Extracting / updating translatable strings...
Writing translations...
Setting up lang files for hr...
Writing translations...
Setting up lang files for pt-BR...
Writing translations...
Setting up lang files for hi...
Writing translations...
Setting up lang files for ta...
Writing translations...
Setting up lang files for it...
Writing translations...
Setting up lang files for th...
Writing translations...
Setting up lang files for ar...
Writing translations...
Setting up lang files for de...
Writing translations...
Setting up lang files for sr...
Writing translations...
Setting up lang files for nl...
Writing translations...
Setting up lang files for pt...
Writing translations...
Setting up lang files for fr...
Writing translations...
Setting up lang files for es...
Writing translations...
Building js and css files...
Wrote public/css/all-web.css - 153k
Wrote public/js/all-web.min.js - 41k
Wrote public/js/editor.min.js - 26k
Wrote public/css/all-app.css - 203k
Wrote public/js/all-app.min.js - 554k
Wrote public/js/slickgrid.min.js - 102k


On Saturday, 16 November 2013 17:41:13 UTC+5:30, Pratik Vyas wrote:


On 16 Nov 2013 15:11, "Satish" <sa...@gmail.com> wrote:
>
> Hi Pratik
>
> which python returns
>
> /usr/bin/python

Nice. Sorry but it occurred to me that the shebang asks for python2.7

Can you send
`which python2.7`

Also if your system python ie /usr/bin/python is 2.7

Can you try
```
python ./lib/wnf.py -b
```
>
>
> Satish
>
>
> On Saturday, 16 November 2013 13:43:16 UTC+5:30, Pratik Vyas wrote:
>>
>> Hi Satish,
>>
>> I have never encountered this error before. On searching, http://stackoverflow.com/questions/10641201/attributeerror-module-object-has-no-attribute-pydebug is the first result.

>>

>> Can you send the output of

>> which python

>> ?

>>

>> On 16 Nov 2013 13:27, “Satish” <sa…@gmail.com> wrote:

>>>

>>> Hi Pratik,

>>>

>>> Thanks for you help.

>>>

>>> When I run command   ./lib/wnf.py --latest, clear_web and server,  I get the following output:

>>>

>>> er…@SatishG:~/erpnext$ ./lib/wnf.py --latest

>>> Traceback (most recent call last):

>>>   File “/usr/lib/python2.7/site.py”, line 562, in <module>

>>>     main()

>>>   File “/usr/lib/python2.7/site.py”, line 544, in main

>>>     known_paths = addusersitepackages(known_paths)

>>>   File “/usr/lib/python2.7/site.py”, line 271, in addusersitepackages

>>>     user_site = getusersitepackages()

>>>   File “/usr/lib/python2.7/site.py”, line 246, in getusersitepackages

>>>     user_base = getuserbase() # this will also set USER_BASE

>>>   File “/usr/lib/python2.7/site.py”, line 236, in getuserbase

>>>     USER_BASE = get_config_var(‘userbase’)

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 577, in get_config_var

>>>     return get_config_vars().get(name)

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 476, in get_config_vars

>>>     _init_posix(_CONFIG_VARS)

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 337, in _init_posix

>>>     makefile = _get_makefile_filename()

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 331, in _get_makefile_filename

>>>     return os.path.join(get_path(‘platstdlib’).replace(“/usr/local”,“/usr”,1), “config” + (sys.pydebug and “_d” or “”), “Makefile”)

>>> AttributeError: ‘module’ object has no attribute ‘pydebug’

>>>

>>>

>>>

>>> And I am still getting the same Access Denied error.

>>>

>>> Thereafter, I even tried setting up Production setup. However I can’t seem to figure out how to add file   gunicorn.conf  to /etc/supervisor/conf.d/

>>>

>>>

>>> Regards

>>> Satish Gupta

>>>

>>> On Friday, 8 November 2013 17:59:58 UTC+5:30, Pratik Vyas wrote:

>>>>

>>>> Hi Satish,

>>>>

>>>> On Thu, Nov 7, 2013 at 11:54 PM, Satish Gupta

>>>> <sa…@gmail.com> wrote:

>>>> > Thank you all for ur help. But i am out of office till 13 and will be able

>>>> > to try only then. Will let u know if it works. But it seems that that u want

>>>> > apache user to take ownership of files and folder. I have tried that already

>>>> > but it doesnt work.

>>>>

>>>> I think that instead of getting apache to work, you should invest in

>>>> getting the latest master (with wsgi changes) to work. It is worth the

>>>> effort as we will be deprecating the 1310 branch soon.

>>>>

>>>> Copying from rihnorck’s thread,

>>>>

>>>> * Create a new erpnext user,

>>>> * install from latest master,

>>>> * copy the old conf.py (as it will have the database config)

>>>> * run patches and clear web

>>>>

>>>> Assuming that you are on Ubuntu

>>>>

>>>> <br> &gt;&gt;&gt;&gt; sudo adduser erpnext <br> &gt;&gt;&gt;&gt; su - erpnext <br> &gt;&gt;&gt;&gt; # enter password for erpnext <br> &gt;&gt;&gt;&gt; mkdir ~/erpnext <br> &gt;&gt;&gt;&gt; cd ~/erpnext <br> &gt;&gt;&gt;&gt; wget <a href="https://raw.github.com/webnotes/erpnext/master/install_erpnext.py" target="_blank">https://raw.github.com/<wbr>webnotes/erpnext/master/<wbr>install_erpnext.py</a> <br> &gt;&gt;&gt;&gt; #enter some random database name <br> &gt;&gt;&gt;&gt; sudo python install_erpnext.py <br> &gt;&gt;&gt;&gt; cp /path/to/old/conf.py conf.py <br> &gt;&gt;&gt;&gt; rm conf.pyc <br> &gt;&gt;&gt;&gt; ./lib/wnf.py --latest <br> &gt;&gt;&gt;&gt; ./lib/wnf.py --clear_web <br> &gt;&gt;&gt;&gt; ./lib/wnf.py --serve <br> &gt;&gt;&gt;&gt;

>>>>

>>>> This should get you up and running on WSGI (current master). Proceed

>>>> with production setup from here,

>>>> https://github.com/webnotes/erpnext/wiki/WSGI-Production-Deployment

>>>>

>>>>

>>>> –

>>>> Pratik

>>>> ERPNext

>>>

>>> –

>>> 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.



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.
Hi

Can someone help me further on this??

Regards


On Saturday, 16 November 2013 19:16:01 UTC+5:30, Satish wrote:
Dear Pratik

'which python2.7'  returns

/usr/local/bin/python2.7


I ran next command nevertheless...  'python ./lib/wnf.py -b'  and the output is

er...@SatishG:~/erpnext$ python ./lib/wnf.py -b
Setting up lang files for el...
Extracting / updating translatable strings...
Writing translations...
Setting up lang files for hr...
Writing translations...
Setting up lang files for pt-BR...
Writing translations...
Setting up lang files for hi...
Writing translations...
Setting up lang files for ta...
Writing translations...
Setting up lang files for it...
Writing translations...
Setting up lang files for th...
Writing translations...
Setting up lang files for ar...
Writing translations...
Setting up lang files for de...
Writing translations...
Setting up lang files for sr...
Writing translations...
Setting up lang files for nl...
Writing translations...
Setting up lang files for pt...
Writing translations...
Setting up lang files for fr...
Writing translations...
Setting up lang files for es...
Writing translations...
Building js and css files...
Wrote public/css/all-web.css - 153k
Wrote public/js/all-web.min.js - 41k
Wrote public/js/editor.min.js - 26k
Wrote public/css/all-app.css - 203k
Wrote public/js/all-app.min.js - 554k
Wrote public/js/slickgrid.min.js - 102k


On Saturday, 16 November 2013 17:41:13 UTC+5:30, Pratik Vyas wrote:


On 16 Nov 2013 15:11, "Satish" <sa...@gmail.com> wrote:
>
> Hi Pratik
>
> which python returns
>
> /usr/bin/python

Nice. Sorry but it occurred to me that the shebang asks for python2.7

Can you send
`which python2.7`

Also if your system python ie /usr/bin/python is 2.7

Can you try
```
python ./lib/wnf.py -b
```
>
>
> Satish
>
>
> On Saturday, 16 November 2013 13:43:16 UTC+5:30, Pratik Vyas wrote:
>>
>> Hi Satish,
>>
>> I have never encountered this error before. On searching, http://stackoverflow.com/questions/10641201/attributeerror-module-object-has-no-attribute-pydebug is the first result.

>>

>> Can you send the output of

>> which python

>> ?

>>

>> On 16 Nov 2013 13:27, “Satish” <sa…@gmail.com> wrote:

>>>

>>> Hi Pratik,

>>>

>>> Thanks for you help.

>>>

>>> When I run command   ./lib/wnf.py --latest, clear_web and server,  I get the following output:

>>>

>>> er…@SatishG:~/erpnext$ ./lib/wnf.py --latest

>>> Traceback (most recent call last):

>>>   File “/usr/lib/python2.7/site.py”, line 562, in <module>

>>>     main()

>>>   File “/usr/lib/python2.7/site.py”, line 544, in main

>>>     known_paths = addusersitepackages(known_paths)

>>>   File “/usr/lib/python2.7/site.py”, line 271, in addusersitepackages

>>>     user_site = getusersitepackages()

>>>   File “/usr/lib/python2.7/site.py”, line 246, in getusersitepackages

>>>     user_base = getuserbase() # this will also set USER_BASE

>>>   File “/usr/lib/python2.7/site.py”, line 236, in getuserbase

>>>     USER_BASE = get_config_var(‘userbase’)

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 577, in get_config_var

>>>     return get_config_vars().get(name)

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 476, in get_config_vars

>>>     _init_posix(_CONFIG_VARS)

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 337, in _init_posix

>>>     makefile = _get_makefile_filename()

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 331, in _get_makefile_filename

>>>     return os.path.join(get_path(‘platstdlib’).replace(“/usr/local”,“/usr”,1), “config” + (sys.pydebug and “_d” or “”), “Makefile”)

>>> AttributeError: ‘module’ object has no attribute ‘pydebug’

>>>

>>>

>>>

>>> And I am still getting the same Access Denied error.

>>>

>>> Thereafter, I even tried setting up Production setup. However I can’t seem to figure out how to add file   gunicorn.conf  to /etc/supervisor/conf.d/

>>>

>>>

>>> Regards

>>> Satish Gupta

>>>

>>> On Friday, 8 November 2013 17:59:58 UTC+5:30, Pratik Vyas wrote:

>>>>

>>>> Hi Satish,

>>>>

>>>> On Thu, Nov 7, 2013 at 11:54 PM, Satish Gupta

>>>> <sa…@gmail.com> wrote:

>>>> > Thank you all for ur help. But i am out of office till 13 and will be able

>>>> > to try only then. Will let u know if it works. But it seems that that u want

>>>> > apache user to take ownership of files and folder. I have tried that already

>>>> > but it doesnt work.

>>>>

>>>> I think that instead of getting apache to work, you should invest in

>>>> getting the latest master (with wsgi changes) to work. It is worth the

>>>> effort as we will be deprecating the 1310 branch soon.

>>>>

>>>> Copying from rihnorck’s thread,

>>>>

>>>> * Create a new erpnext user,

>>>> * install from latest master,

>>>> * copy the old conf.py (as it will have the database config)

>>>> * run patches and clear web

>>>>

>>>> Assuming that you are on Ubuntu

>>>>

>>>> <br> &gt;&gt;&gt;&gt; sudo adduser erpnext <br> &gt;&gt;&gt;&gt; su - erpnext <br> &gt;&gt;&gt;&gt; # enter password for erpnext <br> &gt;&gt;&gt;&gt; mkdir ~/erpnext <br> &gt;&gt;&gt;&gt; cd ~/erpnext <br> &gt;&gt;&gt;&gt; wget <a href="https://www.google.com/url?q=https%3A%2F%2Fraw.github.com%2Fwebnotes%2Ferpnext%2Fmaster%2Finstall_erpnext.py&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNG46Keb3e3C33snoZF0e0ohx_c6bw" target="_blank">https://raw.github.com/<wbr>webnotes/erpnext/master/<wbr>install_erpnext.py</a> <br> &gt;&gt;&gt;&gt; #enter some random database name <br> &gt;&gt;&gt;&gt; sudo python install_erpnext.py <br> &gt;&gt;&gt;&gt; cp /path/to/old/conf.py conf.py <br> &gt;&gt;&gt;&gt; rm conf.pyc <br> &gt;&gt;&gt;&gt; ./lib/wnf.py --latest <br> &gt;&gt;&gt;&gt; ./lib/wnf.py --clear_web <br> &gt;&gt;&gt;&gt; ./lib/wnf.py --serve <br> &gt;&gt;&gt;&gt;

>>>>

>>>> This should get you up and running on WSGI (current master). Proceed

>>>> with production setup from here,

>>>> https://github.com/webnotes/erpnext/wiki/WSGI-Production-Deployment

>>>>

>>>>

>>>> –

>>>> Pratik

>>>> ERPNext

>>>

>>> –

>>> 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.



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.
Hi Satish,


On Fri, Nov 22, 2013 at 5:50 PM, Satish <sa...@gmail.com> wrote:
Hi

Can someone help me further on this??

Regards

As you are on Ubuntu, I guess that you already are on Python 2.7+ (ie. the /usr/bin/python is also Python 2.7+). The self built python2.7 in /usr/local/bin seems to be the issue as indicated in the StackOverflow answer.

Can you try running `python ./ilb/wnf.py --serve`

On Saturday, 16 November 2013 19:16:01 UTC+5:30, Satish wrote:
Dear Pratik

'which python2.7' returns

/usr/local/bin/python2.7


I ran next command nevertheless... 'python ./lib/wnf.py -b' and the output is

er...@SatishG:~/erpnext$ python ./lib/wnf.py -b
Setting up lang files for el...
Extracting / updating translatable strings...
Writing translations...
Setting up lang files for hr...
Writing translations...
Setting up lang files for pt-BR...
Writing translations...
Setting up lang files for hi...
Writing translations...
Setting up lang files for ta...
Writing translations...
Setting up lang files for it...
Writing translations...
Setting up lang files for th...
Writing translations...
Setting up lang files for ar...
Writing translations...
Setting up lang files for de...
Writing translations...
Setting up lang files for sr...
Writing translations...
Setting up lang files for nl...
Writing translations...
Setting up lang files for pt...
Writing translations...
Setting up lang files for fr...
Writing translations...
Setting up lang files for es...
Writing translations...
Building js and css files...
Wrote public/css/all-web.css - 153k
Wrote public/js/all-web.min.js - 41k
Wrote public/js/editor.min.js - 26k
Wrote public/css/all-app.css - 203k
Wrote public/js/all-app.min.js - 554k
Wrote public/js/slickgrid.min.js - 102k


On Saturday, 16 November 2013 17:41:13 UTC+5:30, Pratik Vyas wrote:


On 16 Nov 2013 15:11, "Satish" <sa...@gmail.com> wrote:
>
> Hi Pratik
>
> which python returns
>
> /usr/bin/python

Nice. Sorry but it occurred to me that the shebang asks for python2.7

Can you send
`which python2.7`

Also if your system python ie /usr/bin/python is 2.7

Can you try
```
python ./lib/wnf.py -b
```
>
>
> Satish
>
>
> On Saturday, 16 November 2013 13:43:16 UTC+5:30, Pratik Vyas wrote:
>>
>> Hi Satish,
>>
>> I have never encountered this error before. On searching, http://stackoverflow.com/questions/10641201/attributeerror-module-object-has-no-attribute-pydebug is the first result.

>>

>> Can you send the output of

>> which python

>> ?

>>

>> On 16 Nov 2013 13:27, "Satish" <sa…@gmail.com> wrote:

>>>

>>> Hi Pratik,

>>>

>>> Thanks for you help.

>>>

>>> When I run command ./lib/wnf.py --latest, clear_web and server, I get the following output:

>>>

>>> er…@SatishG:~/erpnext$ ./lib/wnf.py --latest

>>> Traceback (most recent call last):

>>> File "/usr/lib/python2.7/site.py", line 562, in <module>

>>> main()

>>> File "/usr/lib/python2.7/site.py", line 544, in main

>>> known_paths = addusersitepackages(known_paths)

>>> File "/usr/lib/python2.7/site.py", line 271, in addusersitepackages

>>> user_site = getusersitepackages()

>>> File "/usr/lib/python2.7/site.py", line 246, in getusersitepackages

>>> user_base = getuserbase() # this will also set USER_BASE

>>> File "/usr/lib/python2.7/site.py", line 236, in getuserbase

>>> USER_BASE = get_config_var('userbase')

>>> File "/usr/lib/python2.7/sysconfig.py", line 577, in get_config_var

>>> return get_config_vars().get(name)

>>> File "/usr/lib/python2.7/sysconfig.py", line 476, in get_config_vars

>>> _init_posix(_CONFIG_VARS)

>>> File "/usr/lib/python2.7/sysconfig.py", line 337, in _init_posix

>>> makefile = _get_makefile_filename()

>>> File "/usr/lib/python2.7/sysconfig.py", line 331, in _get_makefile_filename

>>> return os.path.join(get_path('platstdlib').replace("/usr/local","/usr",1), "config" + (sys.pydebug and "_d" or ""), "Makefile")

>>> AttributeError: 'module' object has no attribute 'pydebug'

>>>

>>>

>>>

>>> And I am still getting the same Access Denied error.

>>>

>>> Thereafter, I even tried setting up Production setup. However I can't seem to figure out how to add file gunicorn.conf to /etc/supervisor/conf.d/

>>>

>>>

>>> Regards

>>> Satish Gupta

>>>

>>> On Friday, 8 November 2013 17:59:58 UTC+5:30, Pratik Vyas wrote:

>>>>

>>>> Hi Satish,

>>>>

>>>> On Thu, Nov 7, 2013 at 11:54 PM, Satish Gupta

>>>> <sa…@gmail.com> wrote:

>>>> > Thank you all for ur help. But i am out of office till 13 and will be able

>>>> > to try only then. Will let u know if it works. But it seems that that u want

>>>> > apache user to take ownership of files and folder. I have tried that already

>>>> > but it doesnt work.

>>>>

>>>> I think that instead of getting apache to work, you should invest in

>>>> getting the latest master (with wsgi changes) to work. It is worth the

>>>> effort as we will be deprecating the 1310 branch soon.

>>>>

>>>> Copying from rihnorck's thread,

>>>>

>>>> * Create a new erpnext user,

>>>> * install from latest master,

>>>> * copy the old conf.py (as it will have the database config)

>>>> * run patches and clear web

>>>>

>>>> Assuming that you are on Ubuntu

>>>>

>>>> ```

>>>> sudo adduser erpnext

>>>> su - erpnext

>>>> # enter password for erpnext

>>>> mkdir ~/erpnext

>>>> cd ~/erpnext

>>>> wget https://raw.github.com/webnotes/erpnext/master/install_erpnext.py

>>>> #enter some random database name

>>>> sudo python install_erpnext.py

>>>> cp /path/to/old/conf.py conf.py

>>>> rm conf.pyc

>>>> ./lib/wnf.py --latest

>>>> ./lib/wnf.py --clear_web

>>>> ./lib/wnf.py --serve

>>>> ```

>>>>

>>>> This should get you up and running on WSGI (current master). Proceed

>>>> with production setup from here,

>>>> https://github.com/webnotes/erpnext/wiki/WSGI-Production-Deployment

>>>>

>>>>

>>>> –

>>>> Pratik

>>>> ERPNext

>>>

>>> –

>>> 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.



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
ERPNext
Hi Pratik,

Thanks. It is working now. It is now on port 8000.
However, I can't access it over the network. I believe I need to make some settings for it but don't know what to change.

Also, can you explain a little what is Production Setup.
I mean, since it is working now, do we still need to go with production setup?

Regards
Satish Gupta

On Saturday, 23 November 2013 14:49:24 UTC+5:30, Pratik Vyas wrote:
Hi Satish,


On Fri, Nov 22, 2013 at 5:50 PM, Satish <sa...@gmail.com> wrote:
Hi

Can someone help me further on this??

Regards

As you are on Ubuntu, I guess that you already are on Python 2.7+ (ie. the /usr/bin/python is also Python 2.7+). The self built python2.7 in /usr/local/bin seems to be the issue as indicated in the StackOverflow answer.

Can you try running `python ./ilb/wnf.py --serve`

On Saturday, 16 November 2013 19:16:01 UTC+5:30, Satish wrote:
Dear Pratik

'which python2.7'  returns

/usr/local/bin/python2.7


I ran next command nevertheless...  'python ./lib/wnf.py -b'  and the output is

er...@SatishG:~/erpnext$ python ./lib/wnf.py -b
Setting up lang files for el...
Extracting / updating translatable strings...
Writing translations...
Setting up lang files for hr...
Writing translations...
Setting up lang files for pt-BR...
Writing translations...
Setting up lang files for hi...
Writing translations...
Setting up lang files for ta...
Writing translations...
Setting up lang files for it...
Writing translations...
Setting up lang files for th...
Writing translations...
Setting up lang files for ar...
Writing translations...
Setting up lang files for de...
Writing translations...
Setting up lang files for sr...
Writing translations...
Setting up lang files for nl...
Writing translations...
Setting up lang files for pt...
Writing translations...
Setting up lang files for fr...
Writing translations...
Setting up lang files for es...
Writing translations...
Building js and css files...
Wrote public/css/all-web.css - 153k
Wrote public/js/all-web.min.js - 41k
Wrote public/js/editor.min.js - 26k
Wrote public/css/all-app.css - 203k
Wrote public/js/all-app.min.js - 554k
Wrote public/js/slickgrid.min.js - 102k


On Saturday, 16 November 2013 17:41:13 UTC+5:30, Pratik Vyas wrote:


On 16 Nov 2013 15:11, "Satish" <sa...@gmail.com> wrote:
>
> Hi Pratik
>
> which python returns
>
> /usr/bin/python

Nice. Sorry but it occurred to me that the shebang asks for python2.7

Can you send
`which python2.7`

Also if your system python ie /usr/bin/python is 2.7

Can you try
```
python ./lib/wnf.py -b
```
>
>
> Satish
>
>
> On Saturday, 16 November 2013 13:43:16 UTC+5:30, Pratik Vyas wrote:
>>
>> Hi Satish,
>>
>> I have never encountered this error before. On searching, http://stackoverflow.com/questions/10641201/attributeerror-module-object-has-no-attribute-pydebug is the first result.

>>

>> Can you send the output of

>> which python

>> ?

>>

>> On 16 Nov 2013 13:27, “Satish” <sa…@gmail.com> wrote:

>>>

>>> Hi Pratik,

>>>

>>> Thanks for you help.

>>>

>>> When I run command   ./lib/wnf.py --latest, clear_web and server,  I get the following output:

>>>

>>> er…@SatishG:~/erpnext$ ./lib/wnf.py --latest

>>> Traceback (most recent call last):

>>>   File “/usr/lib/python2.7/site.py”, line 562, in <module>

>>>     main()

>>>   File “/usr/lib/python2.7/site.py”, line 544, in main

>>>     known_paths = addusersitepackages(known_paths)

>>>   File “/usr/lib/python2.7/site.py”, line 271, in addusersitepackages

>>>     user_site = getusersitepackages()

>>>   File “/usr/lib/python2.7/site.py”, line 246, in getusersitepackages

>>>     user_base = getuserbase() # this will also set USER_BASE

>>>   File “/usr/lib/python2.7/site.py”, line 236, in getuserbase

>>>     USER_BASE = get_config_var(‘userbase’)

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 577, in get_config_var

>>>     return get_config_vars().get(name)

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 476, in get_config_vars

>>>     _init_posix(_CONFIG_VARS)

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 337, in _init_posix

>>>     makefile = _get_makefile_filename()

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 331, in _get_makefile_filename

>>>     return os.path.join(get_path(‘platstdlib’).replace(“/usr/local”,“/usr”,1), “config” + (sys.pydebug and “_d” or “”), “Makefile”)

>>> AttributeError: ‘module’ object has no attribute ‘pydebug’

>>>

>>>

>>>

>>> And I am still getting the same Access Denied error.

>>>

>>> Thereafter, I even tried setting up Production setup. However I can’t seem to figure out how to add file   gunicorn.conf  to /etc/supervisor/conf.d/

>>>

>>>

>>> Regards

>>> Satish Gupta

>>>

>>> On Friday, 8 November 2013 17:59:58 UTC+5:30, Pratik Vyas wrote:

>>>>

>>>> Hi Satish,

>>>>

>>>> On Thu, Nov 7, 2013 at 11:54 PM, Satish Gupta

>>>> <sa…@gmail.com> wrote:

>>>> > Thank you all for ur help. But i am out of office till 13 and will be able

>>>> > to try only then. Will let u know if it works. But it seems that that u want

>>>> > apache user to take ownership of files and folder. I have tried that already

>>>> > but it doesnt work.

>>>>

>>>> I think that instead of getting apache to work, you should invest in

>>>> getting the latest master (with wsgi changes) to work. It is worth the

>>>> effort as we will be deprecating the 1310 branch soon.

>>>>

>>>> Copying from rihnorck’s thread,

>>>>

>>>> * Create a new erpnext user,

>>>> * install from latest master,

>>>> * copy the old conf.py (as it will have the database config)

>>>> * run patches and clear web

>>>>

>>>> Assuming that you are on Ubuntu

>>>>

>>>> ```

>>>> sudo adduser erpnext

>>>> su - erpnext

>>>> # enter password for erpnext

>>>> mkdir ~/erpnext

>>>> cd ~/erpnext

>>>> wget https://raw.github.com/webnotes/erpnext/master/install_erpnext.py

>>>> #enter some random database name

>>>> sudo python install_erpnext.py

>>>> cp /path/to/old/conf.py conf.py

>>>> rm conf.pyc

>>>> ./lib/wnf.py --latest

>>>> ./lib/wnf.py --clear_web

>>>> ./lib/wnf.py --serve

>>>> ```

>>>>

>>>> This should get you up and running on WSGI (current master). Proceed

>>>> with production setup from here,

>>>> https://github.com/webnotes/erpnext/wiki/WSGI-Production-Deployment

>>>>

>>>>

>>>> –

>>>> Pratik

>>>> ERPNext

>>>

>>> –

>>> 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+unsubscr…@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+unsubscr…@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.




--
Pratik
ERPNext



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.
Hi Pratik,

Thanks for your prompt support.
Can you help me on this one last bit.

Regards

On Saturday, 23 November 2013 19:15:28 UTC+5:30, Satish wrote:
Hi Pratik,

Thanks. It is working now. It is now on port 8000.
However, I can't access it over the network. I believe I need to make some settings for it but don't know what to change.

Also, can you explain a little what is Production Setup.
I mean, since it is working now, do we still need to go with production setup?

Regards
Satish Gupta

On Saturday, 23 November 2013 14:49:24 UTC+5:30, Pratik Vyas wrote:
Hi Satish,


On Fri, Nov 22, 2013 at 5:50 PM, Satish <sa...@gmail.com> wrote:
Hi

Can someone help me further on this??

Regards

As you are on Ubuntu, I guess that you already are on Python 2.7+ (ie. the /usr/bin/python is also Python 2.7+). The self built python2.7 in /usr/local/bin seems to be the issue as indicated in the StackOverflow answer.

Can you try running `python ./ilb/wnf.py --serve`

On Saturday, 16 November 2013 19:16:01 UTC+5:30, Satish wrote:
Dear Pratik

'which python2.7'  returns

/usr/local/bin/python2.7


I ran next command nevertheless...  'python ./lib/wnf.py -b'  and the output is

er...@SatishG:~/erpnext$ python ./lib/wnf.py -b
Setting up lang files for el...
Extracting / updating translatable strings...
Writing translations...
Setting up lang files for hr...
Writing translations...
Setting up lang files for pt-BR...
Writing translations...
Setting up lang files for hi...
Writing translations...
Setting up lang files for ta...
Writing translations...
Setting up lang files for it...
Writing translations...
Setting up lang files for th...
Writing translations...
Setting up lang files for ar...
Writing translations...
Setting up lang files for de...
Writing translations...
Setting up lang files for sr...
Writing translations...
Setting up lang files for nl...
Writing translations...
Setting up lang files for pt...
Writing translations...
Setting up lang files for fr...
Writing translations...
Setting up lang files for es...
Writing translations...
Building js and css files...
Wrote public/css/all-web.css - 153k
Wrote public/js/all-web.min.js - 41k
Wrote public/js/editor.min.js - 26k
Wrote public/css/all-app.css - 203k
Wrote public/js/all-app.min.js - 554k
Wrote public/js/slickgrid.min.js - 102k


On Saturday, 16 November 2013 17:41:13 UTC+5:30, Pratik Vyas wrote:


On 16 Nov 2013 15:11, "Satish" <sa...@gmail.com> wrote:
>
> Hi Pratik
>
> which python returns
>
> /usr/bin/python

Nice. Sorry but it occurred to me that the shebang asks for python2.7

Can you send
`which python2.7`

Also if your system python ie /usr/bin/python is 2.7

Can you try
```
python ./lib/wnf.py -b
```
>
>
> Satish
>
>
> On Saturday, 16 November 2013 13:43:16 UTC+5:30, Pratik Vyas wrote:
>>
>> Hi Satish,
>>
>> I have never encountered this error before. On searching, http://stackoverflow.com/questions/10641201/attributeerror-module-object-has-no-attribute-pydebug is the first result.

>>

>> Can you send the output of

>> which python

>> ?

>>

>> On 16 Nov 2013 13:27, “Satish” <sa…@gmail.com> wrote:

>>>

>>> Hi Pratik,

>>>

>>> Thanks for you help.

>>>

>>> When I run command   ./lib/wnf.py --latest, clear_web and server,  I get the following output:

>>>

>>> er…@SatishG:~/erpnext$ ./lib/wnf.py --latest

>>> Traceback (most recent call last):

>>>   File “/usr/lib/python2.7/site.py”, line 562, in <module>

>>>     main()

>>>   File “/usr/lib/python2.7/site.py”, line 544, in main

>>>     known_paths = addusersitepackages(known_paths)

>>>   File “/usr/lib/python2.7/site.py”, line 271, in addusersitepackages

>>>     user_site = getusersitepackages()

>>>   File “/usr/lib/python2.7/site.py”, line 246, in getusersitepackages

>>>     user_base = getuserbase() # this will also set USER_BASE

>>>   File “/usr/lib/python2.7/site.py”, line 236, in getuserbase

>>>     USER_BASE = get_config_var(‘userbase’)

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 577, in get_config_var

>>>     return get_config_vars().get(name)

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 476, in get_config_vars

>>>     _init_posix(_CONFIG_VARS)

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 337, in _init_posix

>>>     makefile = _get_makefile_filename()

>>>   File “/usr/lib/python2.7/sysconfig.py”, line 331, in _get_makefile_filename

>>>     return os.path.join(get_path(‘platstdlib’).replace(“/usr/local”,“/usr”,1), “config” + (sys.pydebug and “_d” or “”), “Makefile”)

>>> AttributeError: ‘module’ object has no attribute ‘pydebug’

>>>

>>>

>>>

>>> And I am still getting the same Access Denied error.

>>>

>>> Thereafter, I even tried setting up Production setup. However I can’t seem to figure out how to add file   gunicorn.conf  to /etc/supervisor/conf.d/

>>>

>>>

>>> Regards

>>> Satish Gupta

>>>

>>> On Friday, 8 November 2013 17:59:58 UTC+5:30, Pratik Vyas wrote:

>>>>

>>>> Hi Satish,

>>>>

>>>> On Thu, Nov 7, 2013 at 11:54 PM, Satish Gupta

>>>> <sa…@gmail.com> wrote:

>>>> > Thank you all for ur help. But i am out of office till 13 and will be able

>>>> > to try only then. Will let u know if it works. But it seems that that u want

>>>> > apache user to take ownership of files and folder. I have tried that already

>>>> > but it doesnt work.

>>>>

>>>> I think that instead of getting apache to work, you should invest in

>>>> getting the latest master (with wsgi changes) to work. It is worth the

>>>> effort as we will be deprecating the 1310 branch soon.

>>>>

>>>> Copying from rihnorck’s thread,

>>>>

>>>> * Create a new erpnext user,

>>>> * install from latest master,

>>>> * copy the old conf.py (as it will have the database config)

>>>> * run patches and clear web

>>>>

>>>> Assuming that you are on Ubuntu

>>>>

>>>> ```

>>>> sudo adduser erpnext

>>>> su - erpnext

>>>> # enter password for erpnext

>>>> mkdir ~/erpnext

>>>> cd ~/erpnext

>>>> wget https://raw.github.com/webnotes/erpnext/master/install_erpnext.py

>>>> #enter some random database name

>>>> sudo python install_erpnext.py

>>>> cp /path/to/old/conf.py conf.py

>>>> rm conf.pyc

>>>> ./lib/wnf.py --latest

>>>> ./lib/wnf.py --clear_web

>>>> ./lib/wnf.py --serve

>>>> ```

>>>>

>>>> This should get you up and running on WSGI (current master). Proceed

>>>> with production setup from here,

>>>> https://github.com/webnotes/erpnext/wiki/WSGI-Production-Deployment

>>>>

>>>>

>>>> –

>>>> Pratik

>>>> ERPNext

>>>

>>> –

>>> 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+unsubscr…@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+unsubscr…@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.




--
Pratik
ERPNext



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.
Hi Satish,

If you are going to use ERPNext for production use (ie. not for development and testing), you should go for production setup.

Also, I believe that `./lib/wnf.py --serve` binds to 0.0.0.0:8000 ie, it should be accessable over the network.


On Fri, Nov 29, 2013 at 11:27 AM, Satish <sa...@gmail.com> wrote:
Hi Pratik,

Thanks for your prompt support.
Can you help me on this one last bit.

Regards


On Saturday, 23 November 2013 19:15:28 UTC+5:30, Satish wrote:
Hi Pratik,

Thanks. It is working now. It is now on port 8000.
However, I can't access it over the network. I believe I need to make some settings for it but don't know what to change.

Also, can you explain a little what is Production Setup.
I mean, since it is working now, do we still need to go with production setup?

Regards
Satish Gupta

On Saturday, 23 November 2013 14:49:24 UTC+5:30, Pratik Vyas wrote:
Hi Satish,


On Fri, Nov 22, 2013 at 5:50 PM, Satish <sa...@gmail.com> wrote:
Hi

Can someone help me further on this??

Regards

As you are on Ubuntu, I guess that you already are on Python 2.7+ (ie. the /usr/bin/python is also Python 2.7+). The self built python2.7 in /usr/local/bin seems to be the issue as indicated in the StackOverflow answer.


Can you try running python ./ilb/wnf.py --serve


On Saturday, 16 November 2013 19:16:01 UTC+5:30, Satish wrote:

Dear Pratik

'which python2.7' returns

/usr/local/bin/python2.7


I ran next command nevertheless... 'python ./lib/wnf.py -b' and the output is

er...@SatishG:~/erpnext$ python ./lib/wnf.py -b

Setting up lang files for el…
Extracting / updating translatable strings…
Writing translations…
Setting up lang files for hr…
Writing translations…
Setting up lang files for pt-BR…
Writing translations…

Setting up lang files for hi…
Writing translations…
Setting up lang files for ta…
Writing translations…
Setting up lang files for it…
Writing translations…
Setting up lang files for th…

Writing translations…
Setting up lang files for ar…
Writing translations…
Setting up lang files for de…
Writing translations…
Setting up lang files for sr…
Writing translations…
Setting up lang files for nl…

Writing translations…
Setting up lang files for pt…
Writing translations…
Setting up lang files for fr…
Writing translations…
Setting up lang files for es…
Writing translations…
Building js and css files…

Wrote public/css/all-web.css - 153k
Wrote public/js/all-web.min.js - 41k
Wrote public/js/editor.min.js - 26k
Wrote public/css/all-app.css - 203k
Wrote public/js/all-app.min.js - 554k
Wrote public/js/slickgrid.min.js - 102k



On Saturday, 16 November 2013 17:41:13 UTC+5:30, Pratik Vyas wrote:



On 16 Nov 2013 15:11, "Satish" <sa…@gmail.com> wrote:

>

> Hi Pratik

>

> which python returns

>

> /usr/bin/python

Nice. Sorry but it occurred to me that the shebang asks for python2.7

Can you send
`which python2.7`

Also if your system python ie /usr/bin/python is 2.7

Can you try
```
python ./lib/wnf.py -b
```
>
>
> Satish
>
>
> On Saturday, 16 November 2013 13:43:16 UTC+5:30, Pratik Vyas wrote:
>>
>> Hi Satish,
>>
>> I have never encountered this error before. On searching, http://stackoverflow.com/questions/10641201/attributeerror-module-object-has-no-attribute-pydebug is the first result.

>>

>> Can you send the output of

>> which python

>> ?

>>

>> On 16 Nov 2013 13:27, "Satish" <sa…@gmail.com> wrote:

>>>

>>> Hi Pratik,

>>>

>>> Thanks for you help.

>>>

>>> When I run command ./lib/wnf.py --latest, clear_web and server, I get the following output:

>>>

>>> er…@SatishG:~/erpnext$ ./lib/wnf.py --latest

>>> Traceback (most recent call last):

>>> File "/usr/lib/python2.7/site.py", line 562, in <module>

>>> main()

>>> File "/usr/lib/python2.7/site.py", line 544, in main

>>> known_paths = addusersitepackages(known_paths)

>>> File "/usr/lib/python2.7/site.py", line 271, in addusersitepackages

>>> user_site = getusersitepackages()

>>> File "/usr/lib/python2.7/site.py", line 246, in getusersitepackages

>>> user_base = getuserbase() # this will also set USER_BASE

>>> File "/usr/lib/python2.7/site.py", line 236, in getuserbase

>>> USER_BASE = get_config_var('userbase')

>>> File "/usr/lib/python2.7/sysconfig.py", line 577, in get_config_var

>>> return get_config_vars().get(name)

>>> File "/usr/lib/python2.7/sysconfig.py", line 476, in get_config_vars

>>> _init_posix(_CONFIG_VARS)

>>> File "/usr/lib/python2.7/sysconfig.py", line 337, in _init_posix

>>> makefile = _get_makefile_filename()

>>> File "/usr/lib/python2.7/sysconfig.py", line 331, in _get_makefile_filename

>>> return os.path.join(get_path('platstdlib').replace("/usr/local","/usr",1), "config" + (sys.pydebug and "_d" or ""), "Makefile")

>>> AttributeError: 'module' object has no attribute 'pydebug'

>>>

>>>

>>>

>>> And I am still getting the same Access Denied error.

>>>

>>> Thereafter, I even tried setting up Production setup. However I can't seem to figure out how to add file gunicorn.conf to /etc/supervisor/conf.d/

>>>

>>>

>>> Regards

>>> Satish Gupta

>>>

>>> On Friday, 8 November 2013 17:59:58 UTC+5:30, Pratik Vyas wrote:

>>>>

>>>> Hi Satish,

>>>>

>>>> On Thu, Nov 7, 2013 at 11:54 PM, Satish Gupta

>>>> <sa…@gmail.com> wrote:

>>>> > Thank you all for ur help. But i am out of office till 13 and will be able

>>>> > to try only then. Will let u know if it works. But it seems that that u want

>>>> > apache user to take ownership of files and folder. I have tried that already

>>>> > but it doesnt work.

>>>>

>>>> I think that instead of getting apache to work, you should invest in

>>>> getting the latest master (with wsgi changes) to work. It is worth the

>>>> effort as we will be deprecating the 1310 branch soon.

>>>>

>>>> Copying from rihnorck's thread,

>>>>

>>>> * Create a new erpnext user,

>>>> * install from latest master,

>>>> * copy the old conf.py (as it will have the database config)

>>>> * run patches and clear web

>>>>

>>>> Assuming that you are on Ubuntu

>>>>

>>>> ```

>>>> sudo adduser erpnext

>>>> su - erpnext

>>>> # enter password for erpnext

>>>> mkdir ~/erpnext

>>>> cd ~/erpnext

>>>> wget https://raw.github.com/webnotes/erpnext/master/install_erpnext.py

>>>> #enter some random database name

>>>> sudo python install_erpnext.py

>>>> cp /path/to/old/conf.py conf.py

>>>> rm conf.pyc

>>>> ./lib/wnf.py --latest

>>>> ./lib/wnf.py --clear_web

>>>> ./lib/wnf.py --serve

>>>> ```

>>>>

>>>> This should get you up and running on WSGI (current master). Proceed

>>>> with production setup from here,

>>>> https://github.com/webnotes/erpnext/wiki/WSGI-Production-Deployment

>>>>

>>>>

>>>> –

>>>> Pratik

>>>> ERPNext

>>>

>>> –

>>> 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+unsubscr…@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+unsubscr…@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.




--
Pratik
ERPNext



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