Update error

61 views
Skip to first unread message

Hernan Gonzalez

unread,
Jan 23, 2013, 11:00:18 AM1/23/13
to erpnext-dev...@googlegroups.com
I get the following error while updating.

nuco@server:/var/www/erpnext$ sudo lib/wnf.py --update origin 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.

Traceback (most recent call last):
  File "lib/wnf.py", line 485, in <module>
    run()
  File "lib/wnf.py", line 405, in run
    update_erpnext(options.update[0], options.update[1])
  File "lib/wnf.py", line 77, in update_erpnext
    patch_sync_build()
  File "lib/wnf.py", line 80, in patch_sync_build
    patch_sync()
  File "lib/wnf.py", line 91, in patch_sync
    sync_all()
  File "lib/wnf.py", line 73, in sync_all
    webnotes.model.sync.sync_all(force)
  File "/var/www/erpnext/lib/webnotes/model/sync.py", line 13, in sync_all
    sync_for("app", force)
  File "/var/www/erpnext/lib/webnotes/model/sync.py", line 18, in sync_for
    folder), force, sync_everything)
  File "/var/www/erpnext/lib/webnotes/model/sync.py", line 39, in walk_and_sync
    sync_doctype(module_name, name, force)
  File "/var/www/erpnext/lib/webnotes/model/sync.py", line 52, in sync_doctype
    doclist = peval_doclist(f.read())
  File "/var/www/erpnext/lib/webnotes/modules/utils.py", line 171, in peval_doclist
    return uncommonify_doclist(eval(txt))
  File "<string>", line 59
    {
    ^
SyntaxError: invalid syntax



What shoul i do, the system is still usable.

Rushabh Mehta

unread,
Jan 23, 2013, 11:24:52 AM1/23/13
to erpnext-dev...@googlegroups.com
Update again. This error was fixed. There are a lot of updates. Will post a note bit later.

Sent from mobile
--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/UPKh26ABrnUJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Rushabh Mehta

unread,
Jan 23, 2013, 12:02:27 PM1/23/13
to erpnext-dev...@googlegroups.com
Sorry had not pushed, please update now.


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

On 23-Jan-2013, at 9:30 PM, Hernan Gonzalez <nuco....@gmail.com> wrote:

Hernan Gonzalez

unread,
Jan 23, 2013, 12:18:35 PM1/23/13
to erpnext-dev...@googlegroups.com
Works great, the currency selection is Awesome
To unsubscribe from this group, send email to erpnext-developer-forum+unsub...@googlegroups.com.

electromania

unread,
Jan 28, 2013, 8:11:57 PM1/28/13
to erpnext-dev...@googlegroups.com
Hi,

Getting this error after update and blank page after login

Traceback (most recent call last):
  File "lib/wnf.py", line 434, in <module>
    append_future_import()
  File "lib/wnf.py", line 388, in run
   
  File "lib/wnf.py", line 102, in update_erpnext
    import conf
  File "lib/wnf.py", line 105, in patch_sync_build
    conf_path = conf_path[:-1]
  File "lib/wnf.py", line 116, in patch_sync
   
  File "lib/wnf.py", line 98, in sync_all
   
  File "/var/www/erpnext/lib/webnotes/model/sync.py", line 12, in sync_all
    sync_for("lib", force)

  File "/var/www/erpnext/lib/webnotes/model/sync.py", line 18, in sync_for
    folder), force, sync_everything)
  File "/var/www/erpnext/lib/webnotes/model/sync.py", line 39, in walk_and_sync
    sync_doctype(module_name, name, force)
  File "/var/www/erpnext/lib/webnotes/model/sync.py", line 52, in sync_doctype
    doclist = peval_doclist(f.read())
  File "/var/www/erpnext/lib/webnotes/modules/utils.py", line 171, in peval_doclist
    return uncommonify_doclist(eval(txt))
  File "/var/www/erpnext/lib/webnotes/modules/utils.py", line 134, in uncommonify_doclist
    common_dict = webnotes._dict()
AttributeError: 'module' object has no attribute '_dict'

Anand Doshi

unread,
Jan 28, 2013, 9:52:25 PM1/28/13
to ERPNext Developer's Forum

Hi,

Just run the update again.

If you have pulled the update after a long time, there will be changes in the webnotes/__init__.py file. While running update, it didn't reload with the new changes. Running update again should work.

Thanks,
Anand.

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

electromania

unread,
Jan 28, 2013, 11:34:57 PM1/28/13
to erpnext-dev...@googlegroups.com
Getting this error now

id@PingERPNext:/var/www/erpnext$ sudo lib/wnf.py --update origin 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.
Traceback (most recent call last):
  File "lib/wnf.py", line 494, in <module>

    run()
  File "lib/wnf.py", line 405, in run
    update_erpnext(options.update[0], options.update[1])
  File "lib/wnf.py", line 77, in update_erpnext
    patch_sync_build()
  File "lib/wnf.py", line 80, in patch_sync_build
    patch_sync()
  File "lib/wnf.py", line 84, in patch_sync
    apply_latest_patches()
  File "lib/wnf.py", line 68, in apply_latest_patches
    webnotes.modules.patch_handler.run_all()
  File "/var/www/erpnext/lib/webnotes/modules/patch_handler.py", line 45, in run_all
    if not run_single(patchmodule = patch):
  File "/var/www/erpnext/lib/webnotes/modules/patch_handler.py", line 58, in run_single
    if force or method or not executed(patchmodule):
  File "/var/www/erpnext/lib/webnotes/modules/patch_handler.py", line 113, in executed
    done = webnotes.conn.sql("""select patch from __PatchLog where patch=%s""", patchmodule)
  File "/var/www/erpnext/lib/webnotes/db.py", line 111, in sql
    raise e
_mysql_exceptions.ProgrammingError: (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \': "\'patches.jan_mar_2012\'", u\'patch_file\': "\'stable_branch_shift_09_01_12\'", u\'d\' at line 1')


Anand Doshi

unread,
Jan 28, 2013, 11:42:19 PM1/28/13
to ERPNext Developer's Forum

Hi,

It seems that you are working on your own fork of erpnext, are you?

Thanks,
Anand.

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

electromania

unread,
Jan 28, 2013, 11:48:26 PM1/28/13
to erpnext-dev...@googlegroups.com
Hi,

Yes I've install ERPNext on Ubuntu myself.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.

Anand Doshi

unread,
Jan 28, 2013, 11:53:29 PM1/28/13
to erpnext-dev...@googlegroups.com
Hi,

Which folders do you see in your erpnext folder?

-Anand.

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.

electromania

unread,
Jan 28, 2013, 11:56:36 PM1/28/13
to erpnext-dev...@googlegroups.com
Hi,

accounts, app, buying, home, hr, lib, logs, patches, production, projects, public, sandbox, selling, setup, startup, stock, support, utilities, website.

Above are all the folder and I have few files conf.py, conf.pyc, install_erpnext.py, license.txt, master.sql.gz.

Anand Doshi

unread,
Jan 29, 2013, 12:03:27 AM1/29/13
to erpnext-dev...@googlegroups.com
alright. Found the issue. It seems that you haven't updated for a long time. The whole directory structure has changed.

Make sure that you backup your database before the update using:
lib/wnf.py --backup

Follow the steps in the upgrade section:

thanks,
Anand.

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.
Reply all
Reply to author
Forward
0 new messages