Please submit a ticket: http://code.google.com/p/web2py/issues/list

On Thursday, October 27, 2011 1:18:45 AM UTC-4, Rahul wrote:
>
> Hi All, 
>       Not sure if this issue with 1.99.2 is reported - 
>
> When I am running web2py on my local (Windows 7, IE9 or Firefox 
> latest)  and going to Installed applications and do the below - 
>
> admin (currently running) 
> Click --> Clean button 
>
> I get the below ticket - 
>
> Traceback (most recent call last):  File "D:\WEB2PY\web2py\gluon 
> \restricted.py", line 194, in restricted    exec ccode in environment 
> File "D:/WEB2PY/web2py/applications/admin/controllers/default.py", 
> line 1225, in <module>  File "D:\WEB2PY\web2py\gluon\globals.py", line 
> 149, in <lambda>    self._caller = lambda f: f()  File "D:/WEB2PY/ 
> web2py/applications/admin/controllers/default.py", line 280, in 
> cleanup    clean = app_cleanup(app, request)  File "D:\WEB2PY\web2py 
> \gluon\admin.py", line 117, in app_cleanup    if f[:1]!='.': 
> recursive_unlink(os.path.join(path,f))  File "D:\WEB2PY\web2py\gluon 
> \fileutils.py", line 132, in recursive_unlink 
> os.unlink(f)WindowsError: [Error 32] The process cannot access the 
> file because it is being used by another process: 'D:/WEB2PY/web2py/ 
> applications/admin/sessions/127.0.0.1-58ea1938-a028-420b- 
> aa3f-732661b8789d' 
>
>
> Code listing 
> 127.128.129.130.131.132.133.134.135.136.     if 
> os.path.isdir(f):        for s in os.listdir(f): 
> recursive_unlink(os.path.join(f,s))        os.rmdir(f)    elif 
> os.path.isfile(f):        os.unlink(f)def cleanpath(path):    """ 
>
>  Variables 
> os.unlink 
> <built-in function unlink> 
>
> global os 
> <module 'os' from 'C:\Python27\lib\os.pyc'> 
> f 
>
> 'D:/WEB2PY/web2py/applications/admin/sessions/127.0.0.1-58ea1938- 
> a028-420b-aa3f-732661b8789d' 
>
> Thanks Rahul D

Reply via email to