Re: PyXML installation in Zope2.8.5
Sudesh Soni <[email protected]> Wed, 18 Nov 2009 08:23:29 -0800 (PST)
| Newsgroups | gmane.comp.python.xml |
|---|---|
| Message-ID | <[email protected]> |
--===============0386087159== Content-Type: multipart/alternative; boundary="0-1114098134-1258561409=:38661" --0-1114098134-1258561409=:38661 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Mike for valuable information.=0A=0AThe python version is 2.3.5 that= comes along with Zope.=0A=0AI am trying to use ZSI 2.0 [Zope Solera Interf= ace] with my zope server to be able to utilize web services. During the ins= tallation of this package it looks for PyXML, so I downloaded PyXML and got= stuck with issue. I have not researched which part of PyXML is needed in Z= SI, but I will try to find out.=0A=0ARegards=0ASudesh=0A=0A=0A=0A=0A=0A____= ____________________________=0AFrom: Mike Brown <[email protected]>=0ATo: Sudes= h Soni <[email protected]>=0ACc: [email protected]=0ASent: Tue, November = 17, 2009 11:18:41 PM=0ASubject: Re: [XML-SIG] PyXML installation in Zope2.8= .5=0A=0APyXML has two 'extension' modules (modules written in C instead of = Python):=0A=0A_xmlplus.parsers.pyexpat (needed by PyExpat)=0A_xmlplus.parse= rs.sgmlop (needed by sgmlop)=0A=0AAfter they're built and installed, they b= ecome accessible as =0Axml.parsers.pyexpat and xml.parsers.sgmlop, respecti= vely.=0A=0AYou can't build Python C extension modules without a C compiler,= and, for =0Areasons we must just accept, it has to be the same compiler th= at was used to =0Amake the Python executable you're using. You apparently d= on't have the =0Acompiler you need installed. Maybe you don't have one at a= ll. That's why you =0Agot the error message. The compiler you're being told= you need is Visual =0AStudio 6 / VC6, which is old but not free (officiall= y). This also suggests =0Ayou're using Windows, so it's probably worth ment= ioning whether you're using =0AActiveState's Python or the official python.= org distribution, as it can make a =0Adifference when people try to help yo= u.=0A=0ABut first I would take a step back and ask why you need PyXML.=0AWh= ich component of PyXML do you think you need, and why?=0A=0AYou mentioned Z= ope. AFAIK, PyXML is only needed for Martijn Faassen's "XPath =0AMethods" p= roduct. That product relies on PyXML and the venerable 4Suite =0A0.11.1. Is= this why you're trying to get PyXML installed? You might be better =0Aoff = looking for a Zope product which gives you access to ElementTree, if not = =0Alxml.etree.=0A=0AMy ability to help you, in any case, is going to be lim= ited. I just wanted=0Ato help you understand the error message and get you = to explain more about=0Awhat you're trying to accomplish.=0A=0ASudesh Soni = wrote:=0A> The=A0version of PyXML is 0.8.4=0A> Product - zope 2.8.5 final [= python version - 2.3.5]=0A> I get following error when executing -=0A> =0A>= python setup.py build=0A> =0A> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A> ru= nning build_ext=0A> error: Python was built with version 6 of Visual Studio= , and extensions need =0A> to be built with the same version of the compile= r, but it isn't installed.=0A=0A=0A=0A --0-1114098134-1258561409=:38661 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable <html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he= ad><body><div style=3D"font-family:times new roman, new york, times, serif;= font-size:12pt"><DIV>Thanks Mike for valuable information.</DIV>=0A<DIV>&nb= sp;</DIV>=0A<DIV>The python version is 2.3.5 that comes along with Zope.<BR= ></DIV>=0A<DIV>I am trying to use ZSI 2.0 [Zope Solera Interface] with my z= ope server to be able to utilize web services. During the installation of t= his package it looks for PyXML, so I downloaded PyXML and got stuck with is= sue. I have not researched which part of PyXML is needed in ZSI, but I will= try to find out.</DIV>=0A<DIV> </DIV>=0A<DIV>Regards</DIV>=0A<DIV>Sud= esh</DIV>=0A<DIV> </DIV>=0A<DIV> </DIV>=0A<DIV style=3D"FONT-FAMI= LY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><BR>=0A<DIV s= tyle=3D"FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 13px"><FONT s= ize=3D2 face=3DTahoma>=0A<HR SIZE=3D1>=0A<B><SPAN style=3D"FONT-WEIGHT: bol= d">From:</SPAN></B> Mike Brown <[email protected]><BR><B><SPAN style=3D"F= ONT-WEIGHT: bold">To:</SPAN></B> Sudesh Soni <[email protected]><BR>= <B><SPAN style=3D"FONT-WEIGHT: bold">Cc:</SPAN></B> [email protected]<BR><= B><SPAN style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> Tue, November 17, 2009= 11:18:41 PM<BR><B><SPAN style=3D"FONT-WEIGHT: bold">Subject:</SPAN></B> Re= : [XML-SIG] PyXML installation in Zope2.8.5<BR></FONT><BR>PyXML has two 'ex= tension' modules (modules written in C instead of Python):<BR><BR>_xmlplus.= parsers.pyexpat (needed by PyExpat)<BR>_xmlplus.parsers.sgmlop (needed by s= gmlop)<BR><BR>After they're built and installed, they become accessible as = <BR>xml.parsers.pyexpat and xml.parsers.sgmlop, respectively.<BR><BR>You ca= n't build Python C extension modules without a C compiler, and, for <BR>rea= sons we must just accept, it has to be the same compiler that was used to <= BR>make the Python executable you're using. You apparently don't have the <BR>compiler you need installed. Maybe you d= on't have one at all. That's why you <BR>got the error message. The compile= r you're being told you need is Visual <BR>Studio 6 / VC6, which is old but= not free (officially). This also suggests <BR>you're using Windows, so it'= s probably worth mentioning whether you're using <BR>ActiveState's Python o= r the official <A href=3D"http://python.org/" target=3D_blank>python.org</A= > distribution, as it can make a <BR>difference when people try to help you= .<BR><BR>But first I would take a step back and ask why you need PyXML.<BR>= Which component of PyXML do you think you need, and why?<BR><BR>You mention= ed Zope. AFAIK, PyXML is only needed for Martijn Faassen's "XPath <BR>Metho= ds" product. That product relies on PyXML and the venerable 4Suite <BR>0.11= .1. Is this why you're trying to get PyXML installed? You might be better <= BR>off looking for a Zope product which gives you access to ElementTree, if not <BR>lxml.etree.<BR><BR>My ability to help you, in any case, is goin= g to be limited. I just wanted<BR>to help you understand the error message = and get you to explain more about<BR>what you're trying to accomplish.<BR><= BR>Sudesh Soni wrote:<BR>> The version of PyXML is 0.8.4<BR>> Pr= oduct - zope 2.8.5 final [python version - 2.3.5]<BR>> I get following e= rror when executing -<BR>> <BR>> python <A href=3D"http://setup.py/" = target=3D_blank>setup.py</A> build<BR>> <BR>> =3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D<BR>> running build_ext<BR>> error: Python was built w= ith version 6 of Visual Studio, and extensions need <BR>> to be built wi= th the same version of the compiler, but it isn't installed.<BR></DIV></DIV= ><!-- cg16.c1.mail.mud.yahoo.com compressed/chunked Wed Nov 18 08:18:30 PST= 2009 --></div><br>=0A=0A=0A=0A </body></html> --0-1114098134-1258561409=:38661-- --===============0386087159== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ XML-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/xml-sig --===============0386087159==--