From: Jeffrey Z. <Jef...@q-...> - 2009-03-20 09:55:32
|
Is it possible to install the python-sybase module on Windows XP? I have tried on and off for 2 years and I have never been successful, even though I have followed the instructions at: http://python-sybase.sourceforge.net/install.html This information is clearly wrong and I would appreciated it *very much* if a single reader of this list would help me. First of all, the installation documents states that the "Micorsoft Visual C++ 2005 Express Edition compiler can be freely downloaded and used". I have done that and when I try to install python-sybase on Windows (with Python 2.5.4), I get the following error: error: Python was built with Visual Studio 2003; extensions must be built with a compiler than can generate compatible binaries. Visual Studio 2003 was not found on this system. If you have Cygwin installed you can try compiling with MingW32, by passing "-c mingw32" to setup.py. I do not have access to Visual Studio 2003. I have also tried using the latest version of Python 2.6.x, but the installation fails with running build_ext building 'sybasect' extension error: None This is extremely frustrating. Is there *any* way I can install python-sybase on Windows? Our company uses Sybase for large projects and I would like to use Python for development purposes. I hope there is at least one person out there who has managed to successfully install python-sybase with Python 2.5.x on Windows. If so, I would very much like to know what I am doing wrong. Many, many thanks in advance. Jeffrey Zelt QFree ASA |
From: Sébastien S. <sa...@us...> - 2009-03-20 12:37:38
|
Hi Jeffrey, I do not use windows myself, but as far as I know you should use the same compiler to compile python-sybase than the one that was used to compile Python. python-sybase uses distutils for compilation in a standard way so you will probably experience the same problem with any python package which contains a C extension and you can follow any existing tutorial on compiling a C extension for Python in windows to compile python-sybase. Here is a good start: http://docs.python.org/extending/windows.html http://boodebr.org/main/python/build-windows-extensions regards -- Sébastien Sablé Jeffrey Zelt a écrit : > Is it possible to install the python-sybase module on Windows XP? > > I have tried on and off for 2 years and I have never been successful, > even though I have followed the instructions at: > > http://python-sybase.sourceforge.net/install.html > > This information is clearly wrong and I would appreciated it *very much* > if a single reader of this list would help me. > > First of all, the installation documents states that the "Micorsoft > Visual C++ 2005 Express Edition compiler can be freely downloaded and > used". I have done that and when I try to install python-sybase on > Windows (with Python 2.5.4), I get the following error: > > error: Python was built with Visual Studio 2003; > extensions must be built with a compiler than can generate > compatible binaries. > Visual Studio 2003 was not found on this system. If you have Cygwin > installed > you can try compiling with MingW32, by passing "-c mingw32" to > setup.py. > > I do not have access to Visual Studio 2003. > > I have also tried using the latest version of Python 2.6.x, but the > installation fails with > > running build_ext > building 'sybasect' extension > error: None > > This is extremely frustrating. Is there *any* way I can install > python-sybase on Windows? > > Our company uses Sybase for large projects and I would like to use > Python for development purposes. > > I hope there is at least one person out there who has managed to > successfully install python-sybase with Python 2.5.x on Windows. If so, > I would very much like to know what I am doing wrong. > > Many, many thanks in advance. > > Jeffrey Zelt > QFree ASA > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Python-sybase-misc mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-sybase-misc |
From: <sk...@po...> - 2009-03-20 18:33:44
|
Jeffrey> First of all, the installation documents states that the Jeffrey> "Micorsoft Visual C++ 2005 Express Edition compiler can be Jeffrey> freely downloaded and used". I have done that and when I try Jeffrey> to install python-sybase on Windows (with Python 2.5.4), I get Jeffrey> the following error: Jeffrey> error: Python was built with Visual Studio 2003; Jeffrey> extensions must be built with a compiler than can generate Jeffrey> compatible binaries. Jeffrey> Visual Studio 2003 was not found on this system. If you have Cygwin Jeffrey> installed Jeffrey> you can try compiling with MingW32, by passing "-c mingw32" to Jeffrey> setup.py. Jeffrey> I do not have access to Visual Studio 2003. How about building Python with the Visual C++ 2005 Express Edition or building Python and the Sybase extension with Cygwin? (Like Sébastien, I don't use Windows, so I can only offer suggestions, not give you a concrete set of instructions.) -- Skip Montanaro - sk...@po... - http://www.smontanaro.net/ |