Re: PyXML installation in Zope2.8.5

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: PyXML installation in Zope2.8.5

Dev-34
The version of PyXML is 0.8.4


From: Sudesh Soni <[hidden email]>
To: [hidden email]
Sent: Tue, November 17, 2009 11:50:22 AM
Subject: PyXML installation in Zope2.8.5

Hi,
 
Product - zope 2.8.5 final [python version - 2.3.5]
 
I get following error when executing -
 
python setup.py build
 
============
running build_ext
error: Python was built with version 6 of Visual Studio, and extensions need to be built with the sa
me version of the compiler, but it isn't installed.
==============
Help!
 
Regards
 
 



_______________________________________________
XML-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/xml-sig
Reply | Threaded
Open this post in threaded view
|

Re: PyXML installation in Zope2.8.5

Mike Brown-3
PyXML has two 'extension' modules (modules written in C instead of Python):

_xmlplus.parsers.pyexpat (needed by PyExpat)
_xmlplus.parsers.sgmlop (needed by sgmlop)

After they're built and installed, they become accessible as
xml.parsers.pyexpat and xml.parsers.sgmlop, respectively.

You can't build Python C extension modules without a C compiler, and, for
reasons we must just accept, it has to be the same compiler that was used to
make the Python executable you're using. You apparently don't have the
compiler you need installed. Maybe you don't have one at all. That's why you
got the error message. The compiler you're being told you need is Visual
Studio 6 / VC6, which is old but not free (officially). This also suggests
you're using Windows, so it's probably worth mentioning whether you're using
ActiveState's Python or the official python.org distribution, as it can make a
difference when people try to help you.

But first I would take a step back and ask why you need PyXML.
Which component of PyXML do you think you need, and why?

You mentioned Zope. AFAIK, PyXML is only needed for Martijn Faassen's "XPath
Methods" product. That product relies on PyXML and the venerable 4Suite
0.11.1. Is this why you're trying to get PyXML installed? You might be better
off looking for a Zope product which gives you access to ElementTree, if not
lxml.etree.

My ability to help you, in any case, is going to be limited. I just wanted
to help you understand the error message and get you to explain more about
what you're trying to accomplish.

Sudesh Soni wrote:

> The version of PyXML is 0.8.4
> Product - zope 2.8.5 final [python version - 2.3.5]
> I get following error when executing -
>
> python setup.py build
>
> ============
> running build_ext
> error: Python was built with version 6 of Visual Studio, and extensions need
> to be built with the same version of the compiler, but it isn't installed.
_______________________________________________
XML-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/xml-sig
Reply | Threaded
Open this post in threaded view
|

Re: PyXML installation in Zope2.8.5

Dev-34
Thanks Mike for valuable information.
 
The python version is 2.3.5 that comes along with Zope.
I am trying to use ZSI 2.0 [Zope Solera Interface] with my zope server to be able to utilize web services. During the installation 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 ZSI, but I will try to find out.
 
Regards
Sudesh
 
 


From: Mike Brown <[hidden email]>
To: Sudesh Soni <[hidden email]>
Cc: [hidden email]
Sent: Tue, November 17, 2009 11:18:41 PM
Subject: Re: [XML-SIG] PyXML installation in Zope2.8.5

PyXML has two 'extension' modules (modules written in C instead of Python):

_xmlplus.parsers.pyexpat (needed by PyExpat)
_xmlplus.parsers.sgmlop (needed by sgmlop)

After they're built and installed, they become accessible as
xml.parsers.pyexpat and xml.parsers.sgmlop, respectively.

You can't build Python C extension modules without a C compiler, and, for
reasons we must just accept, it has to be the same compiler that was used to
make the Python executable you're using. You apparently don't have the
compiler you need installed. Maybe you don't have one at all. That's why you
got the error message. The compiler you're being told you need is Visual
Studio 6 / VC6, which is old but not free (officially). This also suggests
you're using Windows, so it's probably worth mentioning whether you're using
ActiveState's Python or the official python.org distribution, as it can make a
difference when people try to help you.

But first I would take a step back and ask why you need PyXML.
Which component of PyXML do you think you need, and why?

You mentioned Zope. AFAIK, PyXML is only needed for Martijn Faassen's "XPath
Methods" product. That product relies on PyXML and the venerable 4Suite
0.11.1. Is this why you're trying to get PyXML installed? You might be better
off looking for a Zope product which gives you access to ElementTree, if not
lxml.etree.

My ability to help you, in any case, is going to be limited. I just wanted
to help you understand the error message and get you to explain more about
what you're trying to accomplish.

Sudesh Soni wrote:

> The version of PyXML is 0.8.4
> Product - zope 2.8.5 final [python version - 2.3.5]
> I get following error when executing -
>
> python setup.py build
>
> ============
> running build_ext
> error: Python was built with version 6 of Visual Studio, and extensions need
> to be built with the same version of the compiler, but it isn't installed.


_______________________________________________
XML-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/xml-sig