No module named os

321 views
Skip to first unread message

Ilia Lobsanov

unread,
Oct 4, 2008, 12:43:52 PM10/4/08
to Google App Engine
As of the 1.1.5 upgrade, I am getting this error when I try to access
my app using the dev server:

<type 'exceptions.ImportError'>: No module named os
args = ('No module named os',)
message = 'No module named os'

Any ideas?

Ilia Lobsanov

unread,
Oct 4, 2008, 12:52:58 PM10/4/08
to Google App Engine
oh and this is on mac os x 10.5.5

David Koblas

unread,
Oct 4, 2008, 1:00:41 PM10/4/08
to google-a...@googlegroups.com
Not sure about the Mac OS "bug", but on Windows with 1.1.4 there was a problem with os.unlink not being defined for another library I was using (it didn't use it, just referenced it).

Would it be possible for the Sandboxer to wrap the functions in things that raise exceptions rather than remove them from the namespace?  That way things would fail on call rather than fail on reference.

--koblas

Bruno Mihira

unread,
Oct 4, 2008, 1:14:18 PM10/4/08
to google-a...@googlegroups.com
I don't know but there is a creepy bug that some basic api functions stoped working after this update.
--
Bruno Mihira Silva Cavalcante
Gerente de Projetos
CITi - Centro Integrado de Tecnologia da Informação
+ 55 (81) 8785 1374
+ 55 (81) 2126 8430 r 4764
www.citi.org.br
Graduando em Ciência da Computação 2006.2 - CIn – UFPE
http://bmihira.blogspot.com/

Marzia Niccolai

unread,
Oct 6, 2008, 12:51:09 PM10/6/08
to google-a...@googlegroups.com
Hi Ilia,

What python installation have you set in your preferences for the MacLauncher?  Are you using the standard Mac python? Is this a fresh install of the launcher or did you just download the SDK?

Sorry for the lame advice but have you tried uninstalling and re-installing?  On 10.5.3 I'm able to call 'import os' with no errors (using /usr/local/bin/python), so consider me officially flummoxed this morning.

-Marzia

Josh Heitzman

unread,
Oct 6, 2008, 1:13:26 PM10/6/08
to Google App Engine
Can't speak for Mac or this specific SDK, but on Windows when I
upgraded to an earlier SDK release, I couldn't get my app working
again on the new release until I re-imaged my hard disk to GAE SDK
free image. This was after having uninstalled the older SDK before
installing the new one.

The problem I encountered was also module loading related.

On Oct 6, 9:51 am, "Marzia Niccolai" <ma...@google.com> wrote:
> Hi Ilia,
>
> What python installation have you set in your preferences for the
> MacLauncher? Are you using the standard Mac python? Is this a fresh install
> of the launcher or did you just download the SDK?
>
> Sorry for the lame advice but have you tried uninstalling and
> re-installing? On 10.5.3 I'm able to call 'import os' with no errors (using
> /usr/local/bin/python), so consider me officially flummoxed this morning.
>
> -Marzia
>

Ilia Lobsanov

unread,
Oct 13, 2008, 9:51:14 AM10/13/08
to Google App Engine
Uninstalling (trashing GoogleAppEngineLauncher from /Applications) and
reinstalling resolved my problem.

Thank you.

ilia.


On Oct 6, 1:13 pm, Josh Heitzman <JoshHeitz...@hotmail.com> wrote:
> Can't speak for Mac or this specific SDK, but on Windows when I
> upgraded to an earlier SDK release, I couldn't get my app working
> again on the new release until I re-imaged my hard disk to GAE SDK
> free image.  This was after having uninstalled the older SDK before
> installing the new one.
>
> The problem I encountered was alsomoduleloading related.
>
> On Oct 6, 9:51 am, "Marzia Niccolai" <ma...@google.com> wrote:
>
> > Hi Ilia,
>
> > What python installation have you set in your preferences for the
> > MacLauncher?  Are you using the standard Mac python? Is this a fresh install
> > of the launcher or did you just download the SDK?
>
> > Sorry for the lame advice but have you tried uninstalling and
> > re-installing?  On 10.5.3 I'm able to call 'importos' withnoerrors (using
> > /usr/local/bin/python), so consider me officially flummoxed this morning.
>
> > -Marzia
>
> > On Sat, Oct 4, 2008 at 9:52 AM, Ilia Lobsanov <samo...@gmail.com> wrote:
>
> > > oh and this is on macosx 10.5.5
Reply all
Reply to author
Forward
0 new messages