python - Google App Engine - Hello World Tutorial - Segmentation Fault -


i starting use google app engine , have started running tutorial. when this:

$ python2.5 google_appengine/dev_appserver.py helloworld/  

it says 'segmentation fault'.

i running ubuntu 10.10. installed python 2.5 site this site.

the reason have python2.5 @ beginning of command did altinstall of python 2.5 still able use python 2.7.

everything looks should work isn't. know issue is?

i able run python 2.5 interactively. when run dev_appserver.py seg fault. did more tests , when run:

$ ./google_appengine/dev_appserver.py 

it gives me seg fault. don't know if helps, thought might.

i ran verbose output:

# installing zipimport hook import zipimport # builtin # installed zipimport hook # /usr/local/lib/python2.5/site.pyc matches /usr/local/lib/python2.5/site.py import site # precompiled /usr/local/lib/python2.5/site.pyc # /usr/local/lib/python2.5/os.pyc matches /usr/local/lib/python2.5/os.py import os # precompiled /usr/local/lib/python2.5/os.pyc import errno # builtin import posix # builtin # /usr/local/lib/python2.5/posixpath.pyc matches /usr/local/lib/python2.5/posixpath.py import posixpath # precompiled /usr/local/lib/python2.5/posixpath.pyc # /usr/local/lib/python2.5/stat.pyc matches /usr/local/lib/python2.5/stat.py import stat # precompiled /usr/local/lib/python2.5/stat.pyc # /usr/local/lib/python2.5/userdict.pyc matches /usr/local/lib/python2.5/userdict.py import userdict # precompiled /usr/local/lib/python2.5/userdict.pyc # /usr/local/lib/python2.5/copy_reg.pyc matches /usr/local/lib/python2.5/copy_reg.py import copy_reg # precompiled /usr/local/lib/python2.5/copy_reg.pyc # /usr/local/lib/python2.5/types.pyc matches /usr/local/lib/python2.5/types.py import types # precompiled /usr/local/lib/python2.5/types.pyc import _types # builtin # /usr/local/lib/python2.5/warnings.pyc matches /usr/local/lib/python2.5/warnings.py import warnings # precompiled /usr/local/lib/python2.5/warnings.pyc # /usr/local/lib/python2.5/linecache.pyc matches /usr/local/lib/python2.5/linecache.py import linecache # precompiled /usr/local/lib/python2.5/linecache.pyc import encodings # directory /usr/local/lib/python2.5/encodings # /usr/local/lib/python2.5/encodings/__init__.pyc matches /usr/local/lib/python2.5/encodings/__init__.py import encodings # precompiled /usr/local/lib/python2.5/encodings/__init__.pyc # /usr/local/lib/python2.5/codecs.pyc matches /usr/local/lib/python2.5/codecs.py import codecs # precompiled /usr/local/lib/python2.5/codecs.pyc import _codecs # builtin # /usr/local/lib/python2.5/encodings/aliases.pyc matches /usr/local/lib/python2.5/encodings/aliases.py import encodings.aliases # precompiled /usr/local/lib/python2.5/encodings/aliases.pyc # /usr/local/lib/python2.5/encodings/utf_8.pyc matches /usr/local/lib/python2.5/encodings/utf_8.py import encodings.utf_8 # precompiled /usr/local/lib/python2.5/encodings/utf_8.pyc python 2.5.5 (r255:77872, feb 17 2011, 21:03:23)  [gcc 4.4.5] on linux2 type "help", "copyright", "credits" or "license" more information. import google # directory /home/admin/google_app_engine/google_appengine/google # /home/admin/google_app_engine/google_appengine/google/__init__.pyc matches /home/admin/google_app_engine/google_appengine/google/__init__.py import google # precompiled /home/admin/google_app_engine/google_appengine/google/__init__.pyc import google.appengine # directory /home/admin/google_app_engine/google_appengine/google/appengine # /home/admin/google_app_engine/google_appengine/google/appengine/__init__.pyc matches /home/admin/google_app_engine/google_appengine/google/appengine/__init__.py import google.appengine # precompiled /home/admin/google_app_engine/google_appengine/google/appengine/__init__.pyc import google.appengine.tools # directory /home/admin/google_app_engine/google_appengine/google/appengine/tools # /home/admin/google_app_engine/google_appengine/google/appengine/tools/__init__.pyc matches /home/admin/google_app_engine/google_appengine/google/appengine/tools/__init__.py import google.appengine.tools # precompiled /home/admin/google_app_engine/google_appengine/google/appengine/tools/__init__.pyc # /home/admin/google_app_engine/google_appengine/google/appengine/tools/os_compat.pyc matches /home/admin/google_app_engine/google_appengine/google/appengine/tools/os_compat.py import google.appengine.tools.os_compat # precompiled /home/admin/google_app_engine/google_appengine/google/appengine/tools/os_compat.pyc dlopen("/usr/local/lib/python2.5/lib-dynload/time.so", 2); import time # dynamically loaded /usr/local/lib/python2.5/lib-dynload/time.so # /usr/local/lib/python2.5/getopt.pyc matches /usr/local/lib/python2.5/getopt.py import getopt # precompiled /usr/local/lib/python2.5/getopt.pyc import logging # directory /usr/local/lib/python2.5/logging # /usr/local/lib/python2.5/logging/__init__.pyc matches /usr/local/lib/python2.5/logging/__init__.py import logging # precompiled /usr/local/lib/python2.5/logging/__init__.pyc # /usr/local/lib/python2.5/string.pyc matches /usr/local/lib/python2.5/string.py import string # precompiled /usr/local/lib/python2.5/string.pyc # /usr/local/lib/python2.5/re.pyc matches /usr/local/lib/python2.5/re.py import re # precompiled /usr/local/lib/python2.5/re.pyc # /usr/local/lib/python2.5/sre_compile.pyc matches /usr/local/lib/python2.5/sre_compile.py import sre_compile # precompiled /usr/local/lib/python2.5/sre_compile.pyc import _sre # builtin # /usr/local/lib/python2.5/sre_constants.pyc matches /usr/local/lib/python2.5/sre_constants.py import sre_constants # precompiled /usr/local/lib/python2.5/sre_constants.pyc # /usr/local/lib/python2.5/sre_parse.pyc matches /usr/local/lib/python2.5/sre_parse.py import sre_parse # precompiled /usr/local/lib/python2.5/sre_parse.pyc dlopen("/usr/local/lib/python2.5/lib-dynload/strop.so", 2); import strop # dynamically loaded /usr/local/lib/python2.5/lib-dynload/strop.so dlopen("/usr/local/lib/python2.5/lib-dynload/cstringio.so", 2); import cstringio # dynamically loaded /usr/local/lib/python2.5/lib-dynload/cstringio.so # /usr/local/lib/python2.5/traceback.pyc matches /usr/local/lib/python2.5/traceback.py import traceback # precompiled /usr/local/lib/python2.5/traceback.pyc import thread # builtin # /usr/local/lib/python2.5/threading.pyc matches /usr/local/lib/python2.5/threading.py import threading # precompiled /usr/local/lib/python2.5/threading.pyc dlopen("/usr/local/lib/python2.5/lib-dynload/collections.so", 2); import collections # dynamically loaded /usr/local/lib/python2.5/lib-dynload/collections.so # /usr/local/lib/python2.5/atexit.pyc matches /usr/local/lib/python2.5/atexit.py import atexit # precompiled /usr/local/lib/python2.5/atexit.pyc # /usr/local/lib/python2.5/tempfile.pyc matches /usr/local/lib/python2.5/tempfile.py import tempfile # precompiled /usr/local/lib/python2.5/tempfile.pyc # /usr/local/lib/python2.5/random.pyc matches /usr/local/lib/python2.5/random.py import random # precompiled /usr/local/lib/python2.5/random.pyc dlopen("/usr/local/lib/python2.5/lib-dynload/math.so", 2); import math # dynamically loaded /usr/local/lib/python2.5/lib-dynload/math.so dlopen("/usr/local/lib/python2.5/lib-dynload/binascii.so", 2); import binascii # dynamically loaded /usr/local/lib/python2.5/lib-dynload/binascii.so dlopen("/usr/local/lib/python2.5/lib-dynload/_random.so", 2); import _random # dynamically loaded /usr/local/lib/python2.5/lib-dynload/_random.so dlopen("/usr/local/lib/python2.5/lib-dynload/fcntl.so", 2); import fcntl # dynamically loaded /usr/local/lib/python2.5/lib-dynload/fcntl.so import google.appengine.api # directory /home/admin/google_app_engine/google_appengine/google/appengine/api # /home/admin/google_app_engine/google_appengine/google/appengine/api/__init__.pyc matches /home/admin/google_app_engine/google_appengine/google/appengine/api/__init__.py import google.appengine.api # precompiled /home/admin/google_app_engine/google_appengine/google/appengine/api/__init__.pyc # /home/admin/google_app_engine/google_appengine/google/appengine/api/yaml_errors.pyc matches /home/admin/google_app_engine/google_appengine/google/appengine/api/yaml_errors.py import google.appengine.api.yaml_errors # precompiled /home/admin/google_app_engine/google_appengine/google/appengine/api/yaml_errors.pyc import google.appengine.dist # directory /home/admin/google_app_engine/google_appengine/google/appengine/dist # /home/admin/google_app_engine/google_appengine/google/appengine/dist/__init__.pyc matches /home/admin/google_app_engine/google_appengine/google/appengine/dist/__init__.py import google.appengine.dist # precompiled /home/admin/google_app_engine/google_appengine/google/appengine/dist/__init__.pyc # /home/admin/google_app_engine/google_appengine/google/appengine/dist/_library.pyc matches /home/admin/google_app_engine/google_appengine/google/appengine/dist/_library.py import google.appengine.dist._library # precompiled /home/admin/google_app_engine/google_appengine/google/appengine/dist/_library.pyc import distutils # directory /usr/local/lib/python2.5/distutils # /usr/local/lib/python2.5/distutils/__init__.pyc matches /usr/local/lib/python2.5/distutils/__init__.py import distutils # precompiled /usr/local/lib/python2.5/distutils/__init__.pyc # /usr/local/lib/python2.5/distutils/version.pyc matches /usr/local/lib/python2.5/distutils/version.py import distutils.version # precompiled /usr/local/lib/python2.5/distutils/version.pyc # /home/admin/google_app_engine/google_appengine/google/appengine/dist/py_zipimport.pyc matches /home/admin/google_app_engine/google_appengine/google/appengine/dist/py_zipimport.py import google.appengine.dist.py_zipimport # precompiled /home/admin/google_app_engine/google_appengine/google/appengine/dist/py_zipimport.pyc # /usr/local/lib/python2.5/zipfile.pyc matches /usr/local/lib/python2.5/zipfile.py import zipfile # precompiled /usr/local/lib/python2.5/zipfile.pyc # /usr/local/lib/python2.5/struct.pyc matches /usr/local/lib/python2.5/struct.py import struct # precompiled /usr/local/lib/python2.5/struct.pyc dlopen("/usr/local/lib/python2.5/lib-dynload/_struct.so", 2); import _struct # dynamically loaded /usr/local/lib/python2.5/lib-dynload/_struct.so dlopen("/usr/local/lib/python2.5/lib-dynload/zlib.so", 2); import zlib # dynamically loaded /usr/local/lib/python2.5/lib-dynload/zlib.so # /home/admin/google_app_engine/google_appengine/google/appengine/tools/appcfg.pyc matches /home/admin/google_app_engine/google_appengine/google/appengine/tools/appcfg.py import google.appengine.tools.appcfg # precompiled /home/admin/google_app_engine/google_appengine/google/appengine/tools/appcfg.pyc # /usr/local/lib/python2.5/calendar.pyc matches /usr/local/lib/python2.5/calendar.py import calendar # precompiled /usr/local/lib/python2.5/calendar.pyc # /usr/local/lib/python2.5/__future__.pyc matches /usr/local/lib/python2.5/__future__.py import __future__ # precompiled /usr/local/lib/python2.5/__future__.pyc dlopen("/usr/local/lib/python2.5/lib-dynload/datetime.so", 2); import datetime # dynamically loaded /usr/local/lib/python2.5/lib-dynload/datetime.so # /usr/local/lib/python2.5/locale.pyc matches /usr/local/lib/python2.5/locale.py import locale # precompiled /usr/local/lib/python2.5/locale.pyc dlopen("/usr/local/lib/python2.5/lib-dynload/_locale.so", 2); import _locale # dynamically loaded /usr/local/lib/python2.5/lib-dynload/_locale.so dlopen("/usr/local/lib/python2.5/lib-dynload/operator.so", 2); import operator # dynamically loaded /usr/local/lib/python2.5/lib-dynload/operator.so # /usr/local/lib/python2.5/getpass.pyc matches /usr/local/lib/python2.5/getpass.py import getpass # precompiled /usr/local/lib/python2.5/getpass.pyc dlopen("/usr/local/lib/python2.5/lib-dynload/termios.so", 2); import termios # dynamically loaded /usr/local/lib/python2.5/lib-dynload/termios.so # /usr/local/lib/python2.5/mimetypes.pyc matches /usr/local/lib/python2.5/mimetypes.py import mimetypes # precompiled /usr/local/lib/python2.5/mimetypes.pyc # /usr/local/lib/python2.5/urllib.pyc matches /usr/local/lib/python2.5/urllib.py import urllib # precompiled /usr/local/lib/python2.5/urllib.pyc # /usr/local/lib/python2.5/socket.pyc matches /usr/local/lib/python2.5/socket.py import socket # precompiled /usr/local/lib/python2.5/socket.pyc import _socket # builtin import _ssl # builtin # /usr/local/lib/python2.5/urlparse.pyc matches /usr/local/lib/python2.5/urlparse.py import urlparse # precompiled /usr/local/lib/python2.5/urlparse.pyc # /usr/local/lib/python2.5/optparse.pyc matches /usr/local/lib/python2.5/optparse.py import optparse # precompiled /usr/local/lib/python2.5/optparse.pyc # /usr/local/lib/python2.5/textwrap.pyc matches /usr/local/lib/python2.5/textwrap.py import textwrap # precompiled /usr/local/lib/python2.5/textwrap.pyc # /usr/local/lib/python2.5/gettext.pyc matches /usr/local/lib/python2.5/gettext.py import gettext # precompiled /usr/local/lib/python2.5/gettext.pyc # /usr/local/lib/python2.5/copy.pyc matches /usr/local/lib/python2.5/copy.py import copy # precompiled /usr/local/lib/python2.5/copy.pyc # /usr/local/lib/python2.5/sha.pyc matches /usr/local/lib/python2.5/sha.py import sha # precompiled /usr/local/lib/python2.5/sha.pyc # /usr/local/lib/python2.5/hashlib.pyc matches /usr/local/lib/python2.5/hashlib.py import hashlib # precompiled /usr/local/lib/python2.5/hashlib.pyc dlopen("/usr/local/lib/python2.5/lib-dynload/_hashlib.so", 2); import _hashlib # dynamically loaded /usr/local/lib/python2.5/lib-dynload/_hashlib.so segmentation fault 

i examined verbose output , noted bottommost line

import _hashlib # dynamically loaded /usr/local/lib/python2.5/lib-dynload/_hashlib.so 

so ran couple more tests, , when ran python 2.5 interactively , tried import _hashlib module, worked, there no errors.

i went this blog , tried approach. did not work either.

sorry, don't have rep leave comments, i'll have leave answer.

assuming you've verified google app engine install isn't corrupted, first instinct python2.5 install using files python2.7, causing segfault. try running strace -o "log.txt" python2.5 ./google_appengine/dev_appserver.py. give ton of output log.txt, try grepping find files being loaded 2.7 installation.

if doesn't lead anything, try running under gdb stacktrace. this'll require installing python interpreter w/ debugging symbols -- not wanted hear, it's quickest way figure out what's going on. instructions here: http://wiki.python.org/moin/debuggingwithgdb if stack trace doesn't make obvious what's happening, post python mailing list or bug tracker, , should able you.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -