title: Cannot copy file from a remote machine using shutil
body: <p>I need to copy a file from a remote machine.</p>
  
  <p>The code is something like this</p>
  
  <pre><code>import shutil
  
  shutil.copyfile('//XXX.XXX.XXX.XXX/home/Shares Folder/file.txt','/home/file.txt')
  </code></pre>
  
  <p>the location of the file is a shared folder but everytime I run this it gives me this error</p>
  
  <blockquote>
    <p>File "", line 1, in ?</p>
    
    <p>File "usr/lib/python2.4/shutil.py", line 47, in copyfile</p>
    
    <p>frsc =  open (src,'rb')</p>
    
    <p>IOError: [Errno 2] No such file or directory :
    '//XXX.XXX.XXX.XXX/home/Shares Folder/file.txt'</p>
  </blockquote>
  
  <p>Please take note that I'm running this script in my current machine and the the file that I want to copy is in the remote machine. I am not sure if this detail's relevant, I'm saying anyway.</p>
  
  <p>Im 100% sure that the file is there so I was wondering why it's giving me such error message.</p>
  
  <p>Im using CentOS and python 2.4.3</p>
  
  <p>any ideas?</p>