Libraries, Versions, and Confusion

I'm missing some understanding here, and cannot build matplotlib-0.90.1
nor the apparently missing libraries. This workstation is currently running
Slackware-11.0 with the following installed (or missing, in the case of
PyGObject):

   wxPython-2.8.0.1
   wxGTK-2.8.0
   pygobject: /usr/lib/pkgconfig/pygobject-2.0.pc; no PyGObject
   pygtk-2.10.3

   Since I don't have a mental (or documented) map of how all the pieces fit
together, I'm not sure how to fix the problems encountered. The matplotlib
build fails because the compiler cannot find libraries that are present:

In file included from /usr/include/bits/errno.h:25,
                  from /usr/include/errno.h:36,
                  from /usr/include/python2.4/Python.h:38,
                  from src/_isnan.c:1:
/usr/include/linux/errno.h:4:23: asm/errno.h: No such file or directory
In file included from /usr/include/bits/errno.h:25,
                  from /usr/include/errno.h:36,
                  from /usr/include/python2.4/Python.h:38,
                  from src/_isnan.c:1:
/usr/include/linux/errno.h:4:23: asm/errno.h: No such file or directory
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -O3 -march=i486
-mtune=i686 -fPIC -I/usr/local/include -I/usr/include -I.
-I/usr/include/python2.4 -c src/_isnan.c -o
build/temp.linux-i686-2.4/src/_isnan.o" failed with exit status 1

   That is, /usr/include/linux/asm/error.h exists, and _isnan.c is present at
/tmp/SBo/matplotlib-0.90.1/src/_isnan.c
/usr/local/numpy/numpy/core/src/_isnan.c
/usr/local/matplotlib-0.87.7/src/_isnan.c

   When I try to run matplotlib examples from within ipython, invoking the
shell with the -pylab switch produces this error:

   File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 42,
in ?
     raise ImportError(
ImportError: PyGTK requires PyGObject 2.11.1 or higher, but () was found

   As noted above, I have the .pc file but that's all.

   I'd like guidance on how to fix this mess so I can build, learn, and use
matplotlib-0.90.1. Once I understand the relationships involved, I'll be
able to get the latest version built and running on my notebook which now
runs Slackware-12.0 with Python-2.5.1.

Rich

···

--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863

Got this resolved: turns out to be a highly unusual dependency on kernel
headers earlier than those of the running kernel.

   However, why are all of the ~/.matplotlib/matplotlibrc options for LINES,
PATCHES, FONT, etc. all commented out?

Rich

···

On Wed, 21 Nov 2007, Rich Shepard wrote:

  I'm missing some understanding here, and cannot build matplotlib-0.90.1
nor the apparently missing libraries. This workstation is currently
running Slackware-11.0 with the following installed (or missing, in the
case of PyGObject):

--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863

They are all defaults. We prefer to ship default rc files that are commented
out so it is easier to track down bugs, it makes it easier to keep track of
any nonstandard settings.

···

On Wednesday 21 November 2007 6:45:55 pm Rich Shepard wrote:

On Wed, 21 Nov 2007, Rich Shepard wrote:
> I'm missing some understanding here, and cannot build matplotlib-0.90.1
> nor the apparently missing libraries. This workstation is currently
> running Slackware-11.0 with the following installed (or missing, in the
> case of PyGObject):

   Got this resolved: turns out to be a highly unusual dependency on kernel
headers earlier than those of the running kernel.

   However, why are all of the ~/.matplotlib/matplotlibrc options for
LINES, PATCHES, FONT, etc. all commented out?

Darren,

   Thank you. I assumed that to be the case, but it's nice to have that
confirmed.

   On the original issue, changing from the default GTKAgg to WXAgg removed
all the GTK (cairo, libpangocairo) errors I was seeing. Since I want WXAgg
as the default anyway, this works out nicely.

   Now to learn matplotlib for our application. I know I'll be back with
questions. :slight_smile:

Happy Thanksgiving,

Rich

···

On Wed, 21 Nov 2007, Darren Dale wrote:

They are all defaults. We prefer to ship default rc files that are
commented out so it is easier to track down bugs, it makes it easier to
keep track of any nonstandard settings.

--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863