Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8516425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:25:27+00:00 2026-06-11T05:25:27+00:00

I am on OSX 10.6 and have recently upgraded my Python from 2.6 to

  • 0

I am on OSX 10.6 and have recently upgraded my Python from 2.6 to 2.7, so I had to upgrade python packages.

This time I decided to go with brew and installed sqlite, libspatialite and spatialite-tools with brew and brew doctor says everything is OK. At that time when I start my local development server (Django 1.4), it was complaining that the existing pysqlite does not support extension loading (which is required by SpatiaLite).

Then I downloaded pysqlite-2.6.3, unpacked, make the config change to enable extension loading, then did:

python setup.py build_static
python setup.py install

as described here.

When I run the dev server, now I am getting a “Segmentation Fault”. As this doesn’t tell much, I added settrace to Django’s manage.py just after import statements:

def trace(frame, event, arg):
    print "%s, %s:%d" % (event, frame.f_code.co_filename, frame.f_lineno)
    return trace

sys.settrace(trace)

The few lines before the Segmentation Fault are as follows:

...
call, /Users/omat/workspace/devspaces/env/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py:71
line, /Users/omat/workspace/devspaces/env/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py:71
call, /Users/omat/workspace/devspaces/env/lib/python2.7/encodings/utf_8.py:15
line, /Users/omat/workspace/devspaces/env/lib/python2.7/encodings/utf_8.py:16
return, /Users/omat/workspace/devspaces/env/lib/python2.7/encodings/utf_8.py:16
return, /Users/omat/workspace/devspaces/env/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py:71
Segmentation fault

Any ideas on what might be wrong and some help is much appreciated. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:25:29+00:00Added an answer on June 11, 2026 at 5:25 am

    Most likely you have a non-compatible SQLite or Python SQLite native bindings libraries mixed with your Python.

    Reinstall all packages in the question after Python upgrade.

    If you want to avoid problems like this altogether my suggestion would install Python, SQLite and Python bindings using a managed environment where all the packages come from the same source, like from Homebrew.

    If you manually install packages outside this environment then make sure a correct Python libraries and Python headers are used when compiling the native libraries. I.e if you use libraries from Homebrew, use Homebrew supplied Python and Python headers, not OSX defaults.

    How to trace segfaults in Python

    http://wiki.python.org/moin/DebuggingWithGdb

    This will tell you the actual problem and the individual library in the question which is failing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok so i recently upgraded my imac to mountain lion osx (10.8) from Lion.
I recently opened an existing project from a time before I installed Xcode 4.1.
I recently upgraded my Google App Engine launcher on my Mac, running OSX 10.5.8,
I recently installed (from the binary installers) GHC 6.12 and the Haskell Platform 2010.1.0.1
I think this question is quite common. Recently I have got a requirement that
I have recently shifted to OSX environment, so don't know much about MacPorts. Is
I've recently started using PHP for OO development. On OSX, I have outgrown Coda
I recently upgraded to osx 10.8 (Mtn Lion) and now I am having problems
I recently upgraded my OSX to mountain lion and ever since I cannot compile
Wow, this is frustrating. Recently upgraded to OS X 10.8 and Xcode 4.4.1 I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.