By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,539 Members | 1,289 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,539 IT Pros & Developers. It's quick & easy.

PyPerl 1.0.1 [requires Visual Studio compiler?]

P: n/a

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
Share this Question
Share on Google+
1 Reply


P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.