2012-11-18 2 views
0

을 dotcloud 업그레이드 문제를 갖는 http://docs.dotcloud.com/0.9/guides/migration/여기의 지침에 따라 CLI

내가 sudo pip install -U dotcloud

Downloading/unpacking dotcloud 
    Downloading dotcloud-0.9.2.tar.gz 
    Running setup.py egg_info for package dotcloud 
Downloading/unpacking argparse (from dotcloud) 
    Downloading argparse-1.2.1.tar.gz (69Kb): 69Kb downloaded 
    Running setup.py egg_info for package argparse 
    warning: no previously-included files matching '*.pyc' found anywhere in distribution 
    warning: no previously-included files matching '*.pyo' found anywhere in distribution 
    warning: no previously-included files matching '*.orig' found anywhere in distribution 
    warning: no previously-included files matching '*.rej' found anywhere in distribution 
    no previously-included directories found matching 'doc/_build' 
    no previously-included directories found matching 'env24' 
    no previously-included directories found matching 'env25' 
    no previously-included directories found matching 'env26' 
    no previously-included directories found matching 'env27' 
Downloading/unpacking requests==0.14.1 (from dotcloud) 
    Downloading requests-0.14.1.tar.gz (523Kb): 523Kb downloaded 
    Running setup.py egg_info for package requests 
    warning: no files found matching 'tests/*.' 
Downloading/unpacking colorama (from dotcloud) 
    Downloading colorama-0.2.4.tar.gz 
    Running setup.py egg_info for package colorama 
Installing collected packages: dotcloud, argparse, requests, colorama 
    Running setup.py install for dotcloud 
    changing mode of build/scripts-2.6/dotcloud from 644 to 755 
    changing mode of /usr/local/bin/dotcloud to 755 
    Found existing installation: argparse 1.2.1 
    Uninstalling argparse: 
     Successfully uninstalled argparse 
    Running setup.py install for argparse 
    warning: no previously-included files matching '*.pyc' found anywhere in distribution 
    warning: no previously-included files matching '*.pyo' found anywhere in distribution 
    warning: no previously-included files matching '*.orig' found anywhere in distribution 
    warning: no previously-included files matching '*.rej' found anywhere in distribution 
    no previously-included directories found matching 'doc/_build' 
    no previously-included directories found matching 'env24' 
    no previously-included directories found matching 'env25' 
    no previously-included directories found matching 'env26' 
    no previously-included directories found matching 'env27' 
    Found existing installation: requests 0.14.1 
    Uninstalling requests: 
     Successfully uninstalled requests 
    Running setup.py install for requests 
    warning: no files found matching 'tests/*.' 
    Found existing installation: colorama 0.2.4 
    Uninstalling colorama: 
     Successfully uninstalled colorama 
    Running setup.py install for colorama 
Successfully installed dotcloud argparse requests colorama 
Cleaning up... 

을 실행하면 내가 dotcloud setup

Traceback (most recent call last): 
    File "/usr/local/bin/dotcloud", line 16, in <module> 
    cli = CLI(endpoint=url, debug=debug, username=username) 
    File "/Library/Python/2.6/site-packages/dotcloud/ui/cli.py", line 42, in __init__ 
    user_agent=self._build_useragent_string(), 
    File "/Library/Python/2.6/site-packages/dotcloud/ui/cli.py", line 72, in  _build_useragent_string 
    (langcode, encoding) = locale.getdefaultlocale() 
    File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 459, in getdefaultlocale 
    return _parse_localename(localename) 
    File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 391, in _parse_localename 
    raise ValueError, 'unknown locale: %s' % localename 
ValueError: unknown locale: UTF-8 

어떤 도움을 주셔서 감사합니다 실행합니다.

+0

당신이 사용하는 파이썬의 버전은 무엇? 2.6과 비슷하게 보입니다. 시스템과 함께 제공되거나 사용자 정의 설치가있는 버전입니까? –

+0

@Ken Cochrane 그래요, 주식입니다. 나는 파이썬 3.2가있다. –

답변

0

로캘 문제 또는 사용 권한 문제입니다.

기본 로캘 집합이 없거나 필요할 때 로캘을 올바르게로드 할 수 없습니다.

대신 모든 정보를 복사하는 것이 도움이 될 수있는 답변에 대해이 질문을보아야합니다.

python locale strange error. what's going on here exactly?

+0

올바른 방향으로 나를 가리켜 주셔서 감사합니다 :) –

0

CLI에서 locale._parse_localname 방법에 액세스하고 값 UTF-8 로케일을 찾을 수 없기 때문에 ValueError를가 발생한 것 같습니다.

아래 제공된이 블로그 게시물에 대한 링크는 ~/.bash_profile (또는 일부 시스템에서는 ~/.profile)을 수정하고 값을 내 보내면 표시되는 문제를 해결할 수 있음을 암시합니다. 파일을 수정하도록 선택하는 경우 먼저 백업해야합니다 (경우에 따라!).

http://patrick.arminio.info/blog/2012/02/fix-valueerror-unknown-locale-utf8/