Missing dll in windows build 0.87.4

The mingw/2.4 build still works. There are instructions at the top of
the setupext.py file. The dll linking error you are getting is
something we ran into a lot. If you have numpy installed distutils
will use the numpy\distutils\mingw32ccompiler.py file. In the
Mingw32CCompiler class remove all links to "msvcr71". In my version
of numpy just comment out the whole if block at line 127.

- Charlie

···

On 7/23/06, Chris Fonnesbeck <fonnesbeck@...287...> wrote:

On 7/23/06, Charlie Moad <cwmoad@...287...> wrote:
> This error used to come up with mingw and python2.4 builds, but now we
> use Visual Studio for python2.4. I am surprised no one else has
> reported this error though? I see you used the egg binary? Has
> anyone else use the python2.4 windows egg with success.
>

Thanks, Charlie. I tried the egg binary and the exe, both with the
same result. Does it have something to do with the numpy build that I
am using? I definitely need to use an open source compiler, so it
would be great to get this running.

C.

--
Chris Fonnesbeck + Atlanta, GA + http://trichech.us

I tried commenting out that very block, but then numpy will not build
-- it does not see the mingw32 compiler without those lines, it
appears. I used the --compiler switch on the build, but to no avail.

I'm a bit stuck here, as matplotlib does not build, and the binary
does not seem to work. I'm trying to put together a package that
contains numpy, matplotlib and scipy to distribute to some of my
users.

Thanks,

···

On 7/23/06, Charlie Moad <cwmoad@...287...> wrote:

The mingw/2.4 build still works. There are instructions at the top of
the setupext.py file. The dll linking error you are getting is
something we ran into a lot. If you have numpy installed distutils
will use the numpy\distutils\mingw32ccompiler.py file. In the
Mingw32CCompiler class remove all links to "msvcr71". In my version
of numpy just comment out the whole if block at line 127.

--
Chris Fonnesbeck + Atlanta, GA + http://trichech.us

msvcr71.dll is a dll required for virtually every application built with MSVC7.1. For example, py2exe distributes it by default when it builds exes. However, it is so common, most systems already have it, installed by some other app.

I'm guessing in this case, you're working with a new Windows box that hasn't had much installed on it yet. I don't have it booted up now, but I don't have much installed on my Windows box, and I have at least a half a dozen copies of it on my system, a few in standard system directories.

For completeness, I guess that dll should be included in the egg. In the meantime, search your system for it, I bet you have at least one copy. If not, I'll bet you can get it from MS's web site.

Now that I think about it, I'm surprised it isn't distributed with Python in the first place. Someone with a Windows box should do a search and see where they are, and if there is one with Python.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

msvcr71.dll is a dll required for virtually every application built with
MSVC7.1. For example, py2exe distributes it by default when it builds
exes. However, it is so common, most systems already have it, installed
by some other app.

I'm guessing in this case, you're working with a new Windows box that
hasn't had much installed on it yet. I don't have it booted up now, but
I don't have much installed on my Windows box, and I have at least a
half a dozen copies of it on my system, a few in standard system
directories.

Not really. I am using Visual Studio for the build in which I have
never seen or heard of this error occuring. This was a mingw problem,
and the fix I mentioned was what we did when the builds were done with
mingw.

For completeness, I guess that dll should be included in the egg. In the
  meantime, search your system for it, I bet you have at least one copy.
If not, I'll bet you can get it from MS's web site.

We got this error no matter what. I had the file all over the place
and the mingw builds still complained.

···

On 7/24/06, Christopher Barker <Chris.Barker@...259...> wrote:

And by the way, trying to build matplotlib myself with the numpy
binary installed, fails. It appears to be related to tkagg:

src/_tkagg.cpp:28:18: tk.h: No such file or directory
src/_tkagg.cpp:36: syntax error before `*' token
src/_tkagg.cpp:40: `ClientData' was not declared in this scope
src/_tkagg.cpp:40: parse error before `,' token
src/_tkagg.cpp: In function `int PyAggImagePhoto(...)':
src/_tkagg.cpp:43: `Tk_PhotoHandle' undeclared (first use this function)
src/_tkagg.cpp:43: (Each undeclared identifier is reported only once for each
   function it appears in.)
src/_tkagg.cpp:43: parse error before `;' token
src/_tkagg.cpp:44: `Tk_PhotoImageBlock' undeclared (first use this function)
src/_tkagg.cpp:56: `argc' undeclared (first use this function)
src/_tkagg.cpp:57: `interp' undeclared (first use this function)
src/_tkagg.cpp:57: `argv' undeclared (first use this function)
src/_tkagg.cpp:58: `Tcl_AppendResult' undeclared (first use this function)
src/_tkagg.cpp:59: `TCL_ERROR' undeclared (first use this function)
src/_tkagg.cpp:63: `photo' undeclared (first use this function)
src/_tkagg.cpp:63: `Tk_FindPhoto' undeclared (first use this function)
src/_tkagg.cpp:117: `block' undeclared (first use this function)
src/_tkagg.cpp:143: `Tk_PhotoPutBlock' undeclared (first use this function)
src/_tkagg.cpp:153: `Tk_PhotoBlank' undeclared (first use this function)
src/_tkagg.cpp:158: `TCL_OK' undeclared (first use this function)
src/_tkagg.cpp: In function `PyObject* _tkinit(PyObject*, PyObject*)':
src/_tkagg.cpp:174: `Tcl_Interp' undeclared (first use this function)
src/_tkagg.cpp:183: parse error before `)' token
src/_tkagg.cpp:188: `struct TkappObject' has no member named `interp'
src/_tkagg.cpp:194: `Tcl_CmdProc' undeclared (first use this function)
src/_tkagg.cpp:194: parse error before `)' token
C:/MinGW/include/c++/3.2.3/bits/basic_string.tcc: At top level:
src/_tkagg.cpp:42: warning: `int PyAggImagePhoto(...)' defined but not used
error: Command "g++ -O2 -Wall -Iwin32_static/include/tcl84 -I. -Isrc -Iswig -Iag
g23/include -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetype2 -Isrc\f
reetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -I.\freetype2
-IC:\Python24\lib\site-packages\numpy\core\include -IC:\Python24\include -IC:\Py
thon24\PC -c src/_tkagg.cpp -o build\temp.win32-2.4\Release\src\_tkagg.o" failed
with exit status 1

However, I have Tk installed, as it comes bundled with ActiveState python.

···

--
Chris Fonnesbeck + Atlanta, GA + http://trichech.us

are you running:

win32_static\profile24.bat
win32_static\importlib24.bat

···

On 7/24/06, Chris Fonnesbeck <fonnesbeck@...287...> wrote:

And by the way, trying to build matplotlib myself with the numpy
binary installed, fails. It appears to be related to tkagg:

src/_tkagg.cpp:28:18: tk.h: No such file or directory
src/_tkagg.cpp:36: syntax error before `*' token
src/_tkagg.cpp:40: `ClientData' was not declared in this scope
src/_tkagg.cpp:40: parse error before `,' token
src/_tkagg.cpp: In function `int PyAggImagePhoto(...)':
src/_tkagg.cpp:43: `Tk_PhotoHandle' undeclared (first use this function)
src/_tkagg.cpp:43: (Each undeclared identifier is reported only once for each
   function it appears in.)
src/_tkagg.cpp:43: parse error before `;' token
src/_tkagg.cpp:44: `Tk_PhotoImageBlock' undeclared (first use this function)
src/_tkagg.cpp:56: `argc' undeclared (first use this function)
src/_tkagg.cpp:57: `interp' undeclared (first use this function)
src/_tkagg.cpp:57: `argv' undeclared (first use this function)
src/_tkagg.cpp:58: `Tcl_AppendResult' undeclared (first use this function)
src/_tkagg.cpp:59: `TCL_ERROR' undeclared (first use this function)
src/_tkagg.cpp:63: `photo' undeclared (first use this function)
src/_tkagg.cpp:63: `Tk_FindPhoto' undeclared (first use this function)
src/_tkagg.cpp:117: `block' undeclared (first use this function)
src/_tkagg.cpp:143: `Tk_PhotoPutBlock' undeclared (first use this function)
src/_tkagg.cpp:153: `Tk_PhotoBlank' undeclared (first use this function)
src/_tkagg.cpp:158: `TCL_OK' undeclared (first use this function)
src/_tkagg.cpp: In function `PyObject* _tkinit(PyObject*, PyObject*)':
src/_tkagg.cpp:174: `Tcl_Interp' undeclared (first use this function)
src/_tkagg.cpp:183: parse error before `)' token
src/_tkagg.cpp:188: `struct TkappObject' has no member named `interp'
src/_tkagg.cpp:194: `Tcl_CmdProc' undeclared (first use this function)
src/_tkagg.cpp:194: parse error before `)' token
C:/MinGW/include/c++/3.2.3/bits/basic_string.tcc: At top level:
src/_tkagg.cpp:42: warning: `int PyAggImagePhoto(...)' defined but not used
error: Command "g++ -O2 -Wall -Iwin32_static/include/tcl84 -I. -Isrc -Iswig -Iag
g23/include -I. -I. -Iwin32_static/include/tcl84\freetype2 -I.\freetype2 -Isrc\f
reetype2 -Iswig\freetype2 -Iagg23/include\freetype2 -I.\freetype2 -I.\freetype2
-IC:\Python24\lib\site-packages\numpy\core\include -IC:\Python24\include -IC:\Py
thon24\PC -c src/_tkagg.cpp -o build\temp.win32-2.4\Release\src\_tkagg.o" failed
with exit status 1

However, I have Tk installed, as it comes bundled with ActiveState python.

Charlie Moad wrote:

Not really. I am using Visual Studio for the build in which I have
never seen or heard of this error occuring. This was a mingw problem,

didn't the OP get this error with a MSVC build?

Anyway, I don't have windows booted to test myself, and I'm out of my depth.

-CHB

···

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...