ImportError: No module named babel.dates

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.



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-forum+un…@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.

On Mon, Jul 28, 2014 at 6:30 PM, Nonnatee Kanjana
no...@ps-groups.com wrote:

Hi,

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

below is the traceback:

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

Already up-to-date.

updating apps/erpnext

From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)

  • branch HEAD → FETCH_HEAD

Current branch develop is up to date.

/home/psgroups/frappe-bench

updating apps/frappe

From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript

  • branch HEAD → FETCH_HEAD

Current branch develop is up to date.

/home/psgroups/frappe-bench

updating apps/shopping_cart

From GitHub - frappe/shopping_cart: Online Shopping Cart integrated with ERPNext

  • 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

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

from .utils.jinja import get_jenv, get_template, render_template

File “/home/psgroups/frappe-bench/apps/frappe/frappe/utils/init.py”,
line 12, in

from frappe.utils.data import *

File “/home/psgroups/frappe-bench/apps/frappe/frappe/utils/data.py”, line
10, in

import babel.dates

ImportError: No module named babel.dates

1 ps…@ERP:~/frappe-bench⟫

14.04

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 (Not Found). So please consider donating if
    you find this forum useful (Not Found). 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-forum+un...@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

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.


On Monday, July 28, 2014 8:02:39 PM UTC+7, Pratik Vyas wrote:
On Mon, Jul 28, 2014 at 6:30 PM, Nonnatee Kanjana
<no...@ps-groups.com> wrote:
> Hi,
>
> I'm getting a return error msg after today's update via update.sh
>
> below is the traceback:
>
> ps...@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 ps...@ERP:~/frappe-bench⟫
>
> 14.04
>

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-forum+un...@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



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/0db75c8c-99bc-449b-8369-ea63e10408bf%40googlegroups.com.

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