Upate error after running ./script/update.sh

Traceback (most recent call last):
  File "/home/erpnext/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.0.1', 'console_scripts', 'frappe')()
  File "/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources.py", line 353, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources.py", line 2302, in load_entry_point
    return ep.load()
  File "/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources.py", line 2029, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 10, in <module>
    from frappe.utils import cint
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/utils/__init__.py", line 9, in <module>
    import babel.dates
ImportError: No module named babel.dates

Now the server shows 502 Bad Gateway
Is there any way to 
restore old erpnext? 
Get our data? 
Or update with old data?

Thanks,

Revant



You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/74b79087-8e95-4db7-9644-150cc1b31fcc%40googlegroups.com.

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

On Tue, Jul 22, 2014 at 1:02 PM, Revant Nandgaonkar
re...@gmail.com wrote:

Traceback (most recent call last):
File “/home/erpnext/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.0.1’, ‘console_scripts’, ‘frappe’)()
File
“/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources.py”,
line 353, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File
“/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources.py”,
line 2302, in load_entry_point
return ep.load()
File
“/home/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources.py”,
line 2029, in load
entry = import(self.module_name, globals(),globals(), [‘name’])
File “/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py”, line 10, in

from frappe.utils import cint
File “/home/erpnext/frappe-bench/apps/frappe/frappe/utils/init.py”,
line 9, in
import babel.dates
ImportError: No module named babel.dates

Now the server shows 502 Bad Gateway
Is there any way to
restore old erpnext?
Get our data?
Or update with old data?

./env/bin/pip install babel should fix it.

Thanks,

Revant


You received this message because you are subscribed to the Google Groups
“ERPNext User’s Forum” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to erpnext-user-forum+un...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/erpnext-user-forum/74b79087-8e95-4db7-9644-150cc1b31fcc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Pratik
erpnext


You received this message because you are subscribed to the Google Groups “ERPNext User’s Forum” group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/CAG8U0E%3DMFyXZjdDpb4sBFzhbiL4JzZCGzx8_AbGgnB7Q7%3Dr8ow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



On Tuesday, July 22, 2014 1:04:05 PM UTC+5:30, Pratik Vyas wrote:

./env/bin/pip install babel should fix it.


--
Pratik
erpnext

Yes, it did fix the issue. We are up and running updated ERPNext!
Thank you for such wonderful software and support.


Revant



You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/6e821791-6d6f-47e2-9d01-24a55901914f%40googlegroups.com.

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

Hello!

Trying update script after a month.
I had 

ImportError: No module named pdfkit, 

so using previous logic I did: 
./env/bin/pip install pdfkit

Now I have

Error:

Updating erpnext                    : [======================================  ]
Traceback (most recent call last):
  File "/home/erpnext/frappe-bench/env/bin/frappe", line 9, in <module>
    load_entry_point('frappe==4.0.1', 'console_scripts', 'frappe')()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
    ret = run(fn, args)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
    out = globals().get(fn)(**args)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
    return fn(*args, **new_kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 424, in latest
    frappe.model.sync.sync_all(verbose=verbose)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/sync.py", line 19, in sync_all
    sync_for(app, force, verbose=verbose)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/sync.py", line 34, in sync_for
    import_file_by_path(doc_path, force=force)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 50, in import_file_by_path
    import_doc(doc, force=force)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 111, in import_doc
    doc.insert()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 156, in insert
    self.run_post_save_methods()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 436, in run_post_save_methods
    self.run_method("on_update")
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 406, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 487, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 470, in runner
    add_to_return_value(self, fn(self, *args, **kwargs))
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 400, in <lambda>
    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 100, in on_update
    module = load_doctype_module(self.name, self.module)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/__init__.py", line 58, in load_doctype_module
    doctype_python_modules[key] = frappe.get_module(get_module_name(doctype, module, prefix))
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 379, 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/erpnext/frappe-bench/apps/erpnext/erpnext/support/doctype/newsletter/newsletter.py", line 11, in <module>
    import erpnext.tasks
  File "/home/erpnext/frappe-bench/apps/erpnext/erpnext/tasks.py", line 8, in <module>
    @celery_task()
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/celery_app.py", line 85, in celery_task
    return get_celery().task(*args, **kwargs)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/celery_app.py", line 34, in get_celery
    setup_celery(_app, conf)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/celery_app.py", line 40, in setup_celery
    sites_path=SITES_PATH))
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 408, in get_all_apps
    apps = get_file_items(os.path.join(sites_path, "apps.txt"), raise_not_found=True)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 493, in get_file_items
    content = read_file(path, raise_not_found=raise_not_found)
  File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 512, in read_file
    raise IOError("{} Not Found".format(path))
IOError: ./apps.txt Not Found
You have new mail in /var/mail/erpnext



What should I do now?

Thank you,
Revant



You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/596d2a6e-08d2-4f22-b684-58e9a9b469e7%40googlegroups.com.

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

I found solution here:

https://github.com/frappe/erpnext/issues/2059

Thanks!

On Mon, Sep 8, 2014 at 12:36 PM, Revant Nandgaonkar <re...@gmail.com> wrote:
Hello!

Trying update script after a month.
I had

ImportError: No module named pdfkit,

so using previous logic I did:
./env/bin/pip install pdfkit

Now I have

Error:

Updating erpnext : [====================================== ]
Traceback (most recent call last):
File "/home/erpnext/frappe-bench/env/bin/frappe", line 9, in <module>
load_entry_point('frappe==4.0.1', 'console_scripts', 'frappe')()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 39, in main
ret = run(fn, args)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 83, in run
out = globals().get(fn)(**args)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 67, in new_fn
return fn(*args, **new_kwargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/cli.py", line 424, in latest
frappe.model.sync.sync_all(verbose=verbose)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/sync.py", line 19, in sync_all
sync_for(app, force, verbose=verbose)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/sync.py", line 34, in sync_for
import_file_by_path(doc_path, force=force)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 50, in import_file_by_path
import_doc(doc, force=force)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 111, in import_doc
doc.insert()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 156, in insert
self.run_post_save_methods()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 436, in run_post_save_methods
self.run_method("on_update")
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 406, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 487, in composer
return composed(self, method, *args, **kwargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 470, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 400, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 100, in on_update
module = load_doctype_module(self.name, self.module)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/modules/__init__.py", line 58, in load_doctype_module
doctype_python_modules[key] = frappe.get_module(get_module_name(doctype, module, prefix))
File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 379, 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/erpnext/frappe-bench/apps/erpnext/erpnext/support/doctype/newsletter/newsletter.py", line 11, in <module>
import erpnext.tasks
File "/home/erpnext/frappe-bench/apps/erpnext/erpnext/tasks.py", line 8, in <module>
@celery_task()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/celery_app.py", line 85, in celery_task
return get_celery().task(*args, **kwargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/celery_app.py", line 34, in get_celery
setup_celery(_app, conf)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/celery_app.py", line 40, in setup_celery
sites_path=SITES_PATH))
File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 408, in get_all_apps
apps = get_file_items(os.path.join(sites_path, "apps.txt"), raise_not_found=True)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 493, in get_file_items
content = read_file(path, raise_not_found=raise_not_found)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 512, in read_file
raise IOError("{} Not Found".format(path))
IOError: ./apps.txt Not Found
You have new mail in /var/mail/erpnext



What should I do now?

Thank you,
Revant



You received this message because you are subscribed to a topic in the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/erpnext-user-forum/UvVQUIoDgfY/unsubscribe.

To unsubscribe from this group and all its topics, send an email to erpnext-user-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/596d2a6e-08d2-4f22-b684-58e9a9b469e7%40googlegroups.com.

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




You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+un…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/CANy5vL%2B6S-BJqjMSxU5U_9Sks-B5AAgxqRt3sy_YU0g0Ws4wpw%40mail.gmail.com.

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