I am not able to setup pydb2 ! Any help !

Scott David Daniels Scott.Daniels at Acm.Org
Wed Sep 21 15:15:43 EDT 2005


vincent wehren wrote:
> "vj" <vijaykarthick at gmail.com> schrieb im Newsbeitrag 
> news:1127322750.143775.92010 at g44g2000cwa.googlegroups.com...
> | Unfortunately I get another error
> |
> | Your DB2 root is: C:\Program Files\IBM\SQLLIB\
> | running install
> | running build
> | running build_py
> | creating build
> | creating build\lib.win32-2.4
> | copying DB2.py -> build\lib.win32-2.4
> | running build_ext
> | error: The .NET Framework SDK needs to be installed before building
> | extensions f
> | or Python.
> 
> You need the same compiler Python 2.4 was compiled with to compile CPython 
> extensions from source. Alternatively, you might look into getting some 
> precompiled Windows Binaries for pydb2 (try Googling for them or the pyDB2 
> mailing list).

Actually, "the same" is not necessary on Windows; you need a
"compatible" compiler.  MinGW, MS VC, and Intel's compiler are all
"compatible"  The big trick is that Python 2.4 switched versions,
and was built with VC 7.1 (previous Windows python editions were
built with 6.0).  So you need either VC 7.1, the ".Net" C compiler
available for direct download from MS (actually you need two large
downloads, but you may not "pass them around" after downloading),
a 7.1-compatible version for the Intel compiler, or a MinGW compiler
compatible with the 7.1 runtimes.  Note, this switch of compilers was
based in part on the fact that there is no longer any way to legally
buy a VC 6.0 compiler; MS no longer sells that version.  At least you
either buy the 7.1 compiler or download the packages yourself.

I have managed to get the VC stuff from the download to work, but I did
it in part by hacking the distutils code in Python 2.4.  I presume
that over time, we will get better about this.  Also note, if you
do intend to build products for delivery to customers on Windows,
MS is fairly determined to get you develop money; you may not
redistribute the C runtime with your app from the "free" stuff.
If you pay the fee for 7.1, you can get the redistribution rights.
However, by installing Python 2.4 on the customer machine, you
will have installed a working VC runtime.  The official Python 2.4
windows distribution, ActiveState's Python distribution, and probably
a few other distributions all will install the VC runtime if necessary,
and are built by people with the right to redistribute it.  So, at the
cost of a two-step install, you can legally build and distribute Python
2.4 apps.

In case you don't know: I am not a lawyer; don't regard my guesses about
the legal status of things as definitive; don't base a business model on
this without consulting a lawyer; your mileage may vary; objects in the
mirror may be closer than they appear.

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list