我正在尝试设置本地 pypi 服务器。我使用pep381client来同步官方的 PYPI 服务器。
它工作正常。但是今天我遇到了一个问题:我停止(通过Ctr + C)然后重新启动,pep381run引发错误如下:
E:\tmp>pep381run.py pypi
Synchronizing OBITools
Copying /packages/source/O/OBITools/OBITools-0.2.000.tar.gz
Copying /packages/source/O/OBITools/OBITools-0.2.002.tar.gz
Copying /packages/source/O/OBITools/OBITools-00.02.503.tar.gz
Copying /packages/source/O/OBITools/OBITools-00.02.500.tar.gz
Traceback (most recent call last):
File "D:\Python27\Scripts\pep381run.py", line 31, in <module>
state.synchronize()
File "D:\Python27\lib\site-packages\pep381client\__init__.py", line 119, in synchronize
self._synchronize()
File "D:\Python27\lib\site-packages\pep381client\__init__.py", line 159, in _synchronize
self.maybe_copy_file(project, file)
File "D:\Python27\lib\site-packages\pep381client\__init__.py", line 237, in maybe_copy_file
r = h.getresponse()
File "D:\Python27\lib\httplib.py", line 1033, in getresponse
raise ResponseNotReady()
httplib.ResponseNotReady
任何想法 ?