【问题标题】:Android: Python errors when downloading source via CygwinAndroid:通过 Cygwin 下载源代码时出现 Python 错误
【发布时间】:2012-02-12 19:28:10
【问题描述】:

当我尝试在 Cygwin 中使用“repo”下载 Gingerbread 源时收到以下错误。

在我执行“repo sync”命令之前一切正常:

    7 [unknown (0x175C)] python 4232 fork: child 8044 - died waiting for dll loading, errno 11
85124 [unknown (0x1430)] python 4232 fork: child 6932 - died waiting for dll loading, errno 11
175810 [unknown (0xF38)] python 4232 fork: child 4536 - died waiting for dll loading, errno 11
266256 [unknown (0x8AC)] python 4232 fork: child 7564 - died waiting for dll loading, errno 11
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/David/.repo/repo/subcmds/sync.py", line 186, in _FetchHelper
current_branch_only=opt.current_branch_only)
File "/home/David/.repo/repo/project.py", line 910, in Sync_NetworkHalf
self._InitRemote()
File "/home/David/.repo/repo/project.py", line 1690, in _InitRemote
remote = self.GetRemote(self.remote.name)
File "/home/David/.repo/repo/project.py", line 612, in GetRemote
return self.config.GetRemote(name)
File "/home/David/.repo/repo/git_config.py", line 173, in GetRemote
r = Remote(self, name)
File "/home/David/.repo/repo/git_config.py", line 525, in __init__
self.url = self._Get('url')
File "/home/David/.repo/repo/git_config.py", line 656, in _Get
return self._config.GetString(key, all = all)
File "/home/David/.repo/repo/git_config.py", line 114, in GetString
v = self._cache[_key(name)]
File "/home/David/.repo/repo/git_config.py", line 231, in _cache
self._cache_dict = self._Read()
File "/home/David/.repo/repo/git_config.py", line 237, in _Read
d = self._ReadGit()
File "/home/David/.repo/repo/git_config.py", line 288, in _ReadGit
d = self._do('--null', '--list')
File "/home/David/.repo/repo/git_config.py", line 312, in _do
capture_stderr = True)
File "/home/David/.repo/repo/git_command.py", line 215, in __init__
raise GitError('%s: %s' % (command[1], e))
GitError: config: [Errno 11] Resource temporarily unavailable

Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/David/.repo/repo/subcmds/sync.py", line 186, in _FetchHelper
current_branch_only=opt.current_branch_only)
File "/home/David/.repo/repo/project.py", line 910, in Sync_NetworkHalf
self._InitRemote()
File "/home/David/.repo/repo/project.py", line 1690, in _InitRemote
remote = self.GetRemote(self.remote.name)
File "/home/David/.repo/repo/project.py", line 612, in GetRemote
return self.config.GetRemote(name)
File "/home/David/.repo/repo/git_config.py", line 173, in GetRemote
r = Remote(self, name)
File "/home/David/.repo/repo/git_config.py", line 525, in __init__
self.url = self._Get('url')
File "/home/David/.repo/repo/git_config.py", line 656, in _Get
return self._config.GetString(key, all = all)
File "/home/David/.repo/repo/git_config.py", line 114, in GetString
v = self._cache[_key(name)]
File "/home/David/.repo/repo/git_config.py", line 231, in _cache
self._cache_dict = self._Read()
File "/home/David/.repo/repo/git_config.py", line 237, in _Read
d = self._ReadGit()
File "/home/David/.repo/repo/git_config.py", line 288, in _ReadGit
d = self._do('--null', '--list')
File "/home/David/.repo/repo/git_config.py", line 312, in _do
capture_stderr = True)
File "/home/David/.repo/repo/git_command.py", line 215, in __init__
raise GitError('%s: %s' % (command[1], e))
GitError: config: [Errno 11] Resource temporarily unavailable

Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/David/.repo/repo/subcmds/sync.py", line 186, in _FetchHelper
current_branch_only=opt.current_branch_only)
File "/home/David/.repo/repo/project.py", line 910, in Sync_NetworkHalf
self._InitRemote()
File "/home/David/.repo/repo/project.py", line 1690, in _InitRemote
remote = self.GetRemote(self.remote.name)
File "/home/David/.repo/repo/project.py", line 612, in GetRemote
return self.config.GetRemote(name)
File "/home/David/.repo/repo/git_config.py", line 173, in GetRemote
r = Remote(self, name)
File "/home/David/.repo/repo/git_config.py", line 525, in __init__
self.url = self._Get('url')
File "/home/David/.repo/repo/git_config.py", line 656, in _Get
return self._config.GetString(key, all = all)
File "/home/David/.repo/repo/git_config.py", line 114, in GetString
v = self._cache[_key(name)]
File "/home/David/.repo/repo/git_config.py", line 231, in _cache
self._cache_dict = self._Read()
File "/home/David/.repo/repo/git_config.py", line 237, in _Read
d = self._ReadGit()
File "/home/David/.repo/repo/git_config.py", line 288, in _ReadGit
d = self._do('--null', '--list')
File "/home/David/.repo/repo/git_config.py", line 312, in _do
capture_stderr = True)
File "/home/David/.repo/repo/git_command.py", line 215, in __init__
raise GitError('%s: %s' % (command[1], e))
GitError: config: [Errno 11] Resource temporarily unavailable

Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/David/.repo/repo/subcmds/sync.py", line 186, in _FetchHelper
current_branch_only=opt.current_branch_only)
File "/home/David/.repo/repo/project.py", line 910, in Sync_NetworkHalf
self._InitRemote()
File "/home/David/.repo/repo/project.py", line 1690, in _InitRemote
remote = self.GetRemote(self.remote.name)
File "/home/David/.repo/repo/project.py", line 612, in GetRemote
return self.config.GetRemote(name)
File "/home/David/.repo/repo/git_config.py", line 173, in GetRemote
r = Remote(self, name)
File "/home/David/.repo/repo/git_config.py", line 525, in __init__
self.url = self._Get('url')
File "/home/David/.repo/repo/git_config.py", line 656, in _Get
return self._config.GetString(key, all = all)
File "/home/David/.repo/repo/git_config.py", line 114, in GetString
v = self._cache[_key(name)]
File "/home/David/.repo/repo/git_config.py", line 231, in _cache
self._cache_dict = self._Read()
File "/home/David/.repo/repo/git_config.py", line 237, in _Read
d = self._ReadGit()
File "/home/David/.repo/repo/git_config.py", line 288, in _ReadGit
d = self._do('--null', '--list')
File "/home/David/.repo/repo/git_config.py", line 312, in _do
capture_stderr = True)
File "/home/David/.repo/repo/git_command.py", line 215, in __init__
raise GitError('%s: %s' % (command[1], e))
GitError: config: [Errno 11] Resource temporarily unavailable


error: Exited sync due to fetch errors

谁能告诉我这里可能是什么问题?

谢谢

【问题讨论】:

    标签: android cygwin repository


    【解决方案1】:

    我也有同样的问题,不知道是不是和这里描述的问题有关: http://cygwin.com/faq/faq.using.html#faq.using.bloda

    似乎“随机分叉失败”可能是原因,但我不确定如何确定哪个 Windows 软件可能是问题所在;该列表中没有任何内容对我产生影响。

    【讨论】:

    • 我刚刚在“带网络连接的安全模式”(Win7 Pro 32 位)下再次尝试,出现了同样的错误,因此干扰 Windows 插件的解释现在似乎不太合理了。
    • 还尝试降级到 Python 2.6.5 并运行“rebaseall”,仍然是同样的问题。
    • 已经尝试使用各种不同的基地址进行 rebaseall 无效,我现在已经放弃尝试使用 cygwin 并改用 Linux 虚拟机(这不是没有它也有问题,但那是另一回事了。)
    【解决方案2】:

    试试

    repo sync -j1 
    

    我认为 Cygwin 不支持多线程。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-03
      • 2011-05-20
      • 2015-07-23
      相关资源
      最近更新 更多