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 178429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:13:47+00:00 2026-05-11T14:13:47+00:00

I’m getting this error Traceback (most recent call last): File /home/<username>/flup/server/fcgi_base.py, line 558, in

  • 0

I’m getting this error

Traceback (most recent call last):   File '/home/<username>/flup/server/fcgi_base.py', line 558, in run   File '/home/<username>/flup/server/fcgi_base.py', line 1116, in handler   File '/home/<username>/python/django/django/core/handlers/wsgi.py', line 241, in __call__     response = self.get_response(request)   File '/home/<username>/python/django/django/core/handlers/base.py', line 73, in get_response     response = middleware_method(request)   File '/home/<username>/python/django/django/contrib/sessions/middleware.py', line 10, in process_request     engine = import_module(settings.SESSION_ENGINE)   File '/home/<username>/python/django/django/utils/importlib.py', line 35, in import_module     __import__(name)   File '/home/<username>/python/django/django/contrib/sessions/backends/db.py', line 2, in ?     from django.contrib.sessions.models import Session   File '/home/<username>/python/django/django/contrib/sessions/models.py', line 4, in ?     from django.db import models   File '/home/<username>/python/django/django/db/__init__.py', line 41, in ?     backend = load_backend(settings.DATABASE_ENGINE)   File '/home/<username>/python/django/django/db/__init__.py', line 17, in load_backend     return import_module('.base', 'django.db.backends.%s' % backend_name)   File '/home/<username>/python/django/django/utils/importlib.py', line 35, in import_module     __import__(name)   File '/home/<username>/python/django/django/db/backends/mysql/base.py', line 13, in ?     raise ImproperlyConfigured('Error loading MySQLdb module: %s' % e) ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb 

when I try to run this script on my shared server

#!/usr/bin/python import sys, os  sys.path.insert(0, '/home/<username>/python/django') sys.path.insert(0, '/home/<username>/python/django/www') # projects directory  os.chdir('/home/<username>/python/django/www/<project>') os.environ['DJANGO_SETTINGS_MODULE'] = '<project>.settings'  from django.core.servers.fastcgi import runfastcgi runfastcgi(method='threaded', daemonize='false') 

But, my web host just installed MySQLdb for me a few hours ago. When I run python from the shell I can import MySQLdb just fine. Why would this script report that it can’t find it?

  • 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. 2026-05-11T14:13:47+00:00Added an answer on May 11, 2026 at 2:13 pm

    You are missing the python-mysql db driver on your python path. see if you can figure out the pythonpath WSGI is seeing… which can be different from what you are experiencing in shell

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I want use html5's new tag to play a wav file (currently only supported
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.