Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python 2.4 / WinXP / distutils error (cookbook example)

Reply
Thread Tools

Python 2.4 / WinXP / distutils error (cookbook example)

 
 
magoldfish@yahoo.com
Guest
Posts: n/a
 
      03-07-2005
Hi,

I've installed Python 2.4 on Windows XP and walked through the Alex
Martelli ASPN cookbook example at:

http://aspn.activestate.com/ASPN/Coo...n/Recipe/66509

This is a recipe for a simple extension type for Python. When I try to
build and install it, however, I get an error:

c:\temp\el>python setup.py install
running install
running build
running build_ext
error: The .NET Framework SDK needs to be installed before
building extensions for Python.

I have Visual Studio .NET Professional installed.

Can anyone point me in the right direction?

Thanks!
Marcus

 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
Guest
Posts: n/a
 
      03-07-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> I have Visual Studio .NET Professional installed.
>
> Can anyone point me in the right direction?


There are several solutions, but one is to install Visual Studio .NET
2003 (which is different from Visual Studio .NET, also referred to
as VS.NET 2002). Microsoft managed to rename the C library (CRT) between
2002 (msvcr7.dll) and 2003 (msvcr71.dll), and you need to make sure
your extension uses the same CRT as the one used to build Python.

Regards,
Martin
 
Reply With Quote
 
 
 
 
magoldfish@yahoo.com
Guest
Posts: n/a
 
      03-08-2005
Martin v. L÷wis wrote:
> There are several solutions, but one is to install Visual Studio .NET
> 2003 (which is different from Visual Studio .NET, also referred to
> as VS.NET 2002). Microsoft managed to rename the C library (CRT)

between
> 2002 (msvcr7.dll) and 2003 (msvcr71.dll), and you need to make sure
> your extension uses the same CRT as the one used to build Python.


Thanks Martin-- you pointed me in the right direction. I followed the
instructions at

http://www.vrplumber.com/programming...kit/index.html

to modify my distutils and development environment to use the free
Microsoft Visual C++ Toolkit Compiler 2003. Reproducing the recipe
result was straightforward from there.

Marcus

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
distutils, No module named numpy.distutils.fcompiler.conv_template Luis Alberto Zarrabeitia Gomez Python 0 03-30-2009 03:56 PM
can distutils windows installer invoke another distutils windows installer timw.google Python 1 05-11-2006 10:07 PM
WinXP 64 .mp3 summary change to look like WinXP 32? Manquala Windows 64bit 4 01-15-2006 04:01 AM
When Python *Eggs* better than Python *distutils*?? What's Eggs? seberino@spawar.navy.mil Python 9 01-04-2006 10:06 PM
Python 2.4, distutils, and pure python packages Fuzzyman Python 5 03-12-2005 12:19 PM



Advertisments