ubuntu-11.04

Python locale error: unsupported locale setting

扶醉桌前 提交于 2019-11-26 13:57:39
Why do I get the following error when doing this in python: >>> import locale >>> print str( locale.getlocale() ) (None, None) >>> locale.setlocale(locale.LC_ALL, 'de_DE') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/locale.py", line 531, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting This works with other locales like fr or nl as well. I'm using Ubuntu 11.04. Update: Doing the following did not yield anything: dpkg-reconfigure locales perl: warning: Setting locale failed. perl: warning: Please check

curl : (1) Protocol https not supported or disabled in libcurl

痞子三分冷 提交于 2019-11-26 08:49:56
问题 I\'m trying to install the Rails environments on Ubuntu 11.04. When I launch the command rvm install 1.9.2 --with-openssl-dir=/usr/local the following error is received: curl : (1) Protocol https not supported or disabled in libcurl How can this be resolved? 回答1: Got the answer HERE for windows, it says there that: curl -XPUT 'http://localhost:9200/api/twittervnext/tweet' Woops, first try and already an error: curl: (1) Protocol 'http not supported or disabled in libcurl The reason for this

Python locale error: unsupported locale setting

假装没事ソ 提交于 2019-11-26 03:46:50
问题 Why do I get the following error when doing this in python: >>> import locale >>> print str( locale.getlocale() ) (None, None) >>> locale.setlocale(locale.LC_ALL, \'de_DE\') Traceback (most recent call last): File \"<stdin>\", line 1, in <module> File \"/usr/lib/python2.7/locale.py\", line 531, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting This works with other locales like fr or nl as well. I\'m using Ubuntu 11.04. Update: Doing the following did