Closed GoogleCodeExporter closed 9 years ago
Just confirmed this still occurs in GAE 1.1.3
Original comment by michael....@gmail.com
on 16 Sep 2008 at 6:21
Please report this to the Django folks. They would like to be able to run
without a
writable filesystem.
I suspect that if you patch os.unlink() to be a no-op, something else will fail,
because it's probably unlinking in anticipation of writing a temp file, which
will
also fail...
Original comment by gvanrossum@gmail.com
on 16 Sep 2008 at 2:23
OK, no probs - I'm not sure of the best way to go about it - just checking for
the
presence (or lack thereof) of os.unlink works fine, but I don't know if there's
a
better way to deal with a non-writable filesystem as a whole.
I've created a ticket (and patch) at Django here:
http://code.djangoproject.com/ticket/9115
Original comment by michael....@gmail.com
on 17 Sep 2008 at 12:25
[deleted comment]
I am trying to write a webapp which does an urllib.urlopen to an outside URL.
And as
it appears, urllib - like django - tries to use os.unlink. here is part of the
stack
trace:
f = urllib.urlopen(self.fURL,postData)
File "/usr/lib64/python2.5/urllib.py", line 77, in urlopen
opener = FancyURLopener()
File "/usr/lib64/python2.5/urllib.py", line 609, in __init__
URLopener.__init__(self, *args, **kwargs)
File "/usr/lib64/python2.5/urllib.py", line 123, in __init__
self.__unlink = os.unlink # See cleanup()
AttributeError: 'module' object has no attribute 'unlink'
Original comment by jayeshsa...@gmail.com
on 24 Oct 2008 at 4:37
@jayeshsalvi - don't use urllib, use google.appengine.api.urlfetch. See
http://code.google.com/appengine/docs/urlfetch/
Original comment by gvanrossum@gmail.com
on 24 Oct 2008 at 5:43
@gvanrossum - Thanks a lot. That works for me.
Original comment by jayeshsa...@gmail.com
on 25 Oct 2008 at 2:56
Here we go! as attach!
Original comment by guiyang...@gmail.com
on 13 Jan 2009 at 3:25
Attachments:
@guiyang923: Sorry, we can't accept patches to Django here. Please comment on
the
Django ticket already created: http://code.djangoproject.com/ticket/9115
Original comment by gvanrossum@gmail.com
on 13 Jan 2009 at 3:40
It looks like GAE 1.3.6 contains fake os.unlink in dev_appserver.py, so I guess
this issue can be closed now.
Original comment by techtonik@gmail.com
on 26 Aug 2010 at 6:06
Seems to be resolved:
http://groups.google.com/group/codereview-discuss/msg/afb1699a16ee903d
Original comment by albrecht.andi
on 27 Aug 2010 at 12:50
Original issue reported on code.google.com by
michael....@gmail.com
on 16 Sep 2008 at 6:11Attachments: