我正在使用zc.buildout,並且當我嘗試運行引導程序(第一次在新計算機上運行時)時,我收到以下錯誤:運行引導程序時出現「LookupError:unknown encoding:ascii」
>> python2.7 bootstrap.py
Traceback (most recent call last):
File "bootstrap.py", line 158, in <module>
import pkg_resources
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/pkg_resources.py", line 698, in <module>
class Environment(object):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/pkg_resources.py", line 701, in Environment
def __init__(self, search_path=None, platform=get_supported_platform(), python=PY_MAJOR):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/pkg_resources.py", line 99, in get_supported_platform
plat = 'macosx-%s-%s' % ('.'.join(_macosx_vers()[:2]), m.group(3))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/../../Extras/lib/python/pkg_resources.py", line 209, in _macosx_vers
_cache.append(mac_ver()[0].split('.'))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/platform.py", line 803, in mac_ver
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/platform.py", line 780, in _mac_ver_xml
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 78, in readPlist
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 406, in parse
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 418, in handleEndElement
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 452, in end_key
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 436, in getData
LookupError: unknown encoding: ascii
有沒有人看過這個或知道如何解決它?這似乎與獲取我的操作系統的當前版本有關。我的操作系統是Mac 10.8.2。
謝謝!
什麼是'bootstrap.py'? – dbr
@dbr使用[zc.buildout](http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py)時,我只遇到bootstrap.py - 但它從未像爆炸一樣這對我來說。這似乎是python安裝時遇到的一個問題,無論如何不是'bootstrap.py'。 – cji
對不起,我應該更具體。我更新了我的問題,以澄清我正在使用zc.buildout。 – jonsustar