473,725 Members | 2,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Invalid Version Number (Distutils from Cygwin)

OS: Vista
Python (ActiveState Software Installation)
Running latest Cygwin release

The error generated is pasted below - please help.

- Luis

*************** *************** *********

I'm attempting to build a project (FANN libraries) using cygwin (to avoid
installing MSVC 2003) and am receiving this error:

Traceback (most recent call last):
File "setup.py", line 46, in <module>
define_macros=[("SWIG_COMPILE" ,None)]
File "O:\bin\Python2 5\lib\distutils \core.py", line 151, in setup
dist.run_comman ds()
File "O:\bin\Python2 5\lib\distutils \dist.py", line 974, in run_commands
self.run_comman d(cmd)
File "O:\bin\Python2 5\lib\distutils \dist.py", line 994, in run_command
File "O:\bin\Python2 5\lib\distutils \command\build. py", line 112, in run
self.run_comman d(cmd_name)
File "O:\bin\Python2 5\lib\distutils \cmd.py", line 333, in run_command
self.distributi on.run_command( command)
File "O:\bin\Python2 5\lib\distutils \dist.py", line 994, in run_command
File "o:\bin\Python2 5\lib\distutils \command\build_ ext.py", line 273, in
force=self.forc e)
File "o:\bin\Python2 5\lib\distutils \ccompiler.py", line 1175, in
return klass (None, dry_run, force)
File "o:\bin\Python2 5\lib\distutils \cygwinccompile r.py", line 292, in

CygwinCCompiler .__init__ (self, verbose, dry_run, force)
File "o:\bin\Python2 5\lib\distutils \cygwinccompile r.py", line 84, in
File "o:\bin\Python2 5\lib\distutils \cygwinccompile r.py", line 424, in
ld_version = StrictVersion(r esult.group(1))
File "O:\bin\Python2 5\lib\distutils \version.py", line 40, in __init__
self.parse(vstr ing)
File "O:\bin\Python2 5\lib\distutils \version.py", line 107, in parse
raise ValueError, "invalid version number '%s'" % vstring
ValueError: invalid version number ' 23'
View this message in context: http://www.nabble.com/Invalid-Versio...p17714617.html
Sent from the Python - python-list mailing list archive at Nabble.com.

Jun 27 '08 #1
0 1465

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

Similar topics

by: John Hunter | last post by:
I am using distutils to build a python extension module on win32. I initialize the Extension class with a list of libraries with Extension("_gd", , include_dirs=incdirs, library_dirs=libdirs, libraries=libs, define_macros=macros)], and am using VC6++ where libs is a list . Distutils produces a link command with the required libraries as
by: Scott David Daniels | last post by:
I'm trying to get distutils in 2.4 happy running mingw32. I've chased a few things down, but now I'm getting: C:\Documents and Settings\daniels\Desktop\Py\block>\python24\python setup.py bui ld_ext -cmingw32 running build_ext building '_block' extension C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\python24\include \ -IC:\python24\PC -c _blockmodule.c \
by: timothy.williams | last post by:
Hello all. We don't have admin privs on our Windows boxes, but I'd like to be able to install a package built using distutils. I was able to install Python without admin, but when I tried to run the installer for this package I'm trying to install, I get a message saying that I need admin privs. Is there a way around this? Why can't it just put things in C:\Python23\Lib\site-packages like a good little installer?
by: George Sakkis | last post by:
I'm trying to build a C++ extension on Cygwin, but it fails because distutils invokes gcc instead of g++. Looking into distutils internals, it turns out that compilation is assumed to be independent of the target language, while linking is not (CCompiler.compile() doesn't take a target_lang argument but CCompiler.link() does). Is there a good reason for this ? George
by: Jerry He | last post by:
Hi, I was trying to build a C++ extension on Win32 with distutils. The extension worked on Cygwin but when I tried it with the Win32-build python, it complained that I don't have .NET Framework SDK installed. But after I installed .NET Framework SDK 2.0, it still complains "error: The .NET Framework SDK needs to be installed before building extensions for Python." (I also did try restarting my computer)
by: Claudio Grondi | last post by:
I need to unpack on a Windows 2000 machine some Wikipedia media .tar archives which are compressed with TAR 1.14 (support for long file names and maybe some other features) . It seems, that Pythons tarfile module is able to list far more files inside the archives than WinRAR or 7zip or TotalCommander, but will it unpack all available files (largest archive size 17 GByte)? If tarfile is build on TAR 1.14 or TAR 1.15 it will be
by: Greg | last post by:
Hi, creating template1 database in /var/pgsql/data1/base/1... DEBUG: invoking IpcMemoryCreate(size=1081344) FATAL: shmat(id=1179648) failed: Invalid argument What's the problem why is shmat passed a wrong id? I temporarily need Postgres running on Windows98 just to write a client app and I'm stuck at this point.
by: A. Farber | last post by:
Hello, I call readv() and writev() in several spots of a program which I run under Linux, OpenBSD and Cygwin. Since it always the same way (check the return value; then check errno and retry if EAGAIN/EINTR), I've written a wrapper function (full source code on the bottom) to call those functions and just pass the function pointer to it: do { ...
by: Jason Tishler | last post by:
On Sat, Jun 07, 2008 at 05:34:21PM -0700, newbie73 wrote: The above is a known issue: http://bugs.python.org/issue2234 Unfortunately, resolution of this issue has stalled. Additionally, someone posted a different regular expression to the Cygwin list that is suppose to handle more cases of ld version strings:
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...
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...
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...
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
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();...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.