Re: [Matplotlib-users] error on build on windows from SVN

2007-09-25 Thread Michael Droettboom
You didn't mention which compiler you were trying to use.  It looks like 
it can't find the Microsoft compiler.  If you have it installed, perhaps 
it's installed in a non-standard location...?  It should be 
theoretically possible to use the free Microsoft compiler, but I have no 
experience with that.

I have used the Mingw32 compiler included with Cygwin to build 
matplotlib recently with success.  There is also a version of Mingw32 
that is not part of Cygwin.  To use one of these compilers, you need to 
explicitly tell distutils (the system used to build matplotlib) to use 
it, using -c mingw32.

Cheers,
Mike

C M wrote:
 
 On 9/24/07, *John Hunter*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 On 9/24/07, C M [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
   I'm having problems building matplotlib on windows from a folder
 from SVN,
   and haven't done it
   before (previously had used the prebuilt binary download).  I
 don't know
   what I am doing wrong.
 
 Read the header of setupext.py, particularly the part for win32 users
 -- it may not be totally current, but will get much you closer to your
 goal.  Once you have followed the steps there, if you hit another
 roadblock check back here and  we will advise further and try and
 update the docs as necessary.  You are actually in the best position
 to write documentation, since you are hitting this for the first time,
 so please take notes and/or update the instructions in setupext.py so
 we can add them to the docs.
 
 
 Well, not familiar with this at all but giving it a try...In the 
 setupext.py
 header it reads:
 
   This build is similar to the mingw.  Download the visual studio static
   dependencies from
   http://matplotlib.sourceforge.net/win32_static_vs.tar.gz 
 http://matplotlib.sourceforge.net/win32_static_vs.tar.gz and
   see the README in that dir
 
 I did that.  Then, README there says:
 
   Contents:
   Static dependencies for building mpl for win32 using
   Visual Studio.
   Extract to the matplotlib source folder.
 
 I extracted it to the matplotlib folder itself and also on another
 try the subfolder, src.  In both cases then from cmd did:
 
   python setup.py build bdist_wininst
 
 In both cases got same error as before. 
 
 I like to be more help but I am not sure what to do. 
 It isn't crucial that I get the latest via SVN and
 build it myself, but I thought it would be good to learn
 to do this generally, just didn't realize it would be a bit
 of an expedition.  Not sure what to do.
 
 Thanks.
 
 
 
 
 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 
 
 
 
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-- 
Michael Droettboom
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] error on build on windows from SVN

2007-09-25 Thread Charlie Moad
The error message states that you must be using VS2003.  Python is
compiled with this, so all extensions must also be compiled with it.
If you don't have a copy of VS2003 your best bet is to just use
cygwin/mingw.

- Charlie

On 9/25/07, Michael Droettboom [EMAIL PROTECTED] wrote:
 You didn't mention which compiler you were trying to use.  It looks like
 it can't find the Microsoft compiler.  If you have it installed, perhaps
 it's installed in a non-standard location...?  It should be
 theoretically possible to use the free Microsoft compiler, but I have no
 experience with that.

 I have used the Mingw32 compiler included with Cygwin to build
 matplotlib recently with success.  There is also a version of Mingw32
 that is not part of Cygwin.  To use one of these compilers, you need to
 explicitly tell distutils (the system used to build matplotlib) to use
 it, using -c mingw32.

 Cheers,
 Mike

 C M wrote:
 
  On 9/24/07, *John Hunter*  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  On 9/24/07, C M [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
I'm having problems building matplotlib on windows from a folder
  from SVN,
and haven't done it
before (previously had used the prebuilt binary download).  I
  don't know
what I am doing wrong.
 
  Read the header of setupext.py, particularly the part for win32 users
  -- it may not be totally current, but will get much you closer to your
  goal.  Once you have followed the steps there, if you hit another
  roadblock check back here and  we will advise further and try and
  update the docs as necessary.  You are actually in the best position
  to write documentation, since you are hitting this for the first time,
  so please take notes and/or update the instructions in setupext.py so
  we can add them to the docs.
 
 
  Well, not familiar with this at all but giving it a try...In the
  setupext.py
  header it reads:
 
This build is similar to the mingw.  Download the visual studio static
dependencies from
http://matplotlib.sourceforge.net/win32_static_vs.tar.gz
  http://matplotlib.sourceforge.net/win32_static_vs.tar.gz and
see the README in that dir
 
  I did that.  Then, README there says:
 
Contents:
Static dependencies for building mpl for win32 using
Visual Studio.
Extract to the matplotlib source folder.
 
  I extracted it to the matplotlib folder itself and also on another
  try the subfolder, src.  In both cases then from cmd did:
 
python setup.py build bdist_wininst
 
  In both cases got same error as before.
 
  I like to be more help but I am not sure what to do.
  It isn't crucial that I get the latest via SVN and
  build it myself, but I thought it would be good to learn
  to do this generally, just didn't realize it would be a bit
  of an expedition.  Not sure what to do.
 
  Thanks.
 
 
  
 
  -
  This SF.net email is sponsored by: Microsoft
  Defy all challenges. Microsoft(R) Visual Studio 2005.
  http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 
 
  
 
  ___
  Matplotlib-users mailing list
  Matplotlib-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/matplotlib-users

 --
 Michael Droettboom
 Operations and Engineering Division
 Space Telescope Science Institute
 Operated by AURA for NASA

 -
 This SF.net email is sponsored by: Microsoft
 Defy all challenges. Microsoft(R) Visual Studio 2005.
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] error on build on windows from SVN

2007-09-24 Thread C M
I'm having problems building matplotlib on windows from a folder from SVN,
and haven't done it
before (previously had used the prebuilt binary download).  I don't know
what I am doing wrong.
I'm on winXP, Python 2.5. and will be using wxPython 2.8.4.2 with matplotlib
as well.

The folder with the contents from SVN I've named matplotlib_svn.  From the
cmd line and
while in that directory I wrote

python setup.py build

and got what follows.  I'm not sure what I am to do (regarding finding an
appropriate
compiler).  Any help is appreciated.


C:\Python25\Lib\site-packages\matplotlib_svnpython setup.py build

BUILDING MATPLOTLIB
matplotlib: 0.90.1
python: 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310
32 bit (Intel)]
  platform: win32
   Windows version: (5, 1, 2600, 2, 'Service Pack 2')

REQUIRED DEPENDENCIES
 numpy: 1.0
 freetype2: found, but unknown version (no pkg-config)
* WARNING: Could not find 'freetype2' headers in any
* of '.', '.\freetype2'.

OPTIONAL DEPENDENCIES
  Gtk+: no
* Building for Gtk+ requires pygtk; you must be able
* to import gtk in your build/install environment
   Tkinter: Tkinter: 50704, Tk: 8.4, Tcl: 8.4
* Tkinter present, but header files are not
* installed.  You may need to install development
* packages.
  wxPython: 2.8.4.2
* WxAgg extension not required for wxPython = 2.8
Qt: no
   Qt4: no
 Cairo: no
libpng: found, but unknown version (no pkg-config)
* Could not find 'libpng' headers in any of '.'

[Edit setup.cfg to suppress the above messages]

running build
running build_py
copying lib\matplotlib\mpl-data\matplotlibrc - build\lib.win32-
2.5\matplotlib\m
pl-data
running build_ext
No module named msvccompiler in numpy.distutils, trying from distutils..
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible
binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin
installed,
you can try compiling with MingW32, by passing -c mingw32 to setup.py.
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] error on build on windows from SVN

2007-09-24 Thread John Hunter
On 9/24/07, C M [EMAIL PROTECTED] wrote:
 I'm having problems building matplotlib on windows from a folder from SVN,
 and haven't done it
 before (previously had used the prebuilt binary download).  I don't know
 what I am doing wrong.

Read the header of setupext.py, particularly the part for win32 users
-- it may not be totally current, but will get much you closer to your
 goal.  Once you have followed the steps there, if you hit another
roadblock check back here and  we will advise further and try and
update the docs as necessary.  You are actually in the best position
to write documentation, since you are hitting this for the first time,
so please take notes and/or update the instructions in setupext.py so
we can add them to the docs.

Thanks,
JDH

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] error on build on windows from SVN

2007-09-24 Thread C M
On 9/24/07, John Hunter [EMAIL PROTECTED] wrote:

 On 9/24/07, C M [EMAIL PROTECTED] wrote:
  I'm having problems building matplotlib on windows from a folder from
 SVN,
  and haven't done it
  before (previously had used the prebuilt binary download).  I don't know

  what I am doing wrong.

 Read the header of setupext.py, particularly the part for win32 users
 -- it may not be totally current, but will get much you closer to your
 goal.  Once you have followed the steps there, if you hit another
 roadblock check back here and  we will advise further and try and
 update the docs as necessary.  You are actually in the best position
 to write documentation, since you are hitting this for the first time,
 so please take notes and/or update the instructions in setupext.py so
 we can add them to the docs.


Well, not familiar with this at all but giving it a try...In the setupext.py
header it reads:

  This build is similar to the mingw.  Download the visual studio static
  dependencies from
  http://matplotlib.sourceforge.net/win32_static_vs.tar.gz and
  see the README in that dir

I did that.  Then, README there says:

  Contents:
  Static dependencies for building mpl for win32 using
  Visual Studio.
  Extract to the matplotlib source folder.

I extracted it to the matplotlib folder itself and also on another
try the subfolder, src.  In both cases then from cmd did:

  python setup.py build bdist_wininst

In both cases got same error as before.

I like to be more help but I am not sure what to do.
It isn't crucial that I get the latest via SVN and
build it myself, but I thought it would be good to learn
to do this generally, just didn't realize it would be a bit
of an expedition.  Not sure what to do.

Thanks.
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users