Installation Problem

Well, I can't test this myself, but it is worth a shot. In
matplotlib/src/cntr.c replace all occurences of PyMODINIT_FUNC with
DL_EXPORT(void). You will obviously need to recompile matplotlib
after this. It should occur in 3 places for each of the different
numerix backends. Let us know if this works.

···

On 1/17/06, Hanno Klemm <klemm@...948...> wrote:

Charlie,

unfortunately I don't have rootly powers on this machine, therefore
using a newer version of python would mean that I have to compile and
install it all from scratch in my home directory. Something I would
like to avoid, if possible.

Hanno

Charlie Moad <cwmoad@...287...> said:

> So the error is coming from PyMODINIT_FUNC, which is apparently for >=
> python 2.3. There have been several compatibility issues come up with
> 2.2 recently. Are you able to try a newer version of python?
>
> On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> >
> > Dear Charlie,
> >
> > the OS is Linux, Kernel 2.4.21 with SMP running on a Xeon box.
> >
> > uname -a spits out:
> > > uname -a
> > Linux rijkes-n-d99878 2.4.21-20.nfswan2 #1 SMP Mon Sep 13 11:28:02
> > CEST 2004 x86_64 x86_64 x86_64 GNU/Linux
> >
> > Cheers,
> > Hanno
> >
> >
> > Charlie Moad <cwmoad@...287...> said:
> >
> > > Can you tell us more about the OS?
> > >
> > > On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> > > >
> > > > Hi there,
> > > >
> > > > I'm not sure, if I'm mailing to the right list, but I will
give it a
> > > > shot, anyway. I have a problem getting matplotlib installed. After
> > > > compiling fine for a while I get the error message:
> > > >
> > > > ..
> > > > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching
> > for -lz
> > > > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching
> > for -lz
> > > > /usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching
> > for -lm
> > > > /usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching
> > for -lm
> > > > /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching
> > for -lc
> > > > /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching
> > for -lc
> > > > building 'matplotlib._na_cntr' extension
> > > > gcc -DNDEBUG -O2 -g -pipe -D_GNU_SOURCE -fPIC -fPIC
> > -I/usr/local/include
> > > > -I/usr/include -I/glb/home/nlhkl6/install/include -I.
> > > > -I/usr/include/python2.2 -c src/_na_cntr.c -o
> > > > build/temp.linux-x86_64-2.2/_na_cntr.o -DNUMARRAY=1
> > > > src/_na_cntr.c:1705: syntax error before "init_na_cntr"
> > > > error: command 'gcc' failed with exit status 1
> > > >
> > > >
> > > >
> > > > I am using:
> > > > matplotlib 0.86.1
> > > > python 2.2
> > > > Numeric 24.2
> > > > numarray 1.5.0
> > > >
> > > > I have modified basedir in setupext.py to
> > > > ..
> > > > 'linux2' : ['/usr/local', '/usr', '/glb/home/nlhkl6/install'],
> > > > 'linux' : ['/usr/local', '/usr', '/glb/home/nlhkl6/install'],
> > > > ..
> > > >
> > > > the header files for the numarray and the Numeric package are
at the
> > > > last location under include/Numeric and include/Numarray
> > > >
> > > > Furthermore I have modified in setup.py
> > > >
> > > > rc = dict([('backend', 'PS'), ('numerix', 'Numeric')])
> > > >
> > > > because the original form threw errors.
> > > >
> > > > Any help would be much appreciated!
> > > >
> > > > All the best,
> > > > Hanno
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through
> > log files
> > > > for problems? Stop! Download the new AJAX search engine that
makes
> > > > searching your log files as easy as surfing the web. DOWNLOAD
> > SPLUNK!
> > > >
> >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> > > > _______________________________________________
> > > > Matplotlib-users mailing list
> > > > Matplotlib-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> > > >
> > >
> >
> >
> >
> > --
> >
> >
> >
> >
>

--
Hanno Klemm
klemm@...948...

Charlie,

I did exacly as you said and the compile went through! Thank you very
much!

All the best,
Hanno

Charlie Moad <cwmoad@...287...> said:

Well, I can't test this myself, but it is worth a shot. In
matplotlib/src/cntr.c replace all occurences of PyMODINIT_FUNC with
DL_EXPORT(void). You will obviously need to recompile matplotlib
after this. It should occur in 3 places for each of the different
numerix backends. Let us know if this works.

>
> Charlie,
>
> unfortunately I don't have rootly powers on this machine, therefore
> using a newer version of python would mean that I have to compile and
> install it all from scratch in my home directory. Something I would
> like to avoid, if possible.
>
> Hanno
>
> Charlie Moad <cwmoad@...287...> said:
>
> > So the error is coming from PyMODINIT_FUNC, which is apparently

for >=

> > python 2.3. There have been several compatibility issues come

up with

> > 2.2 recently. Are you able to try a newer version of python?
> >
> > >
> > > Dear Charlie,
> > >
> > > the OS is Linux, Kernel 2.4.21 with SMP running on a Xeon box.
> > >
> > > uname -a spits out:
> > > > uname -a
> > > Linux rijkes-n-d99878 2.4.21-20.nfswan2 #1 SMP Mon Sep 13 11:28:02
> > > CEST 2004 x86_64 x86_64 x86_64 GNU/Linux
> > >
> > > Cheers,
> > > Hanno
> > >
> > >
> > > Charlie Moad <cwmoad@...287...> said:
> > >
> > > > Can you tell us more about the OS?
> > > >
> > > > >
> > > > > Hi there,
> > > > >
> > > > > I'm not sure, if I'm mailing to the right list, but I will
> give it a
> > > > > shot, anyway. I have a problem getting matplotlib

installed. After

> > > > > compiling fine for a while I get the error message:
> > > > >
> > > > > ..
> > > > > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when

searching

> > > for -lz
> > > > > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when

searching

> > > for -lz
> > > > > /usr/bin/ld: skipping incompatible /usr/lib/libm.so when

searching

> > > for -lm
> > > > > /usr/bin/ld: skipping incompatible /usr/lib/libm.a when

searching

> > > for -lm
> > > > > /usr/bin/ld: skipping incompatible /usr/lib/libc.so when

searching

> > > for -lc
> > > > > /usr/bin/ld: skipping incompatible /usr/lib/libc.a when

searching

> > > for -lc
> > > > > building 'matplotlib._na_cntr' extension
> > > > > gcc -DNDEBUG -O2 -g -pipe -D_GNU_SOURCE -fPIC -fPIC
> > > -I/usr/local/include
> > > > > -I/usr/include -I/glb/home/nlhkl6/install/include -I.
> > > > > -I/usr/include/python2.2 -c src/_na_cntr.c -o
> > > > > build/temp.linux-x86_64-2.2/_na_cntr.o -DNUMARRAY=1
> > > > > src/_na_cntr.c:1705: syntax error before "init_na_cntr"
> > > > > error: command 'gcc' failed with exit status 1
> > > > >
> > > > >
> > > > >
> > > > > I am using:
> > > > > matplotlib 0.86.1
> > > > > python 2.2
> > > > > Numeric 24.2
> > > > > numarray 1.5.0
> > > > >
> > > > > I have modified basedir in setupext.py to
> > > > > ..
> > > > > 'linux2' : ['/usr/local', '/usr',

'/glb/home/nlhkl6/install'],

> > > > > 'linux' : ['/usr/local', '/usr',

'/glb/home/nlhkl6/install'],

> > > > > ..
> > > > >
> > > > > the header files for the numarray and the Numeric package are
> at the
> > > > > last location under include/Numeric and include/Numarray
> > > > >
> > > > > Furthermore I have modified in setup.py
> > > > >
> > > > > rc = dict([('backend', 'PS'), ('numerix', 'Numeric')])
> > > > >
> > > > > because the original form threw errors.
> > > > >
> > > > > Any help would be much appreciated!
> > > > >
> > > > > All the best,
> > > > > Hanno
> > > > >
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep

through

> > > log files
> > > > > for problems? Stop! Download the new AJAX search engine that
> makes
> > > > > searching your log files as easy as surfing the web.

DOWNLOAD

> > > SPLUNK!
> > > > >
> > >
>

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

···

On 1/17/06, Hanno Klemm <klemm@...948...> wrote:
> > On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> > > > On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> > > > > _______________________________________________
> > > > > Matplotlib-users mailing list
> > > > > Matplotlib-users@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
> > >
> > >
> > >
> >
>
>
>
> --
> Hanno Klemm
> klemm@...948...
>
>
>

--
Hanno Klemm
klemm@...948...

Good to hear. I will look into a conditional there, so others don't
have this problem.

···

On 1/17/06, Hanno Klemm <klemm@...948...> wrote:

Charlie,

I did exacly as you said and the compile went through! Thank you very
much!

All the best,
Hanno

Charlie Moad <cwmoad@...287...> said:

> Well, I can't test this myself, but it is worth a shot. In
> matplotlib/src/cntr.c replace all occurences of PyMODINIT_FUNC with
> DL_EXPORT(void). You will obviously need to recompile matplotlib
> after this. It should occur in 3 places for each of the different
> numerix backends. Let us know if this works.
>
> On 1/17/06, Hanno Klemm <klemm@...948...> wrote:
> >
> > Charlie,
> >
> > unfortunately I don't have rootly powers on this machine, therefore
> > using a newer version of python would mean that I have to compile and
> > install it all from scratch in my home directory. Something I would
> > like to avoid, if possible.
> >
> > Hanno
> >
> > Charlie Moad <cwmoad@...287...> said:
> >
> > > So the error is coming from PyMODINIT_FUNC, which is apparently
for >=
> > > python 2.3. There have been several compatibility issues come
up with
> > > 2.2 recently. Are you able to try a newer version of python?
> > >
> > > On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> > > >
> > > > Dear Charlie,
> > > >
> > > > the OS is Linux, Kernel 2.4.21 with SMP running on a Xeon box.
> > > >
> > > > uname -a spits out:
> > > > > uname -a
> > > > Linux rijkes-n-d99878 2.4.21-20.nfswan2 #1 SMP Mon Sep 13 11:28:02
> > > > CEST 2004 x86_64 x86_64 x86_64 GNU/Linux
> > > >
> > > > Cheers,
> > > > Hanno
> > > >
> > > >
> > > > Charlie Moad <cwmoad@...287...> said:
> > > >
> > > > > Can you tell us more about the OS?
> > > > >
> > > > > On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> > > > > >
> > > > > > Hi there,
> > > > > >
> > > > > > I'm not sure, if I'm mailing to the right list, but I will
> > give it a
> > > > > > shot, anyway. I have a problem getting matplotlib
installed. After
> > > > > > compiling fine for a while I get the error message:
> > > > > >
> > > > > > ..
> > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when
searching
> > > > for -lz
> > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when
searching
> > > > for -lz
> > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libm.so when
searching
> > > > for -lm
> > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libm.a when
searching
> > > > for -lm
> > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libc.so when
searching
> > > > for -lc
> > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libc.a when
searching
> > > > for -lc
> > > > > > building 'matplotlib._na_cntr' extension
> > > > > > gcc -DNDEBUG -O2 -g -pipe -D_GNU_SOURCE -fPIC -fPIC
> > > > -I/usr/local/include
> > > > > > -I/usr/include -I/glb/home/nlhkl6/install/include -I.
> > > > > > -I/usr/include/python2.2 -c src/_na_cntr.c -o
> > > > > > build/temp.linux-x86_64-2.2/_na_cntr.o -DNUMARRAY=1
> > > > > > src/_na_cntr.c:1705: syntax error before "init_na_cntr"
> > > > > > error: command 'gcc' failed with exit status 1
> > > > > >
> > > > > >
> > > > > >
> > > > > > I am using:
> > > > > > matplotlib 0.86.1
> > > > > > python 2.2
> > > > > > Numeric 24.2
> > > > > > numarray 1.5.0
> > > > > >
> > > > > > I have modified basedir in setupext.py to
> > > > > > ..
> > > > > > 'linux2' : ['/usr/local', '/usr',
'/glb/home/nlhkl6/install'],
> > > > > > 'linux' : ['/usr/local', '/usr',
'/glb/home/nlhkl6/install'],
> > > > > > ..
> > > > > >
> > > > > > the header files for the numarray and the Numeric package are
> > at the
> > > > > > last location under include/Numeric and include/Numarray
> > > > > >
> > > > > > Furthermore I have modified in setup.py
> > > > > >
> > > > > > rc = dict([('backend', 'PS'), ('numerix', 'Numeric')])
> > > > > >
> > > > > > because the original form threw errors.
> > > > > >
> > > > > > Any help would be much appreciated!
> > > > > >
> > > > > > All the best,
> > > > > > Hanno
> > > > > >
> > > > > >
> > > > > >
> > > > > > -------------------------------------------------------
> > > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep
through
> > > > log files
> > > > > > for problems? Stop! Download the new AJAX search engine that
> > makes
> > > > > > searching your log files as easy as surfing the web.
DOWNLOAD
> > > > SPLUNK!
> > > > > >
> > > >
> >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> > > > > > _______________________________________________
> > > > > > Matplotlib-users mailing list
> > > > > > Matplotlib-users@lists.sourceforge.net
> > > > > > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Hanno Klemm
> > klemm@...948...
> >
> >
> >
>

--
Hanno Klemm
klemm@...948...

Great! However, after installing the thing I still get the following
error message:

I did

python setup.py install --prefix=~/install

which installs everything under

~/install/lib64/python2.2/site-packages/matplotlib

I then copied pylab.py into

~/install/lib64/python2.2/site-packages/

and I added to my .bashrc

export MATPLOTLIBDATA="/glb/home/nlhkl6/install"

However, starting python and typing

from pylab import *

returns:

python

Python 2.2.3 (#1, Aug 8 2003, 08:44:27)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

from pylab import *

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/pylab.py",
line 1, in ?
    from matplotlib.pylab import *
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/matplotlib/__init__.py",
line 969, in ?
    rcParams = rc_params()
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/matplotlib/__init__.py",
line 917, in rc_params
    fname = matplotlib_fname()
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/matplotlib/__init__.py",
line 893, in
matplotlib_fname
    fname = os.path.join(get_configdir(), 'matplotlibrc')
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/matplotlib/__init__.py",
line 266, in wrapper
    ret = func(*args, **kwargs)
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/matplotlib/__init__.py",
line 356, in
_get_configdir
    if not _is_writable_dir(h):
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/matplotlib/__init__.py",
line 204, in
_is_writable_dir
    t = tempfile.TemporaryFile(dir=p)
TypeError: TemporaryFile() got an unexpected keyword argument 'dir'

Where am I going wrong?

Hanno

Charlie Moad <cwmoad@...287...> said:

Good to hear. I will look into a conditional there, so others don't
have this problem.

>
> Charlie,
>
> I did exacly as you said and the compile went through! Thank you very
> much!
>
> All the best,
> Hanno
>
>
> Charlie Moad <cwmoad@...287...> said:
>
> > Well, I can't test this myself, but it is worth a shot. In
> > matplotlib/src/cntr.c replace all occurences of PyMODINIT_FUNC with
> > DL_EXPORT(void). You will obviously need to recompile matplotlib
> > after this. It should occur in 3 places for each of the different
> > numerix backends. Let us know if this works.
> >
> > >
> > > Charlie,
> > >
> > > unfortunately I don't have rootly powers on this machine,

therefore

> > > using a newer version of python would mean that I have to

compile and

> > > install it all from scratch in my home directory. Something I

would

> > > like to avoid, if possible.
> > >
> > > Hanno
> > >
> > > Charlie Moad <cwmoad@...287...> said:
> > >
> > > > So the error is coming from PyMODINIT_FUNC, which is apparently
> for >=
> > > > python 2.3. There have been several compatibility issues come
> up with
> > > > 2.2 recently. Are you able to try a newer version of python?
> > > >
> > > > >
> > > > > Dear Charlie,
> > > > >
> > > > > the OS is Linux, Kernel 2.4.21 with SMP running on a Xeon box.
> > > > >
> > > > > uname -a spits out:
> > > > > > uname -a
> > > > > Linux rijkes-n-d99878 2.4.21-20.nfswan2 #1 SMP Mon Sep 13

11:28:02

> > > > > CEST 2004 x86_64 x86_64 x86_64 GNU/Linux
> > > > >
> > > > > Cheers,
> > > > > Hanno
> > > > >
> > > > >
> > > > > Charlie Moad <cwmoad@...287...> said:
> > > > >
> > > > > > Can you tell us more about the OS?
> > > > > >
> > > > > > >
> > > > > > > Hi there,
> > > > > > >
> > > > > > > I'm not sure, if I'm mailing to the right list, but I will
> > > give it a
> > > > > > > shot, anyway. I have a problem getting matplotlib
> installed. After
> > > > > > > compiling fine for a while I get the error message:
> > > > > > >
> > > > > > > ..
> > > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when
> searching
> > > > > for -lz
> > > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when
> searching
> > > > > for -lz
> > > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libm.so when
> searching
> > > > > for -lm
> > > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libm.a when
> searching
> > > > > for -lm
> > > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libc.so when
> searching
> > > > > for -lc
> > > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libc.a when
> searching
> > > > > for -lc
> > > > > > > building 'matplotlib._na_cntr' extension
> > > > > > > gcc -DNDEBUG -O2 -g -pipe -D_GNU_SOURCE -fPIC -fPIC
> > > > > -I/usr/local/include
> > > > > > > -I/usr/include -I/glb/home/nlhkl6/install/include -I.
> > > > > > > -I/usr/include/python2.2 -c src/_na_cntr.c -o
> > > > > > > build/temp.linux-x86_64-2.2/_na_cntr.o -DNUMARRAY=1
> > > > > > > src/_na_cntr.c:1705: syntax error before "init_na_cntr"
> > > > > > > error: command 'gcc' failed with exit status 1
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > I am using:
> > > > > > > matplotlib 0.86.1
> > > > > > > python 2.2
> > > > > > > Numeric 24.2
> > > > > > > numarray 1.5.0
> > > > > > >
> > > > > > > I have modified basedir in setupext.py to
> > > > > > > ..
> > > > > > > 'linux2' : ['/usr/local', '/usr',
> '/glb/home/nlhkl6/install'],
> > > > > > > 'linux' : ['/usr/local', '/usr',
> '/glb/home/nlhkl6/install'],
> > > > > > > ..
> > > > > > >
> > > > > > > the header files for the numarray and the Numeric

package are

> > > at the
> > > > > > > last location under include/Numeric and include/Numarray
> > > > > > >
> > > > > > > Furthermore I have modified in setup.py
> > > > > > >
> > > > > > > rc = dict([('backend', 'PS'), ('numerix', 'Numeric')])
> > > > > > >
> > > > > > > because the original form threw errors.
> > > > > > >
> > > > > > > Any help would be much appreciated!
> > > > > > >
> > > > > > > All the best,
> > > > > > > Hanno
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > -------------------------------------------------------
> > > > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep
> through
> > > > > log files
> > > > > > > for problems? Stop! Download the new AJAX search

engine that

> > > makes
> > > > > > > searching your log files as easy as surfing the web.
> DOWNLOAD
> > > > > SPLUNK!
> > > > > > >
> > > > >
> > >
>

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

> > > > > > > _______________________________________________
> > > > > > > Matplotlib-users mailing list
> > > > > > > Matplotlib-users@lists.sourceforge.net
> > > > > > >

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

···

On 1/17/06, Hanno Klemm <klemm@...948...> wrote:
> > On 1/17/06, Hanno Klemm <klemm@...948...> wrote:
> > > > On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> > > > > > On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Hanno Klemm
> > > klemm@...948...
> > >
> > >
> > >
> >
>
>
>
> --
> Hanno Klemm
> klemm@...948...
>
>
>

--
Hanno Klemm
klemm@...948...

Yet another python 2.3+ feature. Just remove dir=p and it should work fine.

···

On 1/17/06, Hanno Klemm <klemm@...948...> wrote:

Great! However, after installing the thing I still get the following
error message:

I did

python setup.py install --prefix=~/install

which installs everything under

~/install/lib64/python2.2/site-packages/matplotlib

I then copied pylab.py into

~/install/lib64/python2.2/site-packages/

and I added to my .bashrc

export MATPLOTLIBDATA="/glb/home/nlhkl6/install"

However, starting python and typing

from pylab import *

returns:

> python
Python 2.2.3 (#1, Aug 8 2003, 08:44:27)
[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pylab import *
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/pylab.py",
line 1, in ?
    from matplotlib.pylab import *
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/matplotlib/__init__.py",
line 969, in ?
    rcParams = rc_params()
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/matplotlib/__init__.py",
line 917, in rc_params
    fname = matplotlib_fname()
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/matplotlib/__init__.py",
line 893, in
matplotlib_fname
    fname = os.path.join(get_configdir(), 'matplotlibrc')
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/matplotlib/__init__.py",
line 266, in wrapper
    ret = func(*args, **kwargs)
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/matplotlib/__init__.py",
line 356, in
_get_configdir
    if not _is_writable_dir(h):
  File
"/glb/home/nlhkl6/install/lib64/python2.2/site-packages/matplotlib/__init__.py",
line 204, in
_is_writable_dir
    t = tempfile.TemporaryFile(dir=p)
TypeError: TemporaryFile() got an unexpected keyword argument 'dir'

Where am I going wrong?

Hanno

Charlie Moad <cwmoad@...287...> said:

> Good to hear. I will look into a conditional there, so others don't
> have this problem.
>
> On 1/17/06, Hanno Klemm <klemm@...948...> wrote:
> >
> > Charlie,
> >
> > I did exacly as you said and the compile went through! Thank you very
> > much!
> >
> > All the best,
> > Hanno
> >
> >
> > Charlie Moad <cwmoad@...287...> said:
> >
> > > Well, I can't test this myself, but it is worth a shot. In
> > > matplotlib/src/cntr.c replace all occurences of PyMODINIT_FUNC with
> > > DL_EXPORT(void). You will obviously need to recompile matplotlib
> > > after this. It should occur in 3 places for each of the different
> > > numerix backends. Let us know if this works.
> > >
> > > On 1/17/06, Hanno Klemm <klemm@...948...> wrote:
> > > >
> > > > Charlie,
> > > >
> > > > unfortunately I don't have rootly powers on this machine,
therefore
> > > > using a newer version of python would mean that I have to
compile and
> > > > install it all from scratch in my home directory. Something I
would
> > > > like to avoid, if possible.
> > > >
> > > > Hanno
> > > >
> > > > Charlie Moad <cwmoad@...287...> said:
> > > >
> > > > > So the error is coming from PyMODINIT_FUNC, which is apparently
> > for >=
> > > > > python 2.3. There have been several compatibility issues come
> > up with
> > > > > 2.2 recently. Are you able to try a newer version of python?
> > > > >
> > > > > On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> > > > > >
> > > > > > Dear Charlie,
> > > > > >
> > > > > > the OS is Linux, Kernel 2.4.21 with SMP running on a Xeon box.
> > > > > >
> > > > > > uname -a spits out:
> > > > > > > uname -a
> > > > > > Linux rijkes-n-d99878 2.4.21-20.nfswan2 #1 SMP Mon Sep 13
11:28:02
> > > > > > CEST 2004 x86_64 x86_64 x86_64 GNU/Linux
> > > > > >
> > > > > > Cheers,
> > > > > > Hanno
> > > > > >
> > > > > >
> > > > > > Charlie Moad <cwmoad@...287...> said:
> > > > > >
> > > > > > > Can you tell us more about the OS?
> > > > > > >
> > > > > > > On 1/17/06, klemm@...948... <klemm@...948...> wrote:
> > > > > > > >
> > > > > > > > Hi there,
> > > > > > > >
> > > > > > > > I'm not sure, if I'm mailing to the right list, but I will
> > > > give it a
> > > > > > > > shot, anyway. I have a problem getting matplotlib
> > installed. After
> > > > > > > > compiling fine for a while I get the error message:
> > > > > > > >
> > > > > > > > ..
> > > > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when
> > searching
> > > > > > for -lz
> > > > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libz.a when
> > searching
> > > > > > for -lz
> > > > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libm.so when
> > searching
> > > > > > for -lm
> > > > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libm.a when
> > searching
> > > > > > for -lm
> > > > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libc.so when
> > searching
> > > > > > for -lc
> > > > > > > > /usr/bin/ld: skipping incompatible /usr/lib/libc.a when
> > searching
> > > > > > for -lc
> > > > > > > > building 'matplotlib._na_cntr' extension
> > > > > > > > gcc -DNDEBUG -O2 -g -pipe -D_GNU_SOURCE -fPIC -fPIC
> > > > > > -I/usr/local/include
> > > > > > > > -I/usr/include -I/glb/home/nlhkl6/install/include -I.
> > > > > > > > -I/usr/include/python2.2 -c src/_na_cntr.c -o
> > > > > > > > build/temp.linux-x86_64-2.2/_na_cntr.o -DNUMARRAY=1
> > > > > > > > src/_na_cntr.c:1705: syntax error before "init_na_cntr"
> > > > > > > > error: command 'gcc' failed with exit status 1
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > I am using:
> > > > > > > > matplotlib 0.86.1
> > > > > > > > python 2.2
> > > > > > > > Numeric 24.2
> > > > > > > > numarray 1.5.0
> > > > > > > >
> > > > > > > > I have modified basedir in setupext.py to
> > > > > > > > ..
> > > > > > > > 'linux2' : ['/usr/local', '/usr',
> > '/glb/home/nlhkl6/install'],
> > > > > > > > 'linux' : ['/usr/local', '/usr',
> > '/glb/home/nlhkl6/install'],
> > > > > > > > ..
> > > > > > > >
> > > > > > > > the header files for the numarray and the Numeric
package are
> > > > at the
> > > > > > > > last location under include/Numeric and include/Numarray
> > > > > > > >
> > > > > > > > Furthermore I have modified in setup.py
> > > > > > > >
> > > > > > > > rc = dict([('backend', 'PS'), ('numerix', 'Numeric')])
> > > > > > > >
> > > > > > > > because the original form threw errors.
> > > > > > > >
> > > > > > > > Any help would be much appreciated!
> > > > > > > >
> > > > > > > > All the best,
> > > > > > > > Hanno
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > -------------------------------------------------------
> > > > > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep
> > through
> > > > > > log files
> > > > > > > > for problems? Stop! Download the new AJAX search
engine that
> > > > makes
> > > > > > > > searching your log files as easy as surfing the web.
> > DOWNLOAD
> > > > > > SPLUNK!
> > > > > > > >
> > > > > >
> > > >
> >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> > > > > > > > _______________________________________________
> > > > > > > > Matplotlib-users mailing list
> > > > > > > > Matplotlib-users@lists.sourceforge.net
> > > > > > > >
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Hanno Klemm
> > > > klemm@...948...
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Hanno Klemm
> > klemm@...948...
> >
> >
> >
>

--
Hanno Klemm
klemm@...948...