Pathname problem

Just just at
Tue Apr 8 21:33:20 CEST 2003

In article <3e9321b5$1 at>, bourassa <bourassa-m at> 

> Hi there.  I am just trying to load files using PIL.  I get the following:
> Traceback (most recent call last):
>    File "<pyshell#13>", line 1, in ?
>    File "C:\Python22\Lib\site-packages\PIL\", line 1479, in open
>      fp =, "rb")
> IOError: [Errno 2] No such file or directory: 
> 'C:\\MATLAB6p1\toolbox\\pout.tif'
> I have stepped through and if the file in C:\ or C:\MATLAB6p1 it loads 
> with no problem.  The minute I try to get it out of "toolbox" (which 
> exists) I get the above error.  I'm using  PIL-1.1.4a3.win32 on a Win2K 
> PIV.  TIA.

Try to use forward slashes or raw strings (r"..."). "\toolbox" actually 
expands to "<TAB>oolbox" ;-)


More information about the Python-list mailing list