473,387 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Python 2.4 / WinXP / distutils error (cookbook example)

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

Jul 18 '05 #1
2 1590
ma********@yahoo.com 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
Jul 18 '05 #2
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

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David Isal | last post by:
hi all, i'm new to python and i'm trying to build a python extension on win98, written in c++, with cygwin. but i keep having the same error message, and i didnt't find much resources on the web...
3
by: Olivier Ravard | last post by:
Hi, When I tryed to compile a python module using distutils under windows, and there is an error message if we do not have Microsoft Visual C++ 6 installed. This is because python have been...
7
by: Scott | last post by:
I've installed Python 2.4 under WinXP and am attempting to create an extension module using the steps outlined here: http://python.org/doc/2.4/ext/win-cookbook.html I'm specifically trying to...
1
by: jtan325 | last post by:
hi, i am running Linux Ubuntu Hoary and am trying to build the Python numarray package, v. 1.3.2 by hand since ubuntu's repos won't be updated until breezy. i have python 2.4, and gcc 3.3.5 ...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 398 open ( +5) / 3334 closed (+19) / 3732 total (+24) Bugs : 904 open ( -4) / 6011 closed (+36) / 6915 total (+32) RFE : 222 open...
1
by: 2Good4You-Veki(Cro) | last post by:
Hi all, When I want setup my script: I write: from distutils.core import setup setup(name="myscript", version='1.0', scripts=)
0
by: Martijn de Munnik | last post by:
Hi, I'm trying to build/install pysqlite on a Solaris 10 platform. I've got Sun Studio 11 on a AMD 64 platform and got this error. I'm a python newbie and just want to install trac. I've got...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.