Hello Sir,
I have pushed my code on git fork at
https://github.com/gangadhar-kadam/mtn-erpnext.git and
https://github.com/gangadhar-kadam/mtn-wnframework.git I have committed my local changes and tried to update and got error message below,
Executing patches.february_2013.p09_timesheets in nmtn
Traceback (innermost last):
File "/var/www/nmtn/lib/webnotes/modules/patch_handler.py", line 74, in execute_patch
webnotes.get_method(patchmodule + ".execute")()
File "app/patches/february_2013/p09_timesheets.py", line 22, in execute
ts = webnotes.bean("Timesheet", name)
File "/var/www/nmtn/lib/webnotes/__init__.py", line 321, in bean
return Bean(doctype, name)
File "/var/www/nmtn/lib/webnotes/model/bean.py", line 55, in __init__
self.load_from_db(dt, dn)
File "/var/www/nmtn/lib/webnotes/model/bean.py", line 81, in load_from_db
self.run_method("onload")
File "/var/www/nmtn/lib/webnotes/model/bean.py", line 215, in run_method
self.make_obj()
File "/var/www/nmtn/lib/webnotes/model/bean.py", line 104, in make_obj
self.obj = webnotes.get_obj(doc=self.doc, doclist=self.doclist)
File "/var/www/nmtn/lib/webnotes/__init__.py", line 306, in get_obj
return get_obj(dt, dn, doc, doclist, with_children)
File "/var/www/nmtn/lib/webnotes/model/code.py", line 156, in get_obj
return get_server_obj(doc, doclist)
File "/var/www/nmtn/lib/webnotes/model/code.py", line 101, in get_server_obj
DocType = get_doctype_class(doc.doctype, module)
File "/var/www/nmtn/lib/webnotes/model/code.py", line 118, in get_doctype_class
module = load_doctype_module(doctype, module)
File "/var/www/nmtn/lib/webnotes/model/code.py", line 140, in load_doctype_module
module = __import__(get_module_name(doctype, module, prefix), fromlist=[''])
File "app/projects/doctype/timesheet/timesheet.py", line 97
<<<<<<< HEAD
When i run the application i got error below
<type 'exceptions.ImportError'> Python 2.7.3: /usr/bin/python
Sat Jun 1 14:04:08 2013
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/www/nmtn/public/web.py in ()
44 return website.utils.render(webnotes.form_dict.get('page'))
45
46 if __name__=="__main__":
47 init()
=> 48 respond()
respond = <function respond>
/var/www/nmtn/public/web.py in respond()
41 def respond():
42 import webnotes
=> 43 import website.utils
44 return website.utils.render(webnotes.form_dict.get('page'))
45
website undefined
<type 'exceptions.ImportError'>: Bad magic number in ../app/website/utils.pyc
args = ('Bad magic number in ../app/website/utils.pyc',)
message = 'Bad magic number in ../app/website/utils.pyc'
i dont displayed login page also.
What should i do?
Thank you.
Regards
Gangadhar kadam