473,385 Members | 1,912 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,385 software developers and data experts.

Compiling disutil modules on Windows

Hi folks,

Enjoying the process of picking up Python, but have come to an
unexpected grinding halt.

I am using the latest ActivePython release on Win2k. When I try to run

python setup.py install

on a disutil package, I get the error:

"Python was built with version 6 of Visual Studio, and extensions need
to be built with the same version of the compiler, but it isn't
installed."

Assuming this is correct, I find it mind-boggling that Active State
have chosen to use an expensive and discontinued commercial compiler!

I am aware that MS have released a free version of the latest Visual
Studio 7 compiler. I have installed this but disutils doesn't
recognise it. I can't find a free release of the MVC++ compiler: does
such a thing exist?

I assumed this would be a FAQ but can't find much in the archives. My
knowledge of C compiling is close to zero, so I am stuck. Any
advice would be much appreciated: this is a show-stopper.

------------------
Geoff Caplan
Vario Software Ltd
(+44) 121-515 1154

Jul 18 '05 #1
3 1758
Hi !

Look the message "Building Python 2.4 extensions with the Microsoft Toolkit
Compiler" from 17 jul 2004

It's interesting...

Jul 18 '05 #2
Michel,

MCamgntefp> Look the message "Building Python 2.4 extensions with the Microsoft Toolkit
MCamgntefp> Compiler" from 17 jul 2004

Thanks for the link, but I don't think it's a viable solution for me.

First, it seems to be aimed at the official Alpha release of 2.4 which
is compiled with the MVC++ 7. I need to get something working with the
stable Active State distro, which is compiled with MVC++ 6.

Also, Mike says it's aimed at experienced extension developers with
experience of C compilers, and that "It is not really targeted at
end-users." He also says: "Note that this document represents the
findings of a very limited set of tests with what is essentially an
unsupported approach to building extensions. You should expect to
find bugs. No warranty is made that the approach outlined is safe or
appropriate."

I think that this approach would be well beyond my level of
competence!

What is the best way for an end-user with minimal C skills to get
extensions working on Windows? I would abandon the Active State distro
if I had to, but only reluctantly, as in other respects it seems very
convenient.

------------------
Geoff Caplan
Vario Software Ltd
(+44) 121-515 1154

Jul 18 '05 #3
Geoff Caplan:
I am aware that MS have released a free version of the latest Visual
Studio 7 compiler. I have installed this but disutils doesn't
recognise it. I can't find a free release of the MVC++ compiler: does
such a thing exist?


You could try to use mingw:
http://sebsauvage.net/python/mingw.html

Neil
Jul 18 '05 #4

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

Similar topics

0
by: A. B., Khalid | last post by:
Hello all. After the effort of getting most of Python 2.3.4 Final compiled in MinGW (see: http://mail.python.org/pipermail/python-list/2004-June/225967.html, and get the patch and read more...
6
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
0
by: Martin Bless | last post by:
I need to access a MSSQL database (MS-Sql, not MySQL!)and would very much like to use mssql-0.09.tar.gz which is available from http://www.object-craft.com.au/projects/mssql/download.html ...
0
by: David W. Fenton | last post by:
Today I was working on a hideous old app that I created a long time ago that does a lot of showing/hiding/resizing of fields on one of the forms. I had used constants to store reference values for...
3
by: Ryan Riehle | last post by:
Hi All! Trying to upgrade to Apache 2.0.49 and getting compile errors related to mod_auth_pgsql, any clue?: make: Entering directory `/usr/src/httpd-2.0.49'...
7
by: Sverker Nilsson | last post by:
I have been informed that Guppy-PE (http://guppy-pe.sourceforge.net) has failed to compile its extension modules with a Microsoft .NET 2003 compiler under Windows 2000. One of the problems,...
9
by: jojobar | last post by:
In vs.net 2005 you can build the entire website, entire solution or a single page. The project I am working on has more than 1000 pages spread over 50-60 directories. We work on one or two of the...
1
by: fsmountain | last post by:
Hi guys, I am trying to compile VTK5.0 with Qt GUI Support in Windows 2000 that has Qt Open-Sourced 4.1.2 and CMake 2.4.2 installed. After QVTK is enabled in CMake, configuring it will prompt...
11
by: ZMY | last post by:
Dear all, I am a real newbie for both python and QNX, but I am still trying to compile Numeric-24.2 under QNX4.25 with python 2.2. I got following error message: $ sudo python setup.py...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.