Re: I am not able to setup pydb2 ! Any help !



vincent wehren wrote:
"vj" <vijaykarthick@xxxxxxxxx> schrieb im Newsbeitrag news:1127322750.143775.92010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| 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@xxxxxxx
.



Relevant Pages

  • Re: Whats so funny? WAS Re: rotor replacement
    ... That I have to download and perhaps install them to use ... > * I have to download and build the MySQLdb package to talk to MySQL ... > servers from Python code ... I can write something using a core module instead of an external ...
    (comp.lang.python)
  • Re: Include pysqlite2 into Python 2.5?
    ... Python needs some type of default SQL engine. ... automated download install info pre-packaged. ... there could be an option to install under addons or site-packages. ...
    (comp.lang.python)
  • Re: Problems with new Solaris Developers Express x86
    ... I did get the two part 2GB DVD to install on a spare machine on ... does not appear to have a compiler. ... So I an not a novice except for Solaris. ... download from opensolaris.org. ...
    (comp.unix.solaris)
  • Re: Python 2.4 killing commercial Windows Python development ?
    ... > I guess I don't understand some people's determination to not have users install fully useable Python on their Windows machines. ... here is how you install BitPim which contains a frozen Python: ... - Download and install wxPython from www.wxpython.org making sure to ...
    (comp.lang.python)
  • Re: pyparsing Catch-22
    ... Click the link at the top that says "Download from SourceForge" ... Use the standard python installation idiom "python setup.py install" ...
    (comp.lang.python)