Update failed with frappe.modules.patch_handler.PatchError: erpnext.patches.v4_0.new_address_templat

Hello,

I'm trying to update erpnext with update.sh but it was failed with the following error log. Could this be a bug and how can I handle it?

Running latest for fozilex
--------------------------------------------------
Executing erpnext.patches.v4_0.new_address_template in fozilex (fozilex)
Traceback (innermost last):
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 66, in execute_patch
    frappe.get_attr(patchmodule + ".execute")()
  File "/home/fozilex/frappe-bench/apps/erpnext/erpnext/patches/v4_0/new_address_template.py", line 5, in execute
    d = frappe.new_doc("Address Template")
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/__init__.py", line 329, in new_doc
    return get_new_doc(doctype, parent_doc, parentfield)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/create_new.py", line 35, in get_new_doc
    if (d.fieldtype=="Link") and d.ignore_user_permissions != 1 and (d.options in user_permissions)\
 AttributeError: 'BaseDocument' object has no attribute 'ignore_user_permissions'

erpnext.patches.v4_0.new_address_template: failed: STOPPED
Traceback (most recent call last):
  File "/home/fozilex/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.0.0', 'console_scripts', 'frappe')()
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
    return run(fn, args)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 80, in run
    out = globals().get(fn)(**args)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 64, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 416, in latest
    frappe.modules.patch_handler.run_all()
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 27, in run_all
    raise PatchError(patch)
frappe.modules.patch_handler.PatchError: erpnext.patches.v4_0.new_address_template




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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/376092d2-cc2e-4c1e-b37b-997e9df239e3%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Seems like an issue based on the new permission system - let me push a hotfix


On 06-Jun-2014, at 9:49 am, Phinitnan Chanasabaeng <cr...@gmail.com> wrote:

Hello,

I'm trying to update erpnext with update.sh but it was failed with the following error log. Could this be a bug and how can I handle it?

Running latest for fozilex
--------------------------------------------------
Executing erpnext.patches.v4_0.new_address_template in fozilex (fozilex)
Traceback (innermost last):
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 66, in execute_patch
    frappe.get_attr(patchmodule + ".execute")()
  File "/home/fozilex/frappe-bench/apps/erpnext/erpnext/patches/v4_0/new_address_template.py", line 5, in execute
    d = frappe.new_doc("Address Template")
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/__init__.py", line 329, in new_doc
    return get_new_doc(doctype, parent_doc, parentfield)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/create_new.py", line 35, in get_new_doc
    if (d.fieldtype=="Link") and d.ignore_user_permissions != 1 and (d.options in user_permissions)\
 AttributeError: 'BaseDocument' object has no attribute 'ignore_user_permissions'

erpnext.patches.v4_0.new_address_template: failed: STOPPED
Traceback (most recent call last):
  File "/home/fozilex/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.0.0', 'console_scripts', 'frappe')()
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
    return run(fn, args)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 80, in run
    out = globals().get(fn)(**args)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 64, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 416, in latest
    frappe.modules.patch_handler.run_all()
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 27, in run_all
    raise PatchError(patch)
frappe.modules.patch_handler.PatchError: erpnext.patches.v4_0.new_address_template





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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/376092d2-cc2e-4c1e-b37b-997e9df239e3%40googlegroups.com.

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



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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/4CA425CF-8B37-4D8F-9CE5-4C6231EE9915%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.
Fixed https://github.com/frappe/frappe/commit/a905ce48eb666b1fde5356ba942d555d8dddcd80

Can you update again and check?


On 06-Jun-2014, at 9:51 am, Rushabh Mehta <rm...@gmail.com> wrote:

Seems like an issue based on the new permission system - let me push a hotfix


On 06-Jun-2014, at 9:49 am, Phinitnan Chanasabaeng <cr...@gmail.com> wrote:

Hello,

I'm trying to update erpnext with update.sh but it was failed with the following error log. Could this be a bug and how can I handle it?

Running latest for fozilex
--------------------------------------------------
Executing erpnext.patches.v4_0.new_address_template in fozilex (fozilex)
Traceback (innermost last):
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 66, in execute_patch
    frappe.get_attr(patchmodule + ".execute")()
  File "/home/fozilex/frappe-bench/apps/erpnext/erpnext/patches/v4_0/new_address_template.py", line 5, in execute
    d = frappe.new_doc("Address Template")
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/__init__.py", line 329, in new_doc
    return get_new_doc(doctype, parent_doc, parentfield)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/create_new.py", line 35, in get_new_doc
    if (d.fieldtype=="Link") and d.ignore_user_permissions != 1 and (d.options in user_permissions)\
 AttributeError: 'BaseDocument' object has no attribute 'ignore_user_permissions'

erpnext.patches.v4_0.new_address_template: failed: STOPPED
Traceback (most recent call last):
  File "/home/fozilex/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.0.0', 'console_scripts', 'frappe')()
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
    return run(fn, args)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 80, in run
    out = globals().get(fn)(**args)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 64, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 416, in latest
    frappe.modules.patch_handler.run_all()
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 27, in run_all
    raise PatchError(patch)
frappe.modules.patch_handler.PatchError: erpnext.patches.v4_0.new_address_template





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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/376092d2-cc2e-4c1e-b37b-997e9df239e3%40googlegroups.com.

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




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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1C9922D4-60F1-4ABC-8048-694AED528F4D%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.
Thank you for your help. I'll try to update again in a few hours and report back.



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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/3bcda9c1-8e6f-40d7-a0c1-74eac183ea30%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Unfortunately, another error.

Running latest for fozilex
--------------------------------------------------
Traceback (most recent call last):
  File "/home/fozilex/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.0.0', 'console_scripts', 'frappe')()
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
    return run(fn, args)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 80, in run
    out = globals().get(fn)(**args)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 64, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 418, in latest
    frappe.model.sync.sync_all(verbose=verbose)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/sync.py", line 16, in sync_all
    sync_for(app, force, verbose=verbose)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/sync.py", line 22, in sync_for
    walk_and_sync(folder, force, sync_everything, verbose=verbose)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/sync.py", line 51, in walk_and_sync
    if import_file_by_path(os.path.join(path, f), force=force) and verbose:
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 50, in import_file_by_path
    import_doc(doc, force=force)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 110, in import_doc
    doc.insert()
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py", line 140, in insert
    self.run_post_save_methods()
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py", line 403, in run_post_save_methods
    self.run_method("on_update")
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py", line 375, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py", line 452, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py", line 435, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py", line 373, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 94, in on_update
    module = load_doctype_module(self.name, self.module)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/__init__.py", line 50, in load_doctype_module
    return frappe.get_module(get_module_name(doctype, module, prefix))
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/__init__.py", line 372, in get_module
    return importlib.import_module(modulename)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py", line 11, in <module>
    from frappe.utils.email_lib.email_body import get_email
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/utils/email_lib/__init__.py", line 9, in <module>
    from frappe.utils.email_lib.smtp import send
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/utils/email_lib/smtp.py", line 7, in <module>
    import smtplib
  File "/usr/lib/python2.7/smtplib.py", line 48, in <module>
    import hmac
  File "/usr/lib/python2.7/hmac.py", line 8, in <module>
    from operator import _compare_digest as compare_digest
ImportError: cannot import name _compare_digest


On Friday, June 6, 2014 11:24:39 AM UTC+7, rushabh wrote:
Fixed https://github.com/frappe/frappe/commit/a905ce48eb666b1fde5356ba942d555d8dddcd80

Can you update again and check?


On 06-Jun-2014, at 9:51 am, Rushabh Mehta <rm...@gmail.com> wrote:

Seems like an issue based on the new permission system - let me push a hotfix


On 06-Jun-2014, at 9:49 am, Phinitnan Chanasabaeng <cr...@gmail.com> wrote:

Hello,

I'm trying to update erpnext with update.sh but it was failed with the following error log. Could this be a bug and how can I handle it?

Running latest for fozilex
--------------------------------------------------
Executing erpnext.patches.v4_0.new_address_template in fozilex (fozilex)
Traceback (innermost last):
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 66, in execute_patch
    frappe.get_attr(patchmodule + ".execute")()
  File "/home/fozilex/frappe-bench/apps/erpnext/erpnext/patches/v4_0/new_address_template.py", line 5, in execute
    d = frappe.new_doc("Address Template")
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/__init__.py", line 329, in new_doc
    return get_new_doc(doctype, parent_doc, parentfield)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/create_new.py", line 35, in get_new_doc
    if (d.fieldtype=="Link") and d.ignore_user_permissions != 1 and (d.options in user_permissions)\
 AttributeError: 'BaseDocument' object has no attribute 'ignore_user_permissions'

erpnext.patches.v4_0.new_address_template: failed: STOPPED
Traceback (most recent call last):
  File "/home/fozilex/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.0.0', 'console_scripts', 'frappe')()
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
    return run(fn, args)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 80, in run
    out = globals().get(fn)(**args)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 64, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 416, in latest
    frappe.modules.patch_handler.run_all()
  File "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 27, in run_all
    raise PatchError(patch)
frappe.modules.patch_handler.PatchError: erpnext.patches.v4_0.new_address_template





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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/376092d2-cc2e-4c1e-b37b-997e9df239e3%40googlegroups.com.

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




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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/5fa35d4d-df1a-4087-b17a-42b294da5e09%40googlegroups.com.

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

On Fri, Jun 6, 2014 at 10:02 AM, Phinitnan Chanasabaeng
cr...@gmail.com wrote:

Unfortunately, another error.

Running latest for fozilex

Traceback (most recent call last):
File “/home/fozilex/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.0.0’, ‘console_scripts’, ‘frappe’)()
File “/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py”, line 39, in
main
return run(fn, args)
File “/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py”, line 80, in
run
out = globals().get(fn)(**args)
File “/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py”, line 64, in
new_fn
return fn(*args, **new_kwargs)
File “/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py”, line 418, in
latest
frappe.model.sync.sync_all(verbose=verbose)
File “/home/fozilex/frappe-bench/apps/frappe/frappe/model/sync.py”, line
16, in sync_all
sync_for(app, force, verbose=verbose)
File “/home/fozilex/frappe-bench/apps/frappe/frappe/model/sync.py”, line
22, in sync_for
walk_and_sync(folder, force, sync_everything, verbose=verbose)
File “/home/fozilex/frappe-bench/apps/frappe/frappe/model/sync.py”, line
51, in walk_and_sync
if import_file_by_path(os.path.join(path, f), force=force) and verbose:
File
“/home/fozilex/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line
50, in import_file_by_path
import_doc(doc, force=force)
File
“/home/fozilex/frappe-bench/apps/frappe/frappe/modules/import_file.py”, line
110, in import_doc
doc.insert()
File “/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py”,
line 140, in insert
self.run_post_save_methods()
File “/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py”,
line 403, in run_post_save_methods
self.run_method(“on_update”)
File “/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py”,
line 375, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py”,
line 452, in composer
return composed(self, method, *args, **kwargs)
File “/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py”,
line 435, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py”,
line 373, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args,
**kwargs)
File
“/home/fozilex/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py”,
line 94, in on_update
module = load_doctype_module(self.name, self.module)
File “/home/fozilex/frappe-bench/apps/frappe/frappe/modules/init.py”,
line 50, in load_doctype_module
return frappe.get_module(get_module_name(doctype, module, prefix))
File “/home/fozilex/frappe-bench/apps/frappe/frappe/init.py”, line
372, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File
“/home/fozilex/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py”,
line 11, in
from frappe.utils.email_lib.email_body import get_email
File
“/home/fozilex/frappe-bench/apps/frappe/frappe/utils/email_lib/init.py”,
line 9, in
from frappe.utils.email_lib.smtp import send
File
“/home/fozilex/frappe-bench/apps/frappe/frappe/utils/email_lib/smtp.py”,
line 7, in
import smtplib
File “/usr/lib/python2.7/smtplib.py”, line 48, in
import hmac
File “/usr/lib/python2.7/hmac.py”, line 8, in
from operator import _compare_digest as compare_digest
ImportError: cannot import name _compare_digest

Looks like this,
https://www.mail-archive.com/de...@lists.debian.org/msg1224452.html

Are you using Debian? If so, which version?

Thanks,

Pratik
erpnext

Thank you for your help. Everything is working now after update the virtuaenv.

On Friday, June 6, 2014 12:00:56 PM UTC+7, Pratik Vyas wrote:
On Fri, Jun 6, 2014 at 10:02 AM, Phinitnan Chanasabaeng
<cr...@gmail.com> wrote:
> Unfortunately, another error.
>
>
> Running latest for fozilex
> --------------------------------------------------
> Traceback (most recent call last):
>   File "/home/fozilex/frappe-bench/env/bin/frappe", line 9, in <module>
>     load_entry_point('frappe==4.0.0', 'console_scripts', 'frappe')()
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 39, in
> main
>     return run(fn, args)
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 80, in
> run
>     out = globals().get(fn)(**args)
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 64, in
> new_fn
>     return fn(*args, **new_kwargs)
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/cli.py", line 418, in
> latest
>     frappe.model.sync.sync_all(verbose=verbose)
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/sync.py", line
> 16, in sync_all
>     sync_for(app, force, verbose=verbose)
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/sync.py", line
> 22, in sync_for
>     walk_and_sync(folder, force, sync_everything, verbose=verbose)
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/sync.py", line
> 51, in walk_and_sync
>     if import_file_by_path(os.path.join(path, f), force=force) and verbose:
>   File
> "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/import_file.py", line
> 50, in import_file_by_path
>     import_doc(doc, force=force)
>   File
> "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/import_file.py", line
> 110, in import_doc
>     doc.insert()
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py",
> line 140, in insert
>     self.run_post_save_methods()
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py",
> line 403, in run_post_save_methods
>     self.run_method("on_update")
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py",
> line 375, in run_method
>     return Document.hook(fn)(self, *args, **kwargs)
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py",
> line 452, in composer
>     return composed(self, method, *args, **kwargs)
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py",
> line 435, in runner
>     add_to_return_value(self, fn(self, *args, **kwargs))
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/model/document.py",
> line 373, in <lambda>
>     fn = lambda self, *args, **kwargs: getattr(self, method)(*args,
> **kwargs)
>   File
> "/home/fozilex/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py",
> line 94, in on_update
>     module = load_doctype_module(self.name, self.module)
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/modules/__init__.py",
> line 50, in load_doctype_module
>     return frappe.get_module(get_module_name(doctype, module, prefix))
>   File "/home/fozilex/frappe-bench/apps/frappe/frappe/__init__.py", line
> 372, in get_module
>     return importlib.import_module(modulename)
>   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
>     __import__(name)
>   File
> "/home/fozilex/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py",
> line 11, in <module>
>     from frappe.utils.email_lib.email_body import get_email
>   File
> "/home/fozilex/frappe-bench/apps/frappe/frappe/utils/email_lib/__init__.py",
> line 9, in <module>
>     from frappe.utils.email_lib.smtp import send
>   File
> "/home/fozilex/frappe-bench/apps/frappe/frappe/utils/email_lib/smtp.py",
> line 7, in <module>
>     import smtplib
>   File "/usr/lib/python2.7/smtplib.py", line 48, in <module>
>     import hmac
>   File "/usr/lib/python2.7/hmac.py", line 8, in <module>
>     from operator import _compare_digest as compare_digest
> ImportError: cannot import name _compare_digest

Looks like this,
https://www.mail-archive.com/de...@lists.debian.org/msg1224452.html

Are you using Debian? If so, which version?

Thanks,
--
Pratik
erpnext



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.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/18221172-9ba0-43b6-b475-c6b8cf1fe2c4%40googlegroups.com.

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