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