NameError: global name 'get_doc_path' is not defined

Can anyone help me on this error?
I don't know what happened when using the installer..
Thanks so much :-)

Kenneth


Setting up lang files for pt...
Extracting / updating translatable strings...

Traceback (most recent call last):
  File "install_erpnext.py", line 333, in <module>
    install()
  File "install_erpnext.py", line 14, in install
    install_erpnext(install_path)
  File "install_erpnext.py", line 171, in install_erpnext
    setup_db(install_path, root_password, db_name)
  File "install_erpnext.py", line 234, in setup_db
    exec_in_shell("./lib/wnf.py --patch_sync_build")
  File "install_erpnext.py", line 326, in exec_in_shell
    raise Exception, err
Exception: Traceback (most recent call last):
  File "./lib/wnf.py", line 490, in <module>
    run()
  File "./lib/wnf.py", line 418, in run
    patch_sync_build()
  File "./lib/wnf.py", line 82, in patch_sync_build
    rebuild()
  File "./lib/wnf.py", line 64, in rebuild
    build.bundle(False)
  File "/var/www/html/erp/lib/webnotes/build.py", line 37, in bundle
    check_lang()
  File "/var/www/html/erp/lib/webnotes/build.py", line 69, in check_lang
    update_translations()
  File "/var/www/html/erp/lib/webnotes/translate.py", line 87, in update_translations
    build_message_files()
  File "/var/www/html/erp/lib/webnotes/translate.py", line 101, in build_message_files
    build_for_pages('lib/core')
  File "/var/www/html/erp/lib/webnotes/translate.py", line 130, in build_for_pages
    doctype_path = get_doc_path(m[0], 'Module Def', m[0])
NameError: global name 'get_doc_path' is not defined



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.

     

     

I am getting the exact same error and just posted it, saw your post later. I understand its some new update that has caused, I used the installer days back and it worked perfectly. Hope we get some help soon.

 

On Tuesday, 23 July 2013 22:02:15 UTC+5:30, Kenneth K wrote:
Can anyone help me on this error?
I don’t know what happened when using the installer…
Thanks so much :slight_smile:

Kenneth


Setting up lang files for pt…
Extracting / updating translatable strings…

Traceback (most recent call last):
  File “install_erpnext.py”, line 333, in <module>
    install()
  File “install_erpnext.py”, line 14, in install
    install_erpnext(install_path)
  File “install_erpnext.py”, line 171, in install_erpnext
    setup_db(install_path, root_password, db_name)
  File “install_erpnext.py”, line 234, in setup_db
    exec_in_shell(“./lib/wnf.py --patch_sync_build”)
  File “install_erpnext.py”, line 326, in exec_in_shell
    raise Exception, err
Exception: Traceback (most recent call last):
  File “./lib/wnf.py”, line 490, in <module>
    run()
  File “./lib/wnf.py”, line 418, in run
    patch_sync_build()
  File “./lib/wnf.py”, line 82, in patch_sync_build
    rebuild()
  File “./lib/wnf.py”, line 64, in rebuild
    build.bundle(False)
  File “/var/www/html/erp/lib/webnotes/build.py”, line 37, in bundle
    check_lang()
  File “/var/www/html/erp/lib/webnotes/build.py”, line 69, in check_lang
    update_translations()
  File “/var/www/html/erp/lib/webnotes/translate.py”, line 87, in update_translations
    build_message_files()
  File “/var/www/html/erp/lib/webnotes/translate.py”, line 101, in build_message_files
    build_for_pages(‘lib/core’)
  File “/var/www/html/erp/lib/webnotes/translate.py”, line 130, in build_for_pages
    doctype_path = get_doc_path(m[0], ‘Module Def’, m[0])
NameError: global name ‘get_doc_path’ is not defined



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.

     

     
Fixed the issue, please pull the latest updates and install again.

On 24-Jul-2013, at 3:06 AM, Shubham Gupta wrote:

I am getting the exact same error and just posted it, saw your post later. I understand its some new update that has caused, I used the installer days back and it worked perfectly. Hope we get some help soon.
 

On Tuesday, 23 July 2013 22:02:15 UTC+5:30, Kenneth K wrote:
Can anyone help me on this error?
I don't know what happened when using the installer..
Thanks so much :-)

Kenneth


Setting up lang files for pt...
Extracting / updating translatable strings...

Traceback (most recent call last):
  File "install_erpnext.py", line 333, in <module>
    install()
  File "install_erpnext.py", line 14, in install
    install_erpnext(install_path)
  File "install_erpnext.py", line 171, in install_erpnext
    setup_db(install_path, root_password, db_name)
  File "install_erpnext.py", line 234, in setup_db
    exec_in_shell("./lib/wnf.py --patch_sync_build")
  File "install_erpnext.py", line 326, in exec_in_shell
    raise Exception, err
Exception: Traceback (most recent call last):
  File "./lib/wnf.py", line 490, in <module>
    run()
  File "./lib/wnf.py", line 418, in run
    patch_sync_build()
  File "./lib/wnf.py", line 82, in patch_sync_build
    rebuild()
  File "./lib/wnf.py", line 64, in rebuild
    build.bundle(False)
  File "/var/www/html/erp/lib/webnotes/build.py", line 37, in bundle
    check_lang()
  File "/var/www/html/erp/lib/webnotes/build.py", line 69, in check_lang
    update_translations()
  File "/var/www/html/erp/lib/webnotes/translate.py", line 87, in update_translations
    build_message_files()
  File "/var/www/html/erp/lib/webnotes/translate.py", line 101, in build_message_files
    build_for_pages('lib/core')
  File "/var/www/html/erp/lib/webnotes/translate.py", line 130, in build_for_pages
    doctype_path = get_doc_path(m[0], 'Module Def', m[0])
NameError: global name 'get_doc_path' is not defined



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.

     

     
Hi Kenneth,

Please remove existing app and lib folders in erp folder and start a fresh installation. We have fixed this issue and it should work now.

Thanks,
Anand.

On 23-Jul-2013, at 10:02 PM, Kenneth K <ke...@yahoo.com.hk> wrote:

Can anyone help me on this error?
I don't know what happened when using the installer..
Thanks so much :-)

Kenneth


Setting up lang files for pt...
Extracting / updating translatable strings...

Traceback (most recent call last):
  File "install_erpnext.py", line 333, in <module>
    install()
  File "install_erpnext.py", line 14, in install
    install_erpnext(install_path)
  File "install_erpnext.py", line 171, in install_erpnext
    setup_db(install_path, root_password, db_name)
  File "install_erpnext.py", line 234, in setup_db
    exec_in_shell("./lib/wnf.py --patch_sync_build")
  File "install_erpnext.py", line 326, in exec_in_shell
    raise Exception, err
Exception: Traceback (most recent call last):
  File "./lib/wnf.py", line 490, in <module>
    run()
  File "./lib/wnf.py", line 418, in run
    patch_sync_build()
  File "./lib/wnf.py", line 82, in patch_sync_build
    rebuild()
  File "./lib/wnf.py", line 64, in rebuild
    build.bundle(False)
  File "/var/www/html/erp/lib/webnotes/build.py", line 37, in bundle
    check_lang()
  File "/var/www/html/erp/lib/webnotes/build.py", line 69, in check_lang
    update_translations()
  File "/var/www/html/erp/lib/webnotes/translate.py", line 87, in update_translations
    build_message_files()
  File "/var/www/html/erp/lib/webnotes/translate.py", line 101, in build_message_files
    build_for_pages('lib/core')
  File "/var/www/html/erp/lib/webnotes/translate.py", line 130, in build_for_pages
    doctype_path = get_doc_path(m[0], 'Module Def', m[0])
NameError: global name 'get_doc_path' is not defined



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.

     

     

The installation was successful, thanks so much!


Kenneth


On Wednesday, 24 July 2013 14:46:19 UTC+8, Anand Doshi wrote:
Hi Kenneth,

Please remove existing app and lib folders in erp folder and start a fresh installation. We have fixed this issue and it should work now.

Thanks,
Anand.

On 23-Jul-2013, at 10:02 PM, Kenneth K <ke…@yahoo.com.hk> wrote:

Can anyone help me on this error?
I don’t know what happened when using the installer…
Thanks so much :slight_smile:

Kenneth


Setting up lang files for pt…
Extracting / updating translatable strings…

Traceback (most recent call last):
  File “install_erpnext.py”, line 333, in <module>
    install()
  File “install_erpnext.py”, line 14, in install
    install_erpnext(install_path)
  File “install_erpnext.py”, line 171, in install_erpnext
    setup_db(install_path, root_password, db_name)
  File “install_erpnext.py”, line 234, in setup_db
    exec_in_shell(“./lib/wnf.py --patch_sync_build”)
  File “install_erpnext.py”, line 326, in exec_in_shell
    raise Exception, err
Exception: Traceback (most recent call last):
  File “./lib/wnf.py”, line 490, in <module>
    run()
  File “./lib/wnf.py”, line 418, in run
    patch_sync_build()
  File “./lib/wnf.py”, line 82, in patch_sync_build
    rebuild()
  File “./lib/wnf.py”, line 64, in rebuild
    build.bundle(False)
  File “/var/www/html/erp/lib/webnotes/build.py”, line 37, in bundle
    check_lang()
  File “/var/www/html/erp/lib/webnotes/build.py”, line 69, in check_lang
    update_translations()
  File “/var/www/html/erp/lib/webnotes/translate.py”, line 87, in update_translations
    build_message_files()
  File “/var/www/html/erp/lib/webnotes/translate.py”, line 101, in build_message_files
    build_for_pages(‘lib/core’)
  File “/var/www/html/erp/lib/webnotes/translate.py”, line 130, in build_for_pages
    doctype_path = get_doc_path(m[0], ‘Module Def’, m[0])
NameError: global name ‘get_doc_path’ is not defined



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.