502 Bad Gateway nginx/1.2.1

I have installed version 4 few months ago under virtual Box and was working properly. I was not using it since last 5-6 months. Now I again want to start using with new version 5.

When I connect via browser I am getting 502 Bad Gateway nginx/1.2.1 error.

Previously I had run update.sh script & there was following error.

Traceback (most recent call last):
File “/home/erpnext/frappe-bench/env/bin/frappe”, line 9, in
load_entry_point(‘frappe==4.0.0’, ‘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/init.py”, line 15, in
from .utils.jinja import get_jenv, get_template, render_template
File “/home/erpnext/frappe-bench/apps/frappe/frappe/utils/init.py”, line 14, in
from frappe.utils.data import *
File “/home/erpnext/frappe-bench/apps/frappe/frappe/utils/data.py”, line 12, in
from num2words import num2words
ImportError: No module named num2words


Ravi Modi

./update.sh was depricated long ago. If you don’t have much data, try using a fresh v5 VM?

Yes I have some HR employees master data, which I require. Is there any way to transfer this data to new setup.