Re: [Matplotlib-users] Unable to compile on FC6

2006-10-27 Thread Trond Danielsen
2006/10/27, Robert Elsner [EMAIL PROTECTED]:
 Hello Everybody,

 I use the usual scipy + numpy + matplotlib combination for my daily
 work. Unfortunately after switching to Fedora Core 6 (from FC5) I am
 unable to compile matplotlib 0.87.6 on my system.


I am sure you allready know this, but matplotlib 0.87.6 is available
from fedora extra.

Best regards,
Trond

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Problem building matplotlib

2006-10-27 Thread Victor Danilchenko
Hi all,

I am trying to build Matplotlib 0.87.7 on an RHEL 4.4-derived system, 
with Python 2.3.4. I am running into a weird problem. When I do python 
setup.py build, I get the following error:

gcc: src/_gtkagg.cpp
In file included from /usr/include/python2.3/Python.h:8,
  from /usr/include/pygtk-2.0/pygobject.h:5,
  from src/_gtkagg.cpp:11:
/usr/include/python2.3/pyconfig.h:850:1: warning: _POSIX_C_SOURCE 
redefined
In file included from /usr/include/string.h:26,
  from 
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/cstring:51,
  from src/_gtkagg.cpp:2:
/usr/include/features.h:150:1: warning: this is the location of the 
previous definition
In file included from src/_gtkagg.cpp:11:
/usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' 
before typename
/usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' 
before typename
In file included from /usr/include/python2.3/Python.h:8,
  from /usr/include/pygtk-2.0/pygobject.h:5,
  from src/_gtkagg.cpp:11:
/usr/include/python2.3/pyconfig.h:850:1: warning: _POSIX_C_SOURCE 
redefined
In file included from /usr/include/string.h:26,
  from 
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/cstring:51,
  from src/_gtkagg.cpp:2:
/usr/include/features.h:150:1: warning: this is the location of the 
previous definition
In file included from src/_gtkagg.cpp:11:
/usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' 
before typename
/usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' 
before typename



So I did a google search, and found someone recommending that #include 
Python.h be prepended to the offending file. I have prepended it to 
src/_gtkagg.cpp, did a clean, and run the build again. The error 
changed, and the _POSIX_C_SOURCE problem went away, but the build is 
still failing, at that same file:

gcc: src/_gtkagg.cpp
In file included from src/_gtkagg.cpp:11:
/usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' 
before typename
/usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' 
before typename
In file included from src/_gtkagg.cpp:11:
/usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' 
before typename
/usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' 
before typename



Does anyone have an idea of what is going wrong here? I could really 
use some help, as I am totally stumped.

Many thanks in advance.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Problem building matplotlib

2006-10-27 Thread Eric Firing
Victor Danilchenko wrote:
   Hi all,
 
   I am trying to build Matplotlib 0.87.7 on an RHEL 4.4-derived system, 
 with Python 2.3.4. I am running into a weird problem. When I do python 
 setup.py build, I get the following error:
 
 gcc: src/_gtkagg.cpp
 In file included from /usr/include/python2.3/Python.h:8,
   from /usr/include/pygtk-2.0/pygobject.h:5,
   from src/_gtkagg.cpp:11:
 /usr/include/python2.3/pyconfig.h:850:1: warning: _POSIX_C_SOURCE 
 redefined
 In file included from /usr/include/string.h:26,
   from 
 /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/cstring:51,
   from src/_gtkagg.cpp:2:
 /usr/include/features.h:150:1: warning: this is the location of the 
 previous definition
 In file included from src/_gtkagg.cpp:11:
 /usr/include/pygtk-2.0/pygobject.h:140: error: expected `,' or `...' 
 before typename
 /usr/include/pygtk-2.0/pygobject.h:147: error: expected `,' or `...' 
 before typename
[...]

The error is not in matplotlib, it is in a pygtk header file, which is 
presumably coming from a Redhat package.  I don't know why it is 
happening or what the best solution is, though.  It looks like the 
pygobject.h that I have has typename_, not typename, so I am 
thinking maybe this is a pygtk bug, since fixed, in which typename is 
in conflict with something.  You might try editing your copy of 
pygobject.h, adding the trailing underscore to typename on both lines 
where it occurs.  It can't hurt; these are just dummy variable names.

Eric

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] dvipng/miktex 2.5 usetex problem

2006-10-27 Thread Ryan Krauss
I am trying to use latex with matplolib on Windows XP with MikTex 2.5
and dvipng 1.8.

I am getting this warning:
dvipng warning: font cmsy10 at 512 dpi not found, characters will be left blank

when I do this:

t=arange(0,1,0.01)
y=sin(2*pi*t)
plot(t,y)

and this
ylabel('$y(t)$')

leads to
dvipng warning: font cmr17 at 356 dpi not found, characters will be left blank

with no ylabel.

I am also getting a lot of other output (see below).

How do I fix this?

Thanks,

Ryan

==
Trying to make PK font cmmi12 at 512 DPI...
Creating cmmi12.pk...
Running mf...
This is METAFONT, Version 2.71828 (MiKTeX 2.5)

(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\cmmi12.mf
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\cmbase.mf)
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\mathit.mf
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\romanu.mf [65] [66]
[67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81]
[82] [83] [84] [85] [86] [87] [88] [89] [90])
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\itall.mf [97] [98] [99]
[100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111]
[112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122])
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\greeku.mf [0] [1] [2]
[3] [4] [5] [6] [7] [8] [9] [10])
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\greekl.mf [11] [12]
[13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27]
[28] [29] [30] [31] [32] [33] [34] [35] [36] [37] [38] [39])
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\italms.mf [64] [96]
[123] [124] [125] [126] [127])
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\olddig.mf [48] [49]
[50] [51] [52] [53] [54] [55] [56] [57])
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\romms.mf [40] [41] [42]
[43] [44] [45] [46] [47] [58] [59] [60] [61] [62] [63] [91] [92] [93] [94]
[95]) ) )
Font metrics written on cmmi12.tfm.
Output written on cmmi12.512gf (128 characters, 25960 bytes).
Transcript written on cmmi12.log.
METAFONT failed for some reason
ignoring 0 strange path(s)
Running gftopk...
This is GFtoPK, Version 2.3 (MiKTeX 2.5)
'METAFONT output 2006.10.27:2322'
25960 bytes packed to 14164 bytes.
dvipng warning: font cmmi12 at 512 dpi not found, characters will be left blan
Trying to make PK font cmr17 at 356 DPI...
Creating cmr17.pk...
Running mf...
This is METAFONT, Version 2.71828 (MiKTeX 2.5)

(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\cmr17.mf
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\cmbase.mf)
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\roman.mf
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\romanu.mf [65] [66]
[67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78] [79] [80] [81]
[82] [83] [84] [85] [86] [87] [88] [89] [90])
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\romanl.mf [97] [98]
[99] [100] [101] [102] [103] [104] [105] [106] [107] [108] [109] [110] [111]
[112] [113] [114] [115] [116] [117] [118] [119] [120] [121] [122])
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\greeku.mf [0] [1] [2]
[3] [4] [5] [6] [7] [8] [9] [10])
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\romand.mf [48] [49]
[50] [51] [52] [53] [54] [55] [56] [57])
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\romanp.mf [36] [38]
[63] [62]) (C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\romspl.mf
[16] [17] [25] [26] [27] [28])
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\romspu.mf [29] [30]
[31]) (C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\punct.mf [33]
[60] [35] [37] [39] [40] [41] [42] [43] [44] [46] [47] [58] [59] [61] [64]
[91] [93] [96]) (C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\accent.mf
[18] [19] [20] [21] [22] [23] [24] [32] [94] [95] [125] [126] [127])
(C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\romlig.mf [11] [12]
[13] [14] [15]) (C:\Program Files\MiKTeX 2.5\fonts\source\public\cm\comlig.mf
[34] [45] [92] [123] [124]) ) )
Font metrics written on cmr17.tfm.
Output written on cmr17.356gf (128 characters, 24612 bytes).
Transcript written on cmr17.log.
METAFONT failed for some reason
ignoring 0 strange path(s)
Running gftopk...
This is GFtoPK, Version 2.3 (MiKTeX 2.5)
'METAFONT output 2006.10.27:2322'
24612 bytes packed to 11084 bytes.
dvipng warning: font cmr17 at 356 dpi not found, characters will be left blank

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users