update issue

28 views
Skip to first unread message

gangadhar kadam

unread,
Jun 1, 2013, 5:23:03 AM6/1/13
to erpnext-dev...@googlegroups.com
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

Anand Doshi

unread,
Jun 1, 2013, 8:05:35 AM6/1/13
to erpnext-dev...@googlegroups.com, erpnext-dev...@googlegroups.com
There are unresolved merge conflicts in  timesheet.py


Sent from my phone
--
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...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/dfa92fd0-fce8-45f1-93c1-ea7e94cfbf71%40googlegroups.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

गंगाधर कदम

unread,
Jun 3, 2013, 1:53:29 AM6/3/13
to erpnext-dev...@googlegroups.com
Thank you for you reply,
 I took updated again resolving timesheet.py conflict and i got following error on terminal

gangadhar@gangadhar-Satellite-L45:/var/www/nmtn$ sudo lib/wnf.py --update upstream master
From git://github.com/webnotes/wnframework
 * branch            master     -> FETCH_HEAD
Already up-to-date.
From git://github.com/webnotes/erpnext
 * branch            master     -> FETCH_HEAD
Already up-to-date.
/var/www/nmtn/lib/webnotes/widgets/reportview.py:199: SyntaxWarning: name 'tables' is used prior to global declaration
  global tables


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 55, in execute
    tl.doc.insert()
  File "/var/www/nmtn/lib/webnotes/model/doc.py", line 413, in insert
    self.save()
  File "/var/www/nmtn/lib/webnotes/model/doc.py", line 408, in save
    keep_timestamps=keep_timestamps)
  File "/var/www/nmtn/lib/webnotes/model/doc.py", line 362, in _update_values
    (self.doctype, ', '.join(update_str), "%s"), values)
  File "/var/www/nmtn/lib/webnotes/db.py", line 130, in sql
    raise e
 OperationalError: (1054, "Unknown column 'store' in 'field list'")

patches.february_2013.p09_timesheets: failed: STOPPED
Building js and css files...
Wrote public/js/report-legacy.min.js - 43k
Wrote public/css/all-web.css - 155k
Wrote public/css/all-app.css - 201k
Wrote public/js/all-web.min.js - 33k
Wrote public/js/all-app.min.js - 548k
Wrote public/js/slickgrid.min.js - 108k
#14 Time Log Batch: Options Time Log Batch must be a valid "DocType" for Link and Table type fields
#14 Time Log Batch: Options Time Log Batch must be a valid "DocType" for Link and Table type fields

where store is custom doctype . When i run the application i got following error not login page



<type 'exceptions.ImportError'>    Python 2.7.3: /usr/bin/python
Mon Jun 3 11:13:54 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'

How to trace such issues?

Regards,
Gangadhar kadam


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



--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444

Software Engineer,
New Indictrans Technologies Pvt. Ltd., Pune


SAVE TREES - Please consider the environment before printing this email.

SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping  prevent global warming by reducing consumption of power... ARE YOU?

Rushabh Mehta

unread,
Jun 3, 2013, 2:01:38 AM6/3/13
to erpnext-dev...@googlegroups.com
Gangadhar,

Did you try googling these issues?

I think the error messages are quite clear, your database, schema and code are not in sync. You will have to look into this issue by issue and fix it.

best,
Rushabh


W: https://erpnext.com
T: @rushabh_mehta

Reply all
Reply to author
Forward
0 new messages