ImportError: cannot import name timegm

  • Greg Heidorn

    Greg Heidorn - 2009-02-26

    I am running PyDev on Leopard and when configuring my existing Google AppEngine project's run configuration, I get the following error:

    Traceback (most recent call last):

      File "/usr/local/google_appengine/", line 60, in <module>

        run_file(__file__, globals())

      File "/usr/local/google_appengine/", line 57, in run_file

        execfile(script_path, globals_)

      File "/Applications/", line 463, in <module>


      File "/Applications/", line 385, in main


      File "/Applications/", line 81, in SetGlobals

        from import appcfg

      File "/Applications/", line 55, in <module>

        from import appengine_rpc

      File "/Applications/", line 21, in <module>

        import cookielib

      File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/", line 37, in <module>

        from calendar import timegm

    ImportError: cannot import name timegm

    I've reconfigured a bunch of times but no luck.  I did notice that my forced built-in list seems a lot shorter (fewer modules) than my Vista installation.  Any help would be most appreciated!

    • Fabio Zadrozny

      Fabio Zadrozny - 2009-02-26

      Have you configured your path as:



    • Greg Heidorn

      Greg Heidorn - 2009-02-27

      Yes, my system PYTHONPATH has the following System Libs:


      My project PYTHONPATH has my project src directory and then the following external source folders:


      Any of that look funny?

      • Fabio Zadrozny

        Fabio Zadrozny - 2009-03-11

        Sorry for the delay... This got lost in my pile of things TODO.

        So, did you fix it? I was thinking... are you able to run it from the command line?




Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks