"illegal seek" - error

191 views
Skip to first unread message

Droid

unread,
Oct 3, 2011, 3:42:27 AM10/3/11
to Google App Engine
I am getting an "illegal seek" error on a MacBook Air Lion OS. Did not
happen with everything the same but on Windows.

Anyone know anything about this error? Here is the log:

ERROR 2011-10-03 07:40:28,943 dev_appserver.py:4200] Exception
encountered handling request
Traceback (most recent call last):
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 4143, in _HandleRequest
self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 4049, in _Dispatch
base_env_dict=env_dict)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 616, in Dispatch
base_env_dict=base_env_dict)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 3120, in Dispatch
self._module_dict)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 3024, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/dev_appserver.py", line 2896, in
ExecuteOrImportScript
sys.stdout.seek(0)
IOError: [Errno 29] Illegal seek

Joshua Smith

unread,
Oct 3, 2011, 9:36:55 AM10/3/11
to google-a...@googlegroups.com
Have you tried deleting and re-installing the launcher? This could be as simple as having run out of disk space when you installed, or a permissions issue.

> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>

Droid

unread,
Oct 3, 2011, 1:59:15 PM10/3/11
to Google App Engine

its probably a permissions error- but which folder needs which
permission?
I have not seen any instructions about that. I just clicked the GAE
dmg file.

Bill

Droid

unread,
Oct 30, 2011, 3:23:59 PM10/30/11
to Google App Engine
Not disk space error - its a new Mac. Permissions? Not sure, no idea
where to start with that.
At present I am doing App Engine stuff on an old Windows machine.

Droid

unread,
Nov 8, 2011, 11:22:11 AM11/8/11
to Google App Engine
I am answer my own question.
I found this (not-nice line for MACs) line in my py code:

reload(sys); sys.setdefaultencoding('utf-8') # DO NOT USE ON A MAC!!

For some reason this reload is OK on Windows and the GAE but not on
the Mac local version - errors it out.

I do not know why MacBook Airs (Lion) do not like this.

I can understand why I got no replies now. ha ha!

Droid
Reply all
Reply to author
Forward
0 new messages