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

PyPerl 1.0.1 [requires Visual Studio compiler?]


It seems like this is the second time I have come across this with a Pythonmodule, and I'd like to get some perspective on it.

I tried to build PyPerl (on my Win XP machine) and got the following:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Python23\Lib\site-packages\pyperl-1.0.1>setup.py install

running install
running build
running build_py
creating build
creating build\lib.win32-2.3
copying dbi.py -> build\lib.win32-2.3
copying dbi2.py -> build\lib.win32-2.3
copying perlpickle.py -> build\lib.win32-2.3
copying perlmod.py -> build\lib.win32-2.3
running build_ext
error: Python was built with version 6 of Visual Studio, and extensionsneed to
be built with the same version of the compiler, but it isn't installed.

As I'm a just poor boy with a dog, I do not own or use Visual Studio (as nice as it may be). I do have/use the mingw 2.95.2-1 C++ compiler (in case of an emergency or if my life gets too simple).

Is it possible to build this module with what I have? Should I expect to need Visual Studio from time to time for building Python modules which dive into C++? Am I totally off track here? Is this just what I get for not absorbing some readme file?
Eric Pederson

Jul 18 '05 #1
1 1828
Eric @ Zomething wrote:
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 had the same problem with Borland C++ 5.5. The cause is a
different object file format for compiled C++ code: MS has COFF,
Borland has OMF and a tool named COFF2OMF. I applied the tool to
python23.dll and could then compile extensions with the Borland
compiler. I have no idea which format Mingw32 uses. But recompiling
the Python source would surely have the same effect as applying
COFF2OMF to MS binaries.

Mit freundlichen Gruessen,

Peter Maas

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Hubert-Wienen-Str. 24
Tel +49-241-93878-0 Fax +49-241-93878-20 eMail pe********@mplusr.de
-------------------------------------------------------------------
Jul 18 '05 #2

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

Similar topics

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...
1
by: Novice | last post by:
Hi all, I'm afraid this is the second posting of this information as I didn't get a response on the previous post. I will try to shorten my message (i.e. be more concise) in the hopes that it will...
3
by: Eli Stevens (WG.c) | last post by:
The group I work with is trying to be language agnostic between Python and perl. We are trying to make it so that we are able to call our various APIs from one language or the other without having...
1
by: Novice | last post by:
Hi all, I'm afraid this is the second posting of this information as I didn't get a response on the previous post. I will try to shorten my message (i.e. be more concise) in the hopes that it will...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.