Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread John Hunter
 Rich == Rich Shepard [EMAIL PROTECTED] writes:

 From 'python setup.py build':
Rich src/_ns_backend_gdk.c:17:25: pygtk/pygtk.h: No such file or
Rich directory

RichHowever, ...

Rich [EMAIL PROTECTED] ~]$ locate pygtk.h
Rich /usr/local/pygtk-2.8.6/gtk/pygtk.h
Rich /usr/local/include/pygtk-2.0/pygtk/pygtk.h

RichDo I need to add /usr/local/include/pygtk-2.0/ somewhere
Rich in setup.py?

In your build environment, see if these directories show up with

   pkg-config --cflags-only-I pygtk-2.0

That is what mpl uses to find your pygtk headers.  If not, set your
PKG_CONFIG_PATH environment variable accordingly, and make sure there
is a pygtk-2.0.pc file in that directory.  On my system it is in 

  /usr/lib/pkgconfig/pygtk-2.0.pc

and yours will probably be /usr/local/lib/pkgconfig

It looks like you did a local install of pygtk, but did not update the
pkg-config path to point to it.

JDH

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote:

 In your build environment, see if these directories show up with

   pkg-config --cflags-only-I pygtk-2.0

John,

   Nobody's home.

 That is what mpl uses to find your pygtk headers.  If not, set your
 PKG_CONFIG_PATH environment variable accordingly, and make sure there is a
 pygtk-2.0.pc file in that directory.  On my system it is in

  /usr/lib/pkgconfig/pygtk-2.0.pc
 and yours will probably be /usr/local/lib/pkgconfig

   Yes. That's just where it is.

 It looks like you did a local install of pygtk, but did not update the
 pkg-config path to point to it.

   Since I work on the main server/workstation, 'local' is a relative term.
:-)

   Regardless, I added 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/' to
.bash_profile and sourced that file. Did the same for root's .bash_profile.
Now it's building.

Many thanks,

Rich

-- 
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread John Hunter
 Rich == Rich Shepard [EMAIL PROTECTED] writes:
RichRegardless, I added 'export
Rich PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/' to .bash_profile
Rich and sourced that file. Did the same for root's
Rich .bash_profile.  Now it's building.

You may also want to append /usr/local/pkgconfig/ to that path...

Glad it's working for you.

JDH

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote:

 You may also want to append /usr/local/pkgconfig/ to that path...

John,

   pkgconfig is only in /usr/local/lib.

 Glad it's working for you.

   Well, let's not be too hasty.

   I replaced ~/.matplotlib/matplotlibrc with the newer copy from today's
installation. Then I tried the simple script at the top of the tutorial:

[EMAIL PROTECTED] ~]$ ipython
Python 2.4.1 (#1, Apr 20 2005, 11:40:53) 
Type copyright, credits or license for more information.

IPython 0.7.2 -- An enhanced Interactive Python.
?   - Introduction to IPython's features.
%magic  - Information about IPython's 'magic' % functions.
help- Python's own help system.
object? - Details about 'object'. ?object also works, ?? prints more.

In [1]: from pylab import *

In [2]: plot([1,2,3,4])
Out[2]: [matplotlib.lines.Line2D instance at 0x4271874c]

In [3]: show()
Segmentation fault

   So, I must be missing something that's throwing an exception. Might you
have suggestions where I should start looking?

Rich

-- 
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread John Hunter
 Rich == Rich Shepard [EMAIL PROTECTED] writes:

Rich In [3]: show() Segmentation fault

sudo rm -rf your build dir and site-packages/matplotlib and
rebuild/reinstall.

JDH

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote:

 sudo rm -rf your build dir and site-packages/matplotlib and
 rebuild/reinstall.

John,

   Rats! That did not change the result.

   Is matplotlib-0.87.7 dependent on specific versions of gcc or glibc?

Rich

-- 
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Simson Garfinkel
Perhaps you have a second installation that you are not aware of.


On Jan 11, 2007, at 12:18 PM, Rich Shepard wrote:

 On Thu, 11 Jan 2007, John Hunter wrote:

 sudo rm -rf your build dir and site-packages/matplotlib and
 rebuild/reinstall.

 John,

Rats! That did not change the result.

Is matplotlib-0.87.7 dependent on specific versions of gcc or  
 glibc?

 Rich

 -- 
 Richard B. Shepard, Ph.D.   |The Environmental  
 Permitting
 Applied Ecosystem Services, Inc.|  Accelerator(TM)
 http://www.appl-ecosys.com Voice: 503-667-4517  Fax:  
 503-667-8863

 -- 
 ---
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to  
 share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php? 
 page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread John Hunter
 Rich == Rich Shepard [EMAIL PROTECTED] writes:

RichIs matplotlib-0.87.7 dependent on specific versions of
Rich gcc or glibc?

Not that I know of...  I'm pasting in our SEGFAULTS instructions
below, which are located in the svn repository

# How to diagnose where a segfault is occurring

First thing to try is simply rm -rf the site-packages/matplotlib and
build subdirs and get a clean install.  Installing a new version over
a pretty old version has been known to cause trouble, segfault, etc.

Try importing these packages individually

  import matplotlib._image
  import matplotlib._transforms

  #one of these three depending on which numerix package you are using
  import matplotlib.backends._na_backend_agg # for numarray
  import matplotlib.backends._nc_backend_agg # for Numeric
  import matplotlib.backends._ns_backend_agg # for numpy

  import matplotlib.backends._tkagg
  import matplotlib._agg


If the last two work and the others don't, it is likely you need to
upgrade your gcc, because on some platforms (OS X for sure) old
versions of gcc cannot compile new versions of pycxx, which matplotlib
uses for building some but not all of it's extensions.  Report back
which if any work or segfault or raise tracebacks,

If that shed additional light, again flush the build and install dirs,
and try setting VERBOSE=True in setup.py before doing a clean install.
The VERBOSE setting will generate lots of extra output and may help
indicate where the segfault is occurring 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, Simson Garfinkel wrote:

 Perhaps you have a second installation that you are not aware of.

   Good thought, Simon. I have the new /usr/local/matplotlib-0.87.7,
/usr/share/matplotlib (with images and fonts), and another directory with
docs and examples. That's all. There are no other copies of matplotlib
except in the build directory and in ../site-packages/.

Rich

-- 
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote:

 # How to diagnose where a segfault is occurring

 Try importing these packages individually

[EMAIL PROTECTED] ~]$ ipython

In [1]: import matplotlib._image
In [2]: import matplotlib._transforms
In [3]: import matplotlib.backends._ns_backend_agg
In [4]: import matplotlib.backends._tkagg
In [5]: import matplotlib._agg

   So far, so good.

 If that shed additional light, again flush the build and install dirs, and
 try setting VERBOSE=True in setup.py before doing a clean install. The
 VERBOSE setting will generate lots of extra output and may help indicate
 where the segfault is occurring

   Will do.

Rich

-- 
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote:

 If that shed additional light, again flush the build and install dirs, and
 try setting VERBOSE=True in setup.py before doing a clean install. The
 VERBOSE setting will generate lots of extra output and may help indicate
 where the segfault is occurring

   Nothing different. No errors, but the same warnings that _POSIX_C_SOURCE
is redefined, for example:

gcc: src/_ns_image.cpp
In file included from /usr/include/python2.4/Python.h:8,
  from src/_ns_image.cpp:8:
/usr/include/python2.4/pyconfig.h:835:1: warning: _POSIX_C_SOURCE
redefined
In file included from
/usr/include/c++/3.3.6/i486-slackware-linux/bits/os_defines.h:39,
  from
/usr/include/c++/3.3.6/i486-slackware-linux/bits/c++config.h:35,
  from /usr/include/c++/3.3.6/iostream:44,
  from src/_ns_image.cpp:2:
/usr/include/features.h:150:1: warning: this is the location of the previous
definition

Rich

-- 
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote:

 # How to diagnose where a segfault is occurring

 Try importing these packages individually

  import matplotlib._image
  import matplotlib._transforms
  import matplotlib.backends._ns_backend_agg # for numpy
  import matplotlib.backends._tkagg
  import matplotlib._agg

   All import without complaint.

 If that shed additional light, again flush the build and install dirs, and
 try setting VERBOSE=True in setup.py before doing a clean install. The
 VERBOSE setting will generate lots of extra output and may help indicate
 where the segfault is occurring

   No extra messages indicating any problems.

   I did discover that there were two pkgconfig/ directories. I moved the few
newer *.pc files from /usr/local/lib/pkgconfig/ to /usr/lib/pkgconfig/,
removed the now empty directory, and rebuilt/installed from the source
tarball.

   No joy. It still segfaults when I try to 'show()' the plot.

Rich

-- 
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread John Hunter
 Rich == Rich Shepard [EMAIL PROTECTED] writes:

 If that shed additional light, again flush the build and
 install dirs, and try setting VERBOSE=True in setup.py before
 doing a clean install. The VERBOSE setting will generate lots
 of extra output and may help indicate where the segfault is
 occurring

RichNo extra messages indicating any problems.

RichI did discover that there were two pkgconfig/
Rich directories. I moved the few newer *.pc files from
Rich /usr/local/lib/pkgconfig/ to /usr/lib/pkgconfig/, removed
Rich the now empty directory, and rebuilt/installed from the
Rich source tarball.

RichNo joy. It still segfaults when I try to 'show()' the
Rich plot.

If you recompiled cleanly (ie removed the build subdir) with
VERBOSE=True as instructed, you should be getting tons and tons of
output whenever you run a script (eg can you run simple_plot.py?).  If
you are not getting the output, you are probably not running the
matplotlib you think you are.  If you do get the output, post it along
with the script and the command line.  Also, try running with
different backends, eg, PS, Agg.  DO both segfault?

JDH

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote:

 If you recompiled cleanly (ie removed the build subdir) with VERBOSE=True
 as instructed, you should be getting tons and tons of output whenever you
 run a script (eg can you run simple_plot.py?).

John,

   I was looking for verbose output during the build rather than when the
script ran. Now I'm on the same page as you are.

 If you do get the output, post it along with the script and the command
 line. Also, try running with different backends, eg, PS, Agg.  DO both
 segfault?

   simple_plot.py and the output (matplot.log) are attached. It is when the
show() command is run that the problem appears.

  How do I specify the backend for a run of the script?

Thanks,

Rich

-- 
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread John Hunter
 Rich == Rich Shepard [EMAIL PROTECTED] writes:

Richsimple_plot.py and the output (matplot.log) are
Rich attached. It is when the show() command is run that the
Rich problem appears.

I didn't see the attachment.

Rich   How do I specify the backend for a run of the script?

Create a minimal script:

  from pylab import plot, savefig, show
  plot([1,2,3])
  savefig('test')
  show()

and run it with 

  python myscript.py --verbose-debug -dAgg  runagg.out
  python myscript.py --verbose-debug -dPS  runps.out
  python myscript.py --verbose-debug -dGTK  rungtk.out

You may want to move this conversation over to the devel list.

JDH

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote:

 I didn't see the attachment.

John,

   Mea culpa! I forgot to stick them on.

  python myscript.py --verbose-debug -dAgg  runagg.out
  python myscript.py --verbose-debug -dPS  runps.out
  python myscript.py --verbose-debug -dGTK  rungtk.out

 You may want to move this conversation over to the devel list.

   I just returned the subscription confirmation, and will append the output
files in a response to that list.

   Quick summary: the first two above just ran; the third ran and displayed a
window with the plot. No segfaults on any of them.

   Then I ran simple_plot.py a fourth time -- using WXAgg. That generated the
segfault.

Many thanks,

Rich

-- 
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib-0.87.7 Build Failure

2007-01-11 Thread Rich Shepard
On Thu, 11 Jan 2007, John Hunter wrote:

 Hmm, what version of wx are you using?

   wxPython-2.6.3.2-i486-1asz (on Slackware)

Rich

-- 
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.|  Accelerator(TM)
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users