2013-10-19 33 views
1

我使用的是Ubuntu 12.04和Python 2.7.3,我想用Sphinx 1.2b3 python包的設置選項來創建一個分配封裝,使用此命令將其上傳到PyPI將服務器:錯誤:命令'gpg'失敗,退出狀態2時創建Sphinx python包的dist

python setup.py register -r <MY_PYPI_SERVER> sdist upload -r <MY_PYPI_SERVER> 

我用別人Python包該命令和它工作得很好,但與獅身人面像得到了以下錯誤(也有的命令出來加入到幫助):

hard linking utils/check_sources.py -> Sphinx-1.2b3/utils 
hard linking utils/convert.py -> Sphinx-1.2b3/utils 
hard linking utils/pylintrc -> Sphinx-1.2b3/utils 
hard linking utils/reindent.py -> Sphinx-1.2b3/utils 
copying setup.cfg -> Sphinx-1.2b3 
Writing Sphinx-1.2b3/setup.cfg 
Creating tar archive 
removing 'Sphinx-1.2b3' (and everything under it) 
running upload 
gpg --detach-sign --local-user 36580288 -a dist/Sphinx-1.2b3.tar.gz 
gpg: skipped "36580288": secret key not available 
gpg: signing failed: secret key not available 
error: command 'gpg' failed with exit status 2 

之後,包不是上傳到pypi服務器,那麼任何幫助解決它?我需要安裝一些東西?

感謝

回答

1

您正在嘗試與不屬於你一個GPG密鑰簽署(和你不具備私鑰)。您的示例中的關鍵字0x36580288屬於Georg Brandl。您需要使用自己的密鑰或用您爲簽名軟件分發創建的密鑰在軟件包上簽名。

相關問題