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

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 2271
db*****@yahoo.com 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=mingw32
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.com 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.com wrote:
Still no luck. When I run "build" I do use the compiler flag as
shown:

C:>python setup.py build --compiler=mingw32
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*****@bullseye.apana.org.au (pref) | Snail: PO Box 370
an*****@pcug.org.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
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...
2
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...
0
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...
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...
188
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...
66
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,...
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
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
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
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.