Python gsutil复制失败,出现异常can';不要开始新的线程

Python gsutil复制失败,出现异常can';不要开始新的线程,python,copy,google-cloud-storage,gsutil,gcp,Python,Copy,Google Cloud Storage,Gsutil,Gcp,我正在尝试从本地复制到谷歌云存储 String gsutilCommand = String.format("gsutil -m cp -r %s %s", localPath, gcsPath); ProcessBuilder pb = new ProcessBuilder(new String[] { "bash", "-c", gsutilCommand }); pb.redirectErrorStream(true); Process process = pb.start(); P

我正在尝试从本地复制到谷歌云存储

String gsutilCommand = String.format("gsutil -m cp -r %s %s", localPath, gcsPath);
ProcessBuilder pb = new ProcessBuilder(new String[] { "bash", "-c", gsutilCommand });
pb.redirectErrorStream(true);
Process process = pb.start();

  Process Process-6:Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in 
  _bootstrap
  error: can't start new thread
  self.run()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
  self._target(*self._args, **self._kwargs)
  File "/root/google-cloud-sdk/platform/gsutil/gslib/command.py", line 1716, in _ApplyThreads
       status_queue=status_queue)
  File "/root/google-cloud-sdk/platform/gsutil/gslib/command.py", line 2006, in __init__
       worker_thread.start()
  File "/usr/lib/python2.7/threading.py", line 745, in start
       _start_new_thread(self.__bootstrap, ())
  error: can't start new thread
       self.run()

你在OSX上吗?这可能是ulimit问题。不,ubuntu@jterraceCan您可以检查
ulimit-u
的值吗?您使用的是OS X吗?这可能是ulimit问题。不,ubuntu@jterracece您可以检查
ulimit-u
的值吗?