Fatal Python error when importing pyplot

Jeremy Conlin wrote:

    Jeremy Conlin wrote:

        I am using Mac OS X 10.5.5 and have installed Enthought's
        latest Python distribution which includes Matplotlib 0.98.3.
         I get a fatal python error whenever I try to import
        matplotlib.pyplot. The exact message I get is:

        Fatal Python error: Interpreter not initialized (version
        mismatch?)
        Abort trap

        Has anyone else had a problem with this? Please help me
        because I can't do any plotting until it's fixed!

        Thanks,
        Jeremy

    Jeremy: That sometimes means you are importing a module into a
    different version of python than it was built against. Are you
    sure you are running Enthough python when you import matplotlib?

I'm pretty sure it's the Enthought python.

$ python --version
Python 2.5.2 |EPD Py25 4.1.30101|

Jeremy

Jeremy: Then unless you have DYLD_LIBRARY_PATH or PYTHONPATH set so that the wrong python libs or extensions are being picked up, it must be an EPD problem. I'd ask on the EPD list.

-Jeff

···

On Mon, Mar 9, 2009 at 12:19 PM, Jeff Whitaker <jswhit@...146... > <mailto:jswhit@…146…>> wrote:

--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory

Oops. A long time ago I set PYTHONPATH in my bash_profile. The value for that is now wrong. Now that I’ve fixed it, everything seems to work fine.

Thanks for the help.

Jeremy

···

On Mon, Mar 9, 2009 at 12:50 PM, Jeff Whitaker <jswhit@…83…146…> wrote:

Jeremy Conlin wrote:

On Mon, Mar 9, 2009 at 12:19 PM, Jeff Whitaker <jswhit@…146… mailto:jswhit@...146...> wrote:

Jeremy Conlin wrote:



    I am using Mac OS X 10.5.5 and have installed Enthought's

    latest Python distribution which includes Matplotlib 0.98.3.

     I get a fatal python error whenever I try to import

    matplotlib.pyplot.  The exact message I get is:



    Fatal Python error: Interpreter not initialized (version

    mismatch?)

    Abort trap



    Has anyone else had a problem with this?  Please help me

    because I can't do any plotting until it's fixed!



    Thanks,

    Jeremy



Jeremy:  That sometimes means you are importing a module into a

different version of python than it was built against.  Are you

sure you are running Enthough python when you import matplotlib?

I’m pretty sure it’s the Enthought python.

$ python --version

Python 2.5.2 |EPD Py25 4.1.30101|

Jeremy

Jeremy: Then unless you have DYLD_LIBRARY_PATH or PYTHONPATH set so that the wrong python libs or extensions are being picked up, it must be an EPD problem. I’d ask on the EPD list.