From: Michel A. <Mic...@st...> - 2007-09-19 07:23:39
|
> I am having trouble installing the python-sybase module on Windows XP > and I wonder if anyone can help me. > > It seems that a C compiler is necessary for installing this module. > According to:=20 > > http://python-sybase.sourceforge.net/install.html : > > "The Micorsoft Visual C++ 2005 Express Edition compiler can be freely > downloaded and used. It can compile the Sybase module for Python." > > I have done as instructed and downloaded "Visual C++ 2005 Express > Edition". However, when I execute: > > python setup.py install > > I receive the following error: > > running install > running build > running build_py > running build_ext > 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.=20 > > > It seems that Python25 on my machine was compiled with Visual Studio > 2003 and this is somehow incompatible with Visual ++ 2005 Express > Edition. =20 > > > What can I do? =20 > > > There seems to be only one Python installer at the python.org web site. > It seems that this version of Python was compiled with Visual Studio > 2003. I cannot find any reference that describes how to compile the > Python source on Windows. I am not a Windows expert. > > I do not have access to any other C compiler for Windows. Is there a > *pre-compiled* version of the python-sybase module for Windows XP? > > Any help/suggestions would be greatly appreciated.=20 > > Jeffrey Zelt I am having the same problem. I also tried to compile with Cygwin, but that failed as well. Any pointers? |
From: Bock, O. B. S. <Oli...@ba...> - 2007-12-06 04:20:28
|
> From: Jeffrey Zelt <Jeffrey.Zelt@q-...> - 2007-09-03 13:04 > I am having trouble installing the python-sybase module on Windows XP > and I wonder if anyone can help me... I managed to build python-sybase for ActiveState Python 2.4 (should also work for normal python.org distribution). I followed the instructions at: http://www.vrplumber.com/programming/mstoolkit/ and found a copy of the old Microsoft Visual C++ Toolkit 2003 compiler at=20 http://npg.dl.ac.uk/MIDAS/download/midassort/midassort_Windows.html I had to edit the environment variables because the latest Windows Platform SDK installs to a different directory. I would be happy to e-mail the distribution to anyone who asks for it in the next few weeks, or I could upload it if someone gives me the right permissions. Of course it will only work for Python 2.4. Oliver=20 =20 --=20 =20 This message and any attachments are confidential, proprietary, and may = be privileged. If this message was misdirected, Barclays Global = Investors (BGI) does not waive any confidentiality or privilege. If you = are not the intended recipient, please notify us immediately and destroy = the message without disclosing its contents to anyone. Any = distribution, use or copying of this e-mail or the information it = contains by other than an intended recipient is unauthorized. The views = and opinions expressed in this e-mail message are the author's own and = may not reflect the views and opinions of BGI, unless the author is = authorized by BGI to express such views or opinions on its behalf. All = email sent to or from this address is subject to electronic storage and = review by BGI. Although BGI operates anti-virus programs, it does not = accept responsibility for any damage whatsoever caused by viruses being = passed. |
From: Joseph B. <jos...@gm...> - 2007-12-06 17:12:50
|
Too good, thanks for your links !! So, as you proposed, I tried with the MS Compiler and libraries listed (and the python.org), getting further to another problem... For the next one, when you get: > 'cspublic.h': No such file or directory it's not MS or python libraries but Sybase's OCS /include files that are needed (subDir of sybase home ; Env Var: SYBASE_OCS). Now it's compiled ! Thanks On Dec 6, 2007 5:19 AM, Bock, Oliver BGI SYD <Oli...@ba...> wrote: > > From: Jeffrey Zelt <Jeffrey.Zelt@q-...> - 2007-09-03 13:04 > > I am having trouble installing the python-sybase module on Windows XP > > and I wonder if anyone can help me... > > I managed to build python-sybase for ActiveState Python 2.4 (should also > work for normal python.org distribution). I followed the instructions > at: > > http://www.vrplumber.com/programming/mstoolkit/ > > and found a copy of the old Microsoft Visual C++ Toolkit 2003 compiler > at > > http://npg.dl.ac.uk/MIDAS/download/midassort/midassort_Windows.html > > I had to edit the environment variables because the latest Windows > Platform SDK installs to a different directory. > > I would be happy to e-mail the distribution to anyone who asks for it in > the next few weeks, or I could upload it if someone gives me the right > permissions. Of course it will only work for Python 2.4. > > > Oliver > > -- > > This message and any attachments are confidential, proprietary, and may be > privileged. If this message was misdirected, Barclays Global Investors > (BGI) does not waive any confidentiality or privilege. If you are not the > intended recipient, please notify us immediately and destroy the message > without disclosing its contents to anyone. Any distribution, use or copying > of this e-mail or the information it contains by other than an intended > recipient is unauthorized. The views and opinions expressed in this e-mail > message are the author's own and may not reflect the views and opinions of > BGI, unless the author is authorized by BGI to express such views or > opinions on its behalf. All email sent to or from this address is subject > to electronic storage and review by BGI. Although BGI operates anti-virus > programs, it does not accept responsibility for any damage whatsoever caused > by viruses being passed. > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Python-sybase-misc mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-sybase-misc > |