While Updating :(ValueError: Expecting property name: line 2 column 1 (char 2) ) Error

72 views
Skip to first unread message

anand...@indictranstech.com

unread,
Aug 21, 2014, 5:54:03 AM8/21/14
to erpnext-dev...@googlegroups.com
Hello All,
    
     I am updating Old ERPNext 4 to latest.
     Commands i have  executed are
     i committed my code and then i entered update command as below  
     /frappe-bench$. /scripts/update.sh 

Below is the console output i got.

(env)prashant@prashant-PC:~/erpnext_test/frappe-bench$ ./scripts/update.sh

Already up-to-date.

updating apps/erpnext

From https://github.com/frappe/erpnext

* branch            HEAD       -> FETCH_HEAD

Current branch HEAD is up to date.

/home/prashant/erpnext_test/frappe-bench

updating apps/frappe

remote: Counting objects: 4358, done.

remote: Compressing objects: 100% (1744/1744), done.

remote: Total 4358 (delta 3085), reused 3582 (delta 2592)

Receiving objects: 100% (4358/4358), 2.34 MiB | 13 KiB/s, done.

Resolving deltas: 100% (3085/3085), done.

From https://github.com/frappe/frappe

* branch            HEAD       -> FETCH_HEAD

First, rewinding head to replay your work on top of it...

Applying: init

Applying: init

Applying: init

/home/prashant/erpnext_test/frappe-bench

updating apps/shopping_cart

From https://github.com/frappe/shopping-cart

* branch            HEAD       -> FETCH_HEAD

Current branch master is up to date.

/home/prashant/erpnext_test/frappe-bench


Running latest for testsetup

--------------------------------------------------

Executing erpnext.patches.v4_0.reset_permissions_for_masters in testsetup (testdb)

Error resetting perms for Selling Settings

Traceback (most recent call last):

 File "/home/prashant/erpnext_test/frappe-bench/env/bin/frappe", line 9, in <module>

   load_entry_point('frappe==4.0.1', 'console_scripts', 'frappe')()

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main

   ret = run(fn, args)

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run

   out = globals().get(fn)(**args)

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn

   return fn(*args, **new_kwargs)

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/cli.py", line 422, in latest

   frappe.modules.patch_handler.run_all()

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 25, in run_all

   if not run_single(patchmodule = patch):

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 50, in run_single

   return execute_patch(patchmodule, method, methodargs)

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 66, in execute_patch

   frappe.get_attr(patchmodule.split()[0] + ".execute")()

 File "/home/prashant/erpnext_test/frappe-bench/apps/erpnext/erpnext/patches/v4_0/reset_permissions_for_masters.py", line 17, in execute

   frappe.reset_perms(doctype)

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/__init__.py", line 324, in reset_perms

   "DocType", doctype, force=True)

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/__init__.py", line 363, in reload_doc

   return frappe.modules.reload_doc(module, dt, dn, force=force)

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/modules/__init__.py", line 36, in reload_doc

   return import_files(module, dt, dn, force=force)

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 17, in import_files

   return import_file(module, dt, dn, force=force)

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 22, in import_file

   ret = import_file_by_path(path, force)

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 35, in import_file_by_path

   docs = read_doc_from_file(path)

 File "/home/prashant/erpnext_test/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 69, in read_doc_from_file

   doc = json.loads(f.read())

 File "/usr/lib/python2.7/json/__init__.py", line 326, in loads

   return _default_decoder.decode(s)

 File "/usr/lib/python2.7/json/decoder.py", line 366, in decode

   obj, end = self.raw_decode(s, idx=_w(s, 0).end())

 File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode

   obj, end = self.scan_once(s, idx)

ValueError: Expecting property name: line 2 column 1 (char 2)




Thanks and Regards,

--

Rushabh Mehta

unread,
Aug 21, 2014, 7:14:17 AM8/21/14
to erpnext-dev...@googlegroups.com
Sems like an error in a model (JSON) file (merge conflict?)


--
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. 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.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. 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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/f17a5ce9-50f3-4259-99e7-db69e7ee3eae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages