segmentation fault with pylab

Hello,
I am experiencing a problem recently on my Mac OsX.
When I try to import mathplotlib.mathtext or pylab I received a segmentation fault error.

It wasn't like that before, and I recently update my matplotlib and scipy via fink.
It worked fine few weeks ago.

I hope someone can help me.
Thanks,
Nino

We need some more information.

Can you set "verbose.level" to "debug-annoying" in your ~/.matplotlib/matplotlibrc file?

Also, if you have the development tools (XCode) installed on your mac, can you run python in gdb?

> gdb python
GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run -c "import pylab"

... and send us the output...

Cheers,
Mike

Antonino Cucchiara wrote:

···

Hello,
I am experiencing a problem recently on my Mac OsX.
When I try to import mathplotlib.mathtext or pylab I received a segmentation fault error.

It wasn't like that before, and I recently update my matplotlib and scipy via fink.
It worked fine few weeks ago.

I hope someone can help me.
Thanks,
Nino

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Hi Mike,
I re-install the astronomy scisoft package and now the segmentation fault is not anymore present when I import matplotlib.mathtext.
But when I import pylab I have the following error.
I think it's something related with my backend choise. I tried to change all the GUI possibilities in my matplotlibrc file but the error is still present.
I attached the gdb python output (I don't know if it helps) and the output of my "import pylab" command

Michael Droettboom wrote:

gdb.out (728 Bytes)

pylaboutput (1.91 KB)

···

We need some more information.

Can you set "verbose.level" to "debug-annoying" in your ~/.matplotlib/matplotlibrc file?

Also, if you have the development tools (XCode) installed on your mac, can you run python in gdb?

> gdb python
GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run -c "import pylab"

... and send us the output...

Cheers,
Mike

Antonino Cucchiara wrote:

Hello,
I am experiencing a problem recently on my Mac OsX.
When I try to import mathplotlib.mathtext or pylab I received a segmentation fault error.

It wasn't like that before, and I recently update my matplotlib and scipy via fink.
It worked fine few weeks ago.

I hope someone can help me.
Thanks,
Nino

-------------------------------------------------------------------------

This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
  
--

Antonino Cucchiara
PhD candidate
Department of Astronomy&Astrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/

It looks like matplotlib was built for a different version of iconv than what you have on your machine. This may be a scisoft packaging problem, you may want to bring this question to their attention. Perhaps the version of OSX that scisoft was built on/for is different than what you're running it on.

ImportError: dlopen(/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so, 2): Library not loaded: /usr/lib/libiconv.2.dylib
  Referenced from: /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so
  Reason: Incompatible library version: _backend_gdk.so requires version 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0

Cheers,
Mike

Antonino Cucchiara wrote:

···

Hi Mike,
I re-install the astronomy scisoft package and now the segmentation fault is not anymore present when I import matplotlib.mathtext.
But when I import pylab I have the following error.
I think it's something related with my backend choise. I tried to change all the GUI possibilities in my matplotlibrc file but the error is still present.
I attached the gdb python output (I don't know if it helps) and the output of my "import pylab" command

Michael Droettboom wrote:

We need some more information.

Can you set "verbose.level" to "debug-annoying" in your ~/.matplotlib/matplotlibrc file?

Also, if you have the development tools (XCode) installed on your mac, can you run python in gdb?

> gdb python
GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run -c "import pylab"

... and send us the output...

Cheers,
Mike

Antonino Cucchiara wrote:

Hello,
I am experiencing a problem recently on my Mac OsX.
When I try to import mathplotlib.mathtext or pylab I received a segmentation fault error.

It wasn't like that before, and I recently update my matplotlib and scipy via fink.
It worked fine few weeks ago.

I hope someone can help me.
Thanks,
Nino

-------------------------------------------------------------------------

This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Is there anything I can do to update it by myself in the meanwhile?
Thanks,
Nino

Michael Droettboom wrote:

···

It looks like matplotlib was built for a different version of iconv than what you have on your machine. This may be a scisoft packaging problem, you may want to bring this question to their attention. Perhaps the version of OSX that scisoft was built on/for is different than what you're running it on.

ImportError: dlopen(/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so, 2): Library not loaded: /usr/lib/libiconv.2.dylib
  Referenced from: /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so
  Reason: Incompatible library version: _backend_gdk.so requires version 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0

Cheers,
Mike

Antonino Cucchiara wrote:
  

Hi Mike,
I re-install the astronomy scisoft package and now the segmentation fault is not anymore present when I import matplotlib.mathtext.
But when I import pylab I have the following error.
I think it's something related with my backend choise. I tried to change all the GUI possibilities in my matplotlibrc file but the error is still present.
I attached the gdb python output (I don't know if it helps) and the output of my "import pylab" command

Michael Droettboom wrote:
    

We need some more information.

Can you set "verbose.level" to "debug-annoying" in your ~/.matplotlib/matplotlibrc file?

Also, if you have the development tools (XCode) installed on your mac, can you run python in gdb?

gdb python
        

GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run -c "import pylab"

... and send us the output...

Cheers,
Mike

Antonino Cucchiara wrote:
      

Hello,
I am experiencing a problem recently on my Mac OsX.
When I try to import mathplotlib.mathtext or pylab I received a segmentation fault error.

It wasn't like that before, and I recently update my matplotlib and scipy via fink.
It worked fine few weeks ago.

I hope someone can help me.
Thanks,
Nino

-------------------------------------------------------------------------

This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
  
--

Antonino Cucchiara
PhD candidate
Department of Astronomy&Astrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/

You could try rebuilding matplotlib yourself. There are some OS-X directions here:

http://www.astro.washington.edu/owen/BuildingMatplotlibForMac.html

This may mean, however, that it won't play nice with other parts of scisoft. But this really is a matter of how and where scisoft was built (which I don't know) and where you're running it.

Cheers,
Mike

Antonino Cucchiara wrote:

···

Is there anything I can do to update it by myself in the meanwhile?
Thanks,
Nino

Michael Droettboom wrote:

It looks like matplotlib was built for a different version of iconv than what you have on your machine. This may be a scisoft packaging problem, you may want to bring this question to their attention. Perhaps the version of OSX that scisoft was built on/for is different than what you're running it on.

ImportError: dlopen(/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so, 2): Library not loaded: /usr/lib/libiconv.2.dylib
  Referenced from: /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so

  Reason: Incompatible library version: _backend_gdk.so requires version 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0

Cheers,
Mike

Antonino Cucchiara wrote:

Hi Mike,
I re-install the astronomy scisoft package and now the segmentation fault is not anymore present when I import matplotlib.mathtext.
But when I import pylab I have the following error.
I think it's something related with my backend choise. I tried to change all the GUI possibilities in my matplotlibrc file but the error is still present.
I attached the gdb python output (I don't know if it helps) and the output of my "import pylab" command

Michael Droettboom wrote:
   

We need some more information.

Can you set "verbose.level" to "debug-annoying" in your ~/.matplotlib/matplotlibrc file?

Also, if you have the development tools (XCode) installed on your mac, can you run python in gdb?

gdb python
        

GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run -c "import pylab"

... and send us the output...

Cheers,
Mike

Antonino Cucchiara wrote:
     

Hello,
I am experiencing a problem recently on my Mac OsX.
When I try to import mathplotlib.mathtext or pylab I received a segmentation fault error.

It wasn't like that before, and I recently update my matplotlib and scipy via fink.
It worked fine few weeks ago.

I hope someone can help me.
Thanks,
Nino

-------------------------------------------------------------------------

This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
          
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Thanks,
I just had to replace the /usr/lib/libiconv.2.dylib with the one I have in /sw/lib/ directory .
Now the GTK, GTKAgg backend work.

Nino

Michael Droettboom wrote:

···

You could try rebuilding matplotlib yourself. There are some OS-X directions here:

http://www.astro.washington.edu/owen/BuildingMatplotlibForMac.html

This may mean, however, that it won't play nice with other parts of scisoft. But this really is a matter of how and where scisoft was built (which I don't know) and where you're running it.

Cheers,
Mike

Antonino Cucchiara wrote:

Is there anything I can do to update it by myself in the meanwhile?
Thanks,
Nino

Michael Droettboom wrote:

It looks like matplotlib was built for a different version of iconv than what you have on your machine. This may be a scisoft packaging problem, you may want to bring this question to their attention. Perhaps the version of OSX that scisoft was built on/for is different than what you're running it on.

ImportError: dlopen(/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so, 2): Library not loaded: /usr/lib/libiconv.2.dylib
  Referenced from: /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so

  Reason: Incompatible library version: _backend_gdk.so requires version 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0

Cheers,
Mike

Antonino Cucchiara wrote:

Hi Mike,
I re-install the astronomy scisoft package and now the segmentation fault is not anymore present when I import matplotlib.mathtext.
But when I import pylab I have the following error.
I think it's something related with my backend choise. I tried to change all the GUI possibilities in my matplotlibrc file but the error is still present.
I attached the gdb python output (I don't know if it helps) and the output of my "import pylab" command

Michael Droettboom wrote:
  

We need some more information.

Can you set "verbose.level" to "debug-annoying" in your ~/.matplotlib/matplotlibrc file?

Also, if you have the development tools (XCode) installed on your mac, can you run python in gdb?

gdb python
        

GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run -c "import pylab"

... and send us the output...

Cheers,
Mike

Antonino Cucchiara wrote:
    

Hello,
I am experiencing a problem recently on my Mac OsX.
When I try to import mathplotlib.mathtext or pylab I received a segmentation fault error.

It wasn't like that before, and I recently update my matplotlib and scipy via fink.
It worked fine few weeks ago.

I hope someone can help me.
Thanks,
Nino

-------------------------------------------------------------------------

This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
          
--

Antonino Cucchiara
PhD candidate
Department of Astronomy&Astrophysics
Penn State University
website: www.astro.psu.edu/~cucchiara/

Great. You may still want to let the scisoft guys know about this so others won't hit up against it.

Cheers,
Mike

Antonino Cucchiara wrote:

···

Thanks,
I just had to replace the /usr/lib/libiconv.2.dylib with the one I have in /sw/lib/ directory .
Now the GTK, GTKAgg backend work.

Nino

Michael Droettboom wrote:

You could try rebuilding matplotlib yourself. There are some OS-X directions here:

http://www.astro.washington.edu/owen/BuildingMatplotlibForMac.html

This may mean, however, that it won't play nice with other parts of scisoft. But this really is a matter of how and where scisoft was built (which I don't know) and where you're running it.

Cheers,
Mike

Antonino Cucchiara wrote:

Is there anything I can do to update it by myself in the meanwhile?
Thanks,
Nino

Michael Droettboom wrote:

It looks like matplotlib was built for a different version of iconv than what you have on your machine. This may be a scisoft packaging problem, you may want to bring this question to their attention. Perhaps the version of OSX that scisoft was built on/for is different than what you're running it on.

ImportError: dlopen(/scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so, 2): Library not loaded: /usr/lib/libiconv.2.dylib
  Referenced from: /scisoft/i386/library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/backends/_backend_gdk.so

  Reason: Incompatible library version: _backend_gdk.so requires version 7.0.0 or later, but libiconv.2.dylib provides version 5.0.0

Cheers,
Mike

Antonino Cucchiara wrote:

Hi Mike,
I re-install the astronomy scisoft package and now the segmentation fault is not anymore present when I import matplotlib.mathtext.
But when I import pylab I have the following error.
I think it's something related with my backend choise. I tried to change all the GUI possibilities in my matplotlibrc file but the error is still present.
I attached the gdb python output (I don't know if it helps) and the output of my "import pylab" command

Michael Droettboom wrote:

We need some more information.

Can you set "verbose.level" to "debug-annoying" in your ~/.matplotlib/matplotlibrc file?

Also, if you have the development tools (XCode) installed on your mac, can you run python in gdb?

gdb python
        

GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run -c "import pylab"

... and send us the output...

Cheers,
Mike

Antonino Cucchiara wrote:
   

Hello,
I am experiencing a problem recently on my Mac OsX.
When I try to import mathplotlib.mathtext or pylab I received a segmentation fault error.

It wasn't like that before, and I recently update my matplotlib and scipy via fink.
It worked fine few weeks ago.

I hope someone can help me.
Thanks,
Nino

-------------------------------------------------------------------------

This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
          
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA