ImportError: No module named babel.dates

1,404 views
Skip to first unread message

Nonnatee Kanjana

unread,
Jul 28, 2014, 9:00:46 AM7/28/14
to erpnext-dev...@googlegroups.com
Hi,

I'm getting a return error msg after today's update via update.sh

below is the traceback:

psgroups@ERP:~/frappe-bench⟫ ./scripts/update.sh 

Already up-to-date.

updating apps/erpnext

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

 * branch            HEAD       -> FETCH_HEAD

Current branch develop is up to date.

/home/psgroups/frappe-bench

updating apps/frappe

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

 * branch            HEAD       -> FETCH_HEAD

Current branch develop is up to date.

/home/psgroups/frappe-bench

updating apps/shopping_cart

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

 * branch            HEAD       -> FETCH_HEAD

Current branch develop is up to date.

/home/psgroups/frappe-bench

Traceback (most recent call last):

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

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

  File "/home/psgroups/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/psgroups/frappe-bench/env/local/lib/python2.7/site-packages/pkg_resources.py", line 2302, in load_entry_point

    return ep.load()

  File "/home/psgroups/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/psgroups/frappe-bench/apps/frappe/frappe/__init__.py", line 16, in <module>

    from .utils.jinja import get_jenv, get_template, render_template

  File "/home/psgroups/frappe-bench/apps/frappe/frappe/utils/__init__.py", line 12, in <module>

    from frappe.utils.data import *

  File "/home/psgroups/frappe-bench/apps/frappe/frappe/utils/data.py", line 10, in <module>

    import babel.dates

ImportError: No module named babel.dates

1 psgroups@ERP:~/frappe-bench⟫ 

14.04


plz help.

Pratik Vyas

unread,
Jul 28, 2014, 9:02:39 AM7/28/14
to erpnext-dev...@googlegroups.com
Hi Nonnatee,

Please run

`./env/bin/pip install babel`

and update again.

>
> plz help.
>
> --
> 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/ca0c4434-a16c-4846-b938-8b9be8ba4124%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Pratik
erpnext

Nonnatee Kanjana

unread,
Jul 28, 2014, 9:14:30 AM7/28/14
to erpnext-dev...@googlegroups.com
hi Pratik,

Thank you, update successfully completed.

but I also have to install pdfkit package as well.

could you explain why installing from:
> pip install babel 
did not resolve this issue for me while 
> ./env/bin/pip install babel 
solve the missing package issue?

Thank you.
Reply all
Reply to author
Forward
0 new messages