473,703 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Win2k and mingw gnu compiler with Python 2.3.2?

I'm trying to understand and document how to install pypar on Win2k.
Pypar needs to be installed with some MPI library code and also needs
libpython23.a and other files which are not included with the python
Windows binary installation. I've got that worked out but still no
success.

Here's the error message I'm seeing:
python setup.py install
running install
running build
running build_py
running build_ext
error: Python was built with version 6 of Visual Studio, and extensions need tobe built with the same version of the compiler, but it isn't

installed.

I also get the error if I use gcc directly. I'm trying to use the
mingw version of the gnu compiler in a command window (not cygwin). I
have made this appoach work on python 2.2 but not 2.3. Does anyone
know of a work-around or at least what might be happening? I'm more
of a scripter, not a full-time programmer, and moving quickly out of
my depth on this one.
Dave Brown
Jul 18 '05 #1
3 2286
db*****@yahoo.c om writes:
I'm trying to understand and document how to install pypar on Win2k.
Pypar needs to be installed with some MPI library code and also needs
libpython23.a and other files which are not included with the python
Windows binary installation. I've got that worked out but still no
success.
It's a pain, isn't it?

Here's the error message I'm seeing:
python setup.py install [...]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.

I also get the error if I use gcc directly. I'm trying to use the
mingw version of the gnu compiler in a command window (not cygwin). I


Something like

python setup.py install -cmingw32
? But if that is the problem, dunno why you were getting away with it
on 2.2.
John
Jul 18 '05 #2
John,

Still no luck. When I run "build" I do use the compiler flag as
shown:

C:>python setup.py build --compiler=mingw3 2
C:>running build
C:>running build_py
C:>running build_ext
C:>

This seems to work fine. The "install" command will not accept a
compiler option. Thanks for the suggestion though.

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."

appears to be a windows issue related to the compiler used to build
the binary installer version. I could not find mention at python.org
of who actually produces the windows installer and also couldn't find
a credit in the installer itself. Could someone point me to an
appropriate contact or email to report this? It doesn't appear to be
a python language issue.

-- David

jj*@pobox.com (John J. Lee) wrote in message news:<87******* *****@pobox.com >...
db*****@yahoo.c om writes:
I'm trying to understand and document how to install pypar on Win2k.
Pypar needs to be installed with some MPI library code and also needs
libpython23.a and other files which are not included with the python
Windows binary installation. I've got that worked out but still no
success.


It's a pain, isn't it?

Here's the error message I'm seeing:
python setup.py install [...]error: Python was built with version 6 of Visual Studio, and extensions need tobe built with the same version of the compiler, but it isn't

installed.

I also get the error if I use gcc directly. I'm trying to use the
mingw version of the gnu compiler in a command window (not cygwin). I


Something like

python setup.py install -cmingw32
? But if that is the problem, dunno why you were getting away with it
on 2.2.
John

Jul 18 '05 #3
On Fri, 23 Oct 2003 db*****@yahoo.c om wrote:
Still no luck. When I run "build" I do use the compiler flag as
shown:

C:>python setup.py build --compiler=mingw3 2
C:>running build
C:>running build_py
C:>running build_ext
C:>

This seems to work fine. The "install" command will not accept a
compiler option. Thanks for the suggestion though.

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."

appears to be a windows issue related to the compiler used to build
the binary installer version. I could not find mention at python.org
of who actually produces the windows installer and also couldn't find
a credit in the installer itself. Could someone point me to an
appropriate contact or email to report this? It doesn't appear to be
a python language issue.


I'm sure that this has come up on the Distutils-SIG mailing list, and ISTR
someone came up with a workaround. I suggest a scan of the list archives.

--
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: an*****@bullsey e.apana.org.au (pref) | Snail: PO Box 370
an*****@pcug.or g.au (alt) | Belconnen ACT 2616
Web: http://www.andymac.org/ | Australia

Jul 18 '05 #4

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

Similar topics

0
1567
by: Andrew Gregory | last post by:
In Python 2.2, I compiled some C++ code on Windows (MinGW compiler) to create an extension using distutils and the following setup.py file: from distutils.core import setup, Extension setup (name = "_pysimple", version = "1.0", maintainer = "AG", maintainer_email = "xxx@xx.co.uk", description = "Sample Python C++ DLL", ext_modules = ,
2
2068
by: Dave Haynes | last post by:
Hi, This is just as much a PostgreSQL question as a Python one, but here goes... I've been trying to port the psycopg interface to a Win2K client (server runs FreeBSD). I'm using MinGW32 rather than CygWin, and having trouble compiling the libpg library as a DLL. I started off with the following:
0
2090
by: Phil Schmidt | last post by:
I'm attempting to follow the instructions at http://sebsauvage.net/python/mingw.html, without luck. I have Python 2.3, MinGW 3.2.3, ans SWIG 1.3.19. I get an export error on "initexample" when attempting the example. Do I need some extra switches to get SWIG to create that function? Or is it something else? Here's my example build:
0
1704
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 about it here: http://jove.prohosting.com/iwave/ipython/pyMinGW.html), allow me to report that it is now also possible to compile and build most of python24a3 in MinGW as well.
188
8465
by: Ilias Lazaridis | last post by:
I'm a newcomer to python: - E01: The Java Failure - May Python Helps? http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553 - I've download (as suggested) the python 2.4 installer for windows. Now I have problems to compile python extension that some packages
66
5472
by: Srijit Kumar Bhadra | last post by:
Is there any specific reason for not using MinGW to build the official distribution of Python for Win32? A quick Google search did not reveal the answer to my question. If a link is available, please post it. Best Regards, Srijit
0
8741
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9239
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9096
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8947
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5919
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4416
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4674
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2419
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.