USA | Utah | ||
---|---|---|---|
Least Expensive Areas of Utah | |
---|---|
City | Median Home List Price |
<class 'locale.Error'> | Python 2.6.6: /usr/bin/python Sat Jul 27 07:22:12 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/home/quantaloan/public_html/MarketData/seeds/state/index.cgi in |
704 if len(aZip) == 5: |
705 if os.path.exists(commonData.baseDir + thisState + '/city/' + m[0].replace(' ','') + '/' + aZip): |
706 print '<tr><td style="padding-left:5px;"><a href="' + commonData.webBaseDir + thisState + '/city/' + m[0].replace(' ','') + '/start/">' + m[0] + '</a> (<a href="' + commonData.webBaseDir + thisState + '/city/' + m[0].replace(' ','') + '/' + aZip + '">' + m[1] + '</a>)</td><td style="text-align:center">$' + formatNumber(m[2]) + '</td></tr>', |
707 else: |
708 if os.path.exists(commonData.baseDir + thisState + '/city/' + m[0].replace(' ','')): |
commonData = <module 'commonData' from '/home/quantaloan/public_html/MarketData/seeds/common/commonData.pyc'>, commonData.webBaseDir = '/MarketData/research/', thisState = 'UT', m = (u'Price', u'84501', u'132900'), ].replace undefined, aZip = u'84501', formatNumber = <function formatNumber> |
/home/quantaloan/public_html/MarketData/seeds/common/commonFuncs.py in formatNumber(inVal=u'132900') |
18 if inVal.find('.') > 0: |
19 inVal = inVal[0:inVal.find('.')] |
20 locale.setlocale(locale.LC_ALL, 'en_US') |
21 try: |
22 return locale.format("%d", int(inVal), grouping=True) |
global locale = <module 'locale' from '/usr/lib64/python2.6/locale.pyc'>, locale.setlocale = <function setlocale>, locale.LC_ALL = 6 |
/usr/lib64/python2.6/locale.py in setlocale(category=6, locale='en_US') |
511 # convert to string |
512 locale = normalize(_build_localename(locale)) |
513 return _setlocale(category, locale) |
514 |
515 def resetlocale(category=LC_ALL): |
global _setlocale = <built-in function setlocale>, category = 6, locale = 'en_US' |
<class 'locale.Error'>: unsupported locale setting
args =
('unsupported locale setting',)
message =
'unsupported locale setting'