[Numpy-discussion] (no subject)
Hey guys I posted this on matplotlibs mailing list hey guys i got the subversion from the site and I am trying to install it on windows. I changed dir into the matplotlib dir that includes the setup.py file. run python setup.py install, and im getting a wierd error. i left the topmost lines along with the error. has anyone seen anything like this before? building 'matplotlib.enthought.traits.ctraits' extension creating build\temp.win32-2.4\Release\lib creating build\temp.win32-2.4\Release\lib\matplotlib creating build\temp.win32-2.4\Release\lib\matplotlib\enthought creating build\temp.win32-2.4\Release\lib\matplotlib\enthought\traits C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Ic:\Python24\include -Ic:\Python24\PC /Tclib/matplotlib/e nthought/traits/ctraits.c /Fobuild\temp.win32-2.4\Release\lib/matplotlib/enthoug ht/traits/ctraits.obj C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\Python24\libs /LIBPATH:c:\Python24\PCBuild /EXPORT: initctraits build\temp.win32-2.4\Release\lib/matplotlib/enthought/traits/ctraits .obj /OUT:build\lib.win32-2.4\matplotlib\enthought\traits\ctraits.pyd /IMPLIB:bu ild\temp.win32-2.4\Release\lib/matplotlib/enthought/traits\ctraits.lib building 'matplotlib.backends._tkagg' extension C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static/include/tcl84 -I. -Isrc -Iswig -Iagg23/incl ude -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetype2 -Isrc\freetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -I.\freetype2 -Ic:\Pyt hon24\include -Ic:\Python24\PC /Tpsrc/_tkagg.cpp /Fobuild\temp.win32-2.4\Release \src/_tkagg.obj _tkagg.cpp src\_tkagg.cpp(28) : fatal error C1083: Cannot open include file: 'tk.h': No suc h file or directory error: Command C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.e xe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static/include/tcl84 -I. -Isrc - Iswig -Iagg23/include -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetyp e2 -Isrc\freetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -I.\ freetype2 -Ic:\Python24\include -Ic:\Python24\PC /Tpsrc/_tkagg.cpp /Fobuild\temp .win32-2.4\Release\src/_tkagg.obj failed with exit status 2 and recieved this response You need to install the tcl/tk headers as Darren mentioned. I just install ActiveTcl and the build should pick up on it no problem. And then after that I ran into another error that looks like it might be numpy related. So i am posting this here and on Matplotlibs list. The second error is why i am posting here but since some of you use the latest SVN on windows maybe you could offer more general help of how to compile matplotlib on windows I went ahead and installed Active Tcl I removed microsft visual studio 2003 .net from my computer because I never used it, and I did not want it on here in the first place but i had it on here from being an intern over the summer. C:\matplotlib\trunk\matplotlibc:\Python24\python.exe setup.py install GTK requires pygtk building tkagg 2 4 Building for python24 GTKAgg requires pygtk running install running build running build_py running build_ext No module named msvccompiler in numpy.distutils, trying from distutils.. building 'matplotlib.backends._tkagg' extension C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static/include/tcl84 -I. -Isrc -Iswig -Iagg23/incl ude -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetype2 -Isrc\freetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -I.\freetype2 -Ic:\Pyt hon24\include -Ic:\Python24\PC /Tpsrc/_tkagg.cpp /Fobuild\temp.win32-2.4\Release \src/_tkagg.obj _tkagg.cpp src\_tkagg.cpp(28) : fatal error C1083: Cannot open include file: 'tk.h': No suc h file or directory error: Command C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.e xe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Iwin32_static/include/tcl84 -I. -Isrc - Iswig -Iagg23/include -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetyp e2 -Isrc\freetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -I.\ freetype2 -Ic:\Python24\include -Ic:\Python24\PC /Tpsrc/_tkagg.cpp /Fobuild\temp .win32-2.4\Release\src/_tkagg.obj failed with exit status 2 This is the error i got after my first try at python setup.py install after it did not work is when i uninstalled .net 2003. and i recieve this error currently. C:\matplotlib\trunk\matplotlibc:\Python24\python.exe setup.py install GTK requires pygtk building tkagg 2 4 Building for python24 GTKAgg requires pygtk running install running build running build_py running build_ext No module named msvccompiler in numpy.distutils, trying from distutils.. error: The .NET Framework SDK needs to be installed before building
Re: [Numpy-discussion] Release of 1.0b5 this weekend
I find it much cleaner to write x = foo.bar().baz(param).frob() than foo.bar() foo.baz(param) x = foo.frob() but perhaps others disagree. Both of these look clean but i do not think that moving 3 lines to one line makes code cleaner They both do the same thing and if someone that does not know what .bar() .baz(param) and .frob() are IMO the second version that takes place on three lines would be easier to understand. I'm generally +0 on this idea (it seems like the clarity in writing comes largely for interactive users), and don't see much difficulty in separating the constructs. On the other hand, I don't see much problem in returning a reference to self either. I guess you are worried about the situation where you write b = a.sort() and think you have a new array, but in fact have a new reference to the already-altered 'a'? Hmm.. So, how is this different from the fact that b = a[1:10:3] already returns a reference to 'a' (I suppose in the fact that it actually returns a new object just one that happens to share the same data with a). However, I suppose that other methods don't return a reference to an already-altered object, do they. Tim's argument has moved me from +0 to -0 -Travis I couldn't agree more with you and Tim on this. I would rather have code that works all the time and will not possibly confuse people later, like the example of b = a.sort() and think you have a new array, but in fact have a new reference to the already-altered 'a'? alot of people have problems grasping this memory management type of programming...or at least in my C class half of the kids dropped out because the couldnt keep track of b = a.sort() meaning that b was actually just referencing a and if you changed b then a was changed also. But then again who on this list has problems remembering things like that anyways right?... ~Kenny - 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 ___ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
[Numpy-discussion] Py2exe / numpy troubles
My Configuration : Windows XP pro, ActivePython 2.4.2.10, Scipy 0.4.9, Numpy 0.9.8, MatplotLib 0.87.1, Py2exe 0.6.5, WxPython 2.6 1) Be very careful on how you generate the file ...\dist\library.zip.I don't know why, but the zip file generated by hand doesn't work. Check its size! Specific zip format? Specific options to generate it? I didn't check source files to know how library.zip is generated.My method is the following one:- Extract the ...\test\dist\library.zip file in ...\test\dist\library- Add the file ...\Python24\Lib\site-packages\numpy\core\_internal.pyc in ...\test\dist\library\numpy\core.- Use Winzip to Add the ...\test\dist\library\numpy directory to the ...\dist\library.zip file I know, it is not really beautiful but it seems to work. It is a temporary solution for debug. I am new in Python so my style is not really academic 2) If you use my setup.py file, one more time, be careful cause of the wx specific dll: wxmsw26uh_vc.dllI don't know why, but Py2Exe doesn't find it. I remove that dll from the compilation phase and I copy it by hand in ...\test\dist directory.An idea may be the modification of setup.py file to indicate the path of that dll or something like that.DOES ANYONE HAVE THE SOLUTION? 3)I am still blocked on my second issue 2) Second problem: I don't know how to resolve that issue: Traceback (most recent call last): File profiler_ftt.py, line 15, in ? from matplotlib.backends.backend_wx import Toolbar, FigureCanvasWx,\ File matplotlib\backends\backend_wx.pyc, line 152, in ? File matplotlib\backend_bases.pyc, line 10, in ? File matplotlib\colors.pyc, line 33, in ? File matplotlib\numerix\__init__.pyc, line 67, in ? File numpy\__init__.pyc, line 35, in ? File numpy\_import_tools.pyc, line 173, in __call__ File numpy\_import_tools.pyc, line 68, in _init_info_modules File string, line 1, in ? File numpy\random\__init__.pyc, line 3, in ? File numpy\random\mtrand.pyc, line 12, in ? File numpy\random\mtrand.pyc, line 10, in __load File numpy.pxi, line 32, in mtrand AttributeError: 'module' object has no attribute 'dtype' I don't find the file numpy.pxi in my file tree nor in \test\dist\library.zip. I browsed the web in the hope to find a solution but nothing. It seems that this issue is well known but no solution provided in mailing lists. What is that file numpix.pxi? Where to find it or how is it generated? How to resolve that execution issue? Regards,Tristan could you post your setup file please? i can look at it i may not be much help but some is better than none - 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 ___ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
[Numpy-discussion] 1.0b4 problem continuted from 1.0b3
On 8/25/06, Travis Oliphant [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Message: 4 Date: Thu, 24 Aug 2006 14:17:44 -0600 From: Travis Oliphant [EMAIL PROTECTED] Subject: Re: [Numpy-discussion] (no subject) To: Discussion of Numerical Python numpy-discussion@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1; format=flowed [EMAIL PROTECTED] wrote: You have a module built against an older version of NumPy. What modules are being loaded? Perhaps it is matplotlib or SciPy You need to re-build matplotlib. They should be producing a binary that is compatible with 1.0b2 (I'm being careful to make sure future releases are binary compatible with 1.0b2). Also, make sure that you remove the build directory under numpy if you have previously built a version of numpy prior to 1.0b2. -Travis - 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 ___ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion Travis I have recompiled everything. I removed sci py numpy and matplotlib. I installed the numpy 1.0b4 win32exe, and then installed scipi 0.5 and then the latest matplotlib 0.87.4 I recieved this error at first, which is a matplot lib error, C:\Lamenessc:\python23\python templatewindow.py Traceback (most recent call last): File templatewindow.py, line 7, in ? import wxmpl File c:\python23\lib\site-packages\wxmpl.py, line 25, in ? import matplotlib.numerix as Numeric File C:\PYTHON23\Lib\site-packages\matplotlib\numerix\__init__.py, line 74, in ? Matrix = matrix NameError: name 'matrix' is not defined , and then switched matplotlib to use numeric, and i recieve this error once again Overwriting info=function info at 0x02097C30 from scipy.misc.helpmod (was fun ction info at 0x020777F0 from numpy.lib.utils) Overwriting who=function who at 0x020971B0 from scipy.misc.common (was functi on who at 0x020776F0 from numpy.lib.utils) Overwriting source=function source at 0x02097EB0 from scipy.misc.helpmod (was function source at 0x02077830 from numpy.lib.utils) RuntimeError: module compiled against version 100 of C-API but this version of numpy is 102 Fatal Python error: numpy.core.multiarray failed to import... exiting. abnormal program termination i googled the error and also found this thread but have not found a solution http://www.mail-archive.com/numpy-discussion@lists.sourceforge.net/msg01700.html any help? thanks -Kenny - 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 ___ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
Re: [Numpy-discussion] numpy-1.0b3 under windows
Sorry for my ignorance, but I have not ever heard of or used mingw32. I am also using python 2.3. Is there any way someone could possibly send me a brief walk through of how to install 1.0b3 on windows32? Also I am not sure that I know how to manipulate the code that you guys said that you have to so that it will work so if that is needed could you post a walk through of that also? - 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 ___ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
[Numpy-discussion] 1.02b
I realize it was just released, but is there going to be a windows release for 1.02b? - 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 ___ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion
[Numpy-discussion] numpy.linalg.linalg.LinAlgError: Singular matrix
all of the variables n, st, st2, st3, st4, st5, st6, sx, sxt, sxt2, and sxt3 are all floats. A = array([[N, st, st2, st3],[st, st2, st3, st4], [st2, st3, st4, st5], [st3, st4, st5, st6]]) B = array([sx, sxt, sxt2, sxt3]) lina = linalg.solve(A, B) is there something wrong with this code? it is returning File C:\PYTHON23\Lib\site-packages\numpy\linalg\linalg.py, line 138, in solve raise LinAlgError, 'Singular matrix' numpy.linalg.linalg.LinAlgError: Singular matrix Does anyone know what I am doing wrong? -Kenny - 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 ___ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion