Thanks Emlyn - that sounds like a bug in Cartridge
On Fri, Jul 18, 2014 at 7:43 AM, Emlyn Clay <[email protected]> wrote: > I have the same issue on my Mac dev machine when I run the pydev debugger > in PyCharm. `locale -a` tells me that the locale that I've chosen ('en_GB') > is available. I found that the python interpreter complains that there is > 'too many variables to unpack' because settings.SHOP_CURRENCY_LOCALE is a > unicode string so I altered the line: > > setlocale(LC_MONETARY, currency_locale) > > in cartridge/shop/utils.py to: > > setlocale(LC_MONETARY, str(currency_locale)) > > ... and that fixed it for me. I've raised an issue on github but I'm not > sure what's at fault really - unicode strings should be treated the same as > ASCI strings! > > Emlyn > > On Wednesday, 8 January 2014 07:40:05 UTC, Mehmet Özgür Bayhan wrote: > >> We have same problem with my wife's macOS >> >> >> 2014/1/8 Denis Cornehl <[email protected]> >> >>> „locale -a“ helped me to see which locales are installed and how they >>> are written exactly. >>> en_US.UTF-8 is installed on my Mac OS X 10.9. >>> >>> I had to set different locales on the production env (ubuntu) and my >>> dev-env, since they were spelled slightly different. >>> >>> Am 08.01.2014 um 06:19 schrieb Luis Velez <[email protected]>: >>> >>> works perfectly in ubuntu, my problem is in osx. I tested with several >>> values for this variable and still not working >>> >>> On Tuesday, January 7, 2014 3:30:35 PM UTC-5, Danny S wrote: >>>> >>>> On 8/01/2014 1:20 AM, Luis Velez wrote: >>>> > Error with any command in mezzanine cartridge >>>> > >>>> >>>> > "/Users/warlock/.virtualenvs/cartrid/lib/python2.7/site-pack >>>> ages/cartridge/shop/utils.py", >>>> > line 131, in set_locale >>>> > raise ImproperlyConfigured(msg % currency_locale) >>>> > django.core.exceptions.ImproperlyConfigured: Invalid currency locale >>>> > specified for SHOP_CURRENCY_LOCALE: 'en_US.UTF-8'. You'll need to set >>>> >>>> > the locale for your system, or configure the SHOP_CURRENCY_LOCALE >>>> > setting in your settings module. >>>> >>>> >>>> Try setting SHOP_CURRENCY_LOCALE to en_US if that's not what it's >>>> currently on. >>>> >>>> Otherwise, make sure en_US.UTF8 is installed as a locale on your system. >>>> >>>> I had to explicitly install en_AU as a locale on my system so I could >>>> use it as a SHOP_CURRENCY_LOCALE. >>>> >>>> On Ubuntu, the steps are: >>>> sudo locale-gen en_AU >>>> sudo dpkg-reconfigure locales >>>> >>>> Not sure what they'd be on a Mac. >>>> >>>> Seeya. Danny. >>>> >>>> -- >>>> Email: [email protected] >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Mezzanine Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >>> >>> -- >>> Freundliche Grüße >>> >>> Denis Cornehl >>> Simon-Dach-Str. 7 / 10245 Berlin >>> >>> M: +49 (151) 25 25 1450 >>> @: [email protected] >>> >>> X: http://xing.to/dc >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Mezzanine Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
