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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:51:20+00:00 2026-05-14T07:51:20+00:00

Everything works as supposed to on the Django development server. In Apache, the django

  • 0

Everything works as supposed to on the Django development server. In Apache, the django app also works except when matplotlib is used. Here’s the error I get:

No module named multiarray.

Exception Type: ImportError 
Exception Value: No module named multiarray 
Exception Location: /usr/share/pyshared/numpy/core/numerictypes.py in <module>, line 81 
Python Executable: /usr/bin/python 
Python Version: 2.6.4 

From the python shell, both statements work: import numpy.core.multiarray and import multiarray. Any ideas?
Thanks

As I’m looking over the numpy files, I found the multiarray module, which has an extension of ‘so’. My guess, is that mod_python is not reading these files.

  • 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-05-14T07:51:21+00:00Added an answer on May 14, 2026 at 7:51 am

    Problem solved. Here’s what I did.

    First of all, before I was getting the import error:

    “No module named multiarray.”

    I was getting an error like this:

    “: Failed to create /some/dir/.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data”

    By adding the pyshared folder to the PythonPath variable, this error went away and I got the import error.

    So here’s how I fixed it:

    Removed the pyshared folder from the PythonPath variable.

    Before importing the matplotlib module, add these lines:

    import os
    os.environ['HOME']='/some/writable/dir'
    

    Next, before import matplotlib.pyplot or pylab, add these lines:

    import matplotlib
    matplotlib.use('Agg') 
    # 'Agg' or whatever your backend is.
    

    This is documented here.

    That’s is! It’s working on python2.5 for me now. But I believe it’ll work on 2.6 as well.

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

Sidebar

Related Questions

I have a drop down menu and it works perfectly on everything except IE6
I've this little method which is supposed to be thread safe. Everything works till
Everything works fine when the unit tests class is part of the main project
I'm building a project using a GNU tool chain and everything works fine until
I was trying the ASP.NET login control tutorial and everything works well. However, I
When I call this function, everything works, as long as I don't try to
I'm encrypting and Base64 a string. Everything works great, until I retrieve the encrypted
I'm using Eclipse Ganymede . Everything works fine, but I have an anal-retentive yearning
I've been using Git on Linux for about a year, and everything works fine.
I'm currently running into some issues resizing images using GD. Everything works fine until

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.