|
From: John H. <jdh...@ac...> - 2003-11-20 22:43:05
|
>>>>> "Sandeep" == Sandeep Shetty <cab...@ya...> writes:
John> According to what you wrote, you did everything correct.
John> Many people run matplotlib under a variety of Microsoft
John> environments, so you shouldn't have much trouble. My guess
John> is that the PATH is not properly set. Which dir did you
John> install the GTK runtime in? By default, I believe, it goes
John> into a dir with spaces in the name, which are difficult to
John> handle correctly in the PATH. For this reason, I always
John> install the GTK runtime into C:\GTK and then add C:\GTK\lib
John> and c:\GTK\bin to my PATH.
Sandeep> Hi John, Thanks for getting back to me. I tried to start
Sandeep> from scratch and got the same results. My path variable
Sandeep> is set as follows: Path=c:\oracle\ora81\bin\;c:\Program
Sandeep> Files\Oracle\jre\1.1.7\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT
Sandeep> \System32\Wbem;d:\matlab6p5\bin\win32;d:\matlab\bin\win32;D:\Tcl\bin;c:\Program
Sandeep> Files\ssh communicat ions security\ssh Secure
Sandeep> Shell;c:\oracle\ora81\bin\;c:\Program
Sandeep> Files\Oracle\jre\1.1.7\bin\;C:\WINNT\
Sandeep> system32;C:\WINNT;C:\WINNT\System32\Wbem;d:\matlab6p5\bin\win32;d:\matlab\bin\win32;d:\Modeltech_5.5
Sandeep> e\win32;d:\bin;d:\gnuwin32\b18\H-i386-cygwin32\bin;d:\PkZip;d:\Python23;C:\GTK\lib;C:\GTK\bin
I still wonder if there is a problem because of all those paths that
have spaces (eg, all those with "Program File" in them before the GTK
path entry.) For example, when I open a 'command' shell in windows XP
and do
C:> set
to display my PATH, all the Program File entries are listed as
C:\progra~1\somepath
with no spaces. When you do the same from the command shell, are any
spaces listed?
Please try the following. Open a command shell with
Start menu->Run->command ENTER
C:> set PATH=C:\GTK\bin;C:\GTK\lib
C:> d:\python23\python
>>> import pygtk
>>> pygtk.require('2.0')
>>> import gobject
and tell me what happens. I that works, the odds are that you have a
PATH problem. If not, its something else. If it does work, try
>>> from matplotlib.matlab import *
>>> plot([1,2,3,])
>>> show()
Sandeep> Are are either of these the correct file for gobject? Or
Sandeep> is gobject found some place else?
This looks good; I do have one additional gobject file, however,
C:\Python23\Include\pygtk-2.0\pygobject
Sandeep> If you think it is better I wait for the next rev of
Sandeep> matlibplot, I can wait. Nonetheless, I would love to use
Sandeep> your library as soon as possible.
The problem is that this is most likely not intrinsic to matplotlib,
but to your GTK settings. So you'll likely have the same problems in
the next release. There are many win32 users so don't despair, this
should be a relatively easy fix. Perhaps someone on the users list
has some input?
JDH
|