On Sun, Nov 1, 2009 at 10:12 AM, Jason S. <[email protected]> wrote: > > On Oct 29, 2:19 pm, reco <[email protected]> wrote: > >> File "lib/setuptools-0.6c11-py2.5.egg/pkg_resources.py", line 24, in >> <module> >> from os import utime, rename, unlink, mkdir >> ImportError: cannot import name mkdir >> INFO 2009-10-29 19:56:30,793 dev_appser > > Actually, the latest setuptools is what changed. There didn't used to > be a specific import of mkdir.
This is an App Engine bug then and should be raised on is issue tracker. They specifically made App Engine compatible with Setuptools, so they;'re probably not aware the latest version broke. (They don't use Setuptools themselves.) > This leaves you > open to breakage from something else the next time you upgrade any > third-party deps, of course. This is one of the general limitations of App Engine. It works best with packages that are written for it, or at least don't do any disk I/O. > As for what will raise errors, the GAE Python runtime docs make the oh- > so-helpful statement that "the os module is available, but with > unsupported features disabled," without mentioning exact function > names. I generated a list, though, and it's pretty long. Another issue > is that while some will raise ImportError/AttributeError (e.g. > os.mkdir), others will import fine but not work (tempfile.mkstemp). > > Has anyone published a list of standard library functions that result > in ImportError/AttributeError when accessed under GAE? Otherwise, I > might create an automated process for locating them dynamically, for, > eh, fun or something. There is probably a list somewhere. If not, you can write a quick webapp to test all of them. I don't think they'll be changing the list. They're pretty smart about backward compatibility, which is why runtime version 1 is sticking with Python 2.5. -- Mike Orr <[email protected]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
