Satish ML wrote:

[You're back to turd-formatted text; please find a permanent fix for this]

>  C:\Desktop\salingeg\dest\code > Traceback (most recent call last): > File
>  "C:\Users\salingeg\Desktop\excel_1.py", line 24, in <module> > shut
>  il.copy(s, d) > File "C:\Program Files (x86)\python26\lib\shutil.py",
>  line 84, in copy > copyfile(src, dst) > File "C:\Program Files
>  (x86)\python26\lib\shutil.py", line 50, in > copyfile > with open (src,
>  'rb') as fsrc: > IOError: [Errno 2] No such file or directory: >
>  u'C:\\Desktop\\salingeg\\src\\code\\a.c' According to the error message
>  the file you are trying to copy doesn't exist. Have a look into the
>  C:\Desktop\salngeg\src\code folder, and check whether a file called a.c
>  is there. If not you have three options - add the file - remove the line
>  from the excel file - modify the code to check if the *source* file
>  exists
> 
> Hi,
> 
> Source file exists in the directory.

If you are *really* sure about this (please double-check) it may be a rights 
issue. Then make sure the user running the script has reading rights for the 
file.

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to