Upate error after running ./script/update.sh

166 views
Skip to first unread message

Revant Nandgaonkar

unread,
Jul 22, 2014, 3:32:54 AM7/22/14
to erpnext-u...@googlegroups.com
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

Pratik Vyas

unread,
Jul 22, 2014, 3:34:05 AM7/22/14
to erpnext-u...@googlegroups.com
./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-fo...@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

Revant Nandgaonkar

unread,
Jul 22, 2014, 3:51:24 AM7/22/14
to erpnext-u...@googlegroups.com


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

Revant Nandgaonkar

unread,
Sep 8, 2014, 3:06:24 AM9/8/14
to erpnext-u...@googlegroups.com
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

Revant Nandgaonkar

unread,
Sep 8, 2014, 3:20:11 AM9/8/14
to erpnext-u...@googlegroups.com

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