From martin at v.loewis.de Thu Nov 5 22:40:57 2009 From: martin at v.loewis.de (=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=) Date: Thu, 05 Nov 2009 22:40:57 +0100 Subject: [XML-SIG] Status of pyxml development In-Reply-To: <200910230006.n9N067FE053369@chilled.skew.org> References: <200910230006.n9N067FE053369@chilled.skew.org> Message-ID: <4AF34669.7030104@v.loewis.de> Mike Brown wrote: > Did I miss an announcement of its retirement? Most likely so. I posted an announcement to this list when I stopped maintaining it. This was four years ago. Regards, Martin From mike at skew.org Thu Nov 5 22:57:56 2009 From: mike at skew.org (Mike Brown) Date: Thu, 5 Nov 2009 14:57:56 -0700 (MST) Subject: [XML-SIG] Status of pyxml development In-Reply-To: <4AF34669.7030104@v.loewis.de> Message-ID: <200911052157.nA5LvvMA020432@chilled.skew.org> "Martin v. L?is" wrote: > Mike Brown wrote: > > Did I miss an announcement of its retirement? > > Most likely so. I posted an announcement to this list when I stopped > maintaining it. This was four years ago. I was talking about the page at http://pyxml.sourceforge.net/, which says what PyXML is. This page only went missing within the last year. From martin at v.loewis.de Thu Nov 5 23:05:19 2009 From: martin at v.loewis.de (=?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?=) Date: Thu, 05 Nov 2009 23:05:19 +0100 Subject: [XML-SIG] Status of pyxml development In-Reply-To: <200911052157.nA5LvvMA020432@chilled.skew.org> References: <200911052157.nA5LvvMA020432@chilled.skew.org> Message-ID: <4AF34C1F.8080106@v.loewis.de> >>> Did I miss an announcement of its retirement? >> Most likely so. I posted an announcement to this list when I stopped >> maintaining it. This was four years ago. > > I was talking about the page at http://pyxml.sourceforge.net/, which says what > PyXML is. This page only went missing within the last year. I don't recall the details; I think somebody requested that the old (and outdated) content was removed. Regardless - PyXML has been unmaintained much longer. Regards, Martin From soni_sks at yahoo.com Tue Nov 17 17:50:22 2009 From: soni_sks at yahoo.com (Sudesh Soni) Date: Tue, 17 Nov 2009 08:50:22 -0800 (PST) Subject: [XML-SIG] PyXML installation in Zope2.8.5 Message-ID: <419632.27493.qm@web32701.mail.mud.yahoo.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 9536 bytes Desc: not available URL: From soni_sks at yahoo.com Tue Nov 17 17:54:13 2009 From: soni_sks at yahoo.com (Sudesh Soni) Date: Tue, 17 Nov 2009 08:54:13 -0800 (PST) Subject: [XML-SIG] PyXML installation in Zope2.8.5 Message-ID: <168736.45857.qm@web32705.mail.mud.yahoo.com> The?version of PyXML is 0.8.4 ________________________________ From: Sudesh Soni To: xml-sig at python.org 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 9536 bytes Desc: not available URL: From mike at skew.org Wed Nov 18 05:18:41 2009 From: mike at skew.org (Mike Brown) Date: Tue, 17 Nov 2009 21:18:41 -0700 (MST) Subject: [XML-SIG] PyXML installation in Zope2.8.5 In-Reply-To: <168736.45857.qm@web32705.mail.mud.yahoo.com> Message-ID: <200911180418.nAI4IgeI004243@chilled.skew.org> 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. From dieter at handshake.de Wed Nov 18 07:35:10 2009 From: dieter at handshake.de (Dieter Maurer) Date: Wed, 18 Nov 2009 07:35:10 +0100 Subject: [XML-SIG] PyXML installation in Zope2.8.5 In-Reply-To: <419632.27493.qm@web32701.mail.mud.yahoo.com> References: <419632.27493.qm@web32701.mail.mud.yahoo.com> Message-ID: <19203.38302.363043.810110@gargle.gargle.HOWL> Sudesh Soni wrote at 2009-11-17 08:50 -0800: >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. "PyXML" contains extensions written in "C". When you build "PyXML" yourself, these extensions need to be compiled. To be compatible with Python, these compilations need to use essentially the same compiler as the one used for Python. Your observed error: The required compiler (version 6 of Visual Studio) is not available on your system. Almost surely, there are prebuilt "PyXML" binaries for Windows. Your easiest option is to install one of them and do not try to build "PyXML" yourself. -- Dieter From soni_sks at yahoo.com Wed Nov 18 17:14:32 2009 From: soni_sks at yahoo.com (Sudesh Soni) Date: Wed, 18 Nov 2009 08:14:32 -0800 (PST) Subject: [XML-SIG] PyXML installation in Zope2.8.5 In-Reply-To: <19203.38302.363043.810110@gargle.gargle.HOWL> References: <419632.27493.qm@web32701.mail.mud.yahoo.com> <19203.38302.363043.810110@gargle.gargle.HOWL> Message-ID: <504968.20220.qm@web32703.mail.mud.yahoo.com> Thanks Dieter, Other than gzip file and I?could find?an exe for PYXML installation , but the problem is that, during installation?it cannot locate the python2.3 that is in zope 2.8 itself, instead it looks in the windows registry. Suggest. Regards Sudesh ________________________________ From: Dieter Maurer To: Sudesh Soni Cc: xml-sig at python.org Sent: Wed, November 18, 2009 1:35:10 AM Subject: Re: [XML-SIG] PyXML installation in Zope2.8.5 Sudesh Soni wrote at 2009-11-17 08:50 -0800: >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. "PyXML" contains extensions written in "C". When you build "PyXML" yourself, these extensions need to be compiled. To be compatible with Python, these compilations need to use essentially the same compiler as the one used for Python. Your observed error: The required compiler (version 6 of Visual Studio) is not available on your system. Almost surely, there are prebuilt "PyXML" binaries for Windows. Your easiest option is to install one of them and do not try to build "PyXML" yourself. -- Dieter -------------- next part -------------- An HTML attachment was scrubbed... URL: From soni_sks at yahoo.com Wed Nov 18 17:23:29 2009 From: soni_sks at yahoo.com (Sudesh Soni) Date: Wed, 18 Nov 2009 08:23:29 -0800 (PST) Subject: [XML-SIG] PyXML installation in Zope2.8.5 In-Reply-To: <200911180418.nAI4IgeI004243@chilled.skew.org> References: <200911180418.nAI4IgeI004243@chilled.skew.org> Message-ID: <555365.38661.qm@web32705.mail.mud.yahoo.com> 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 To: Sudesh Soni Cc: xml-sig at python.org 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bigotp at acm.org Thu Nov 19 01:05:07 2009 From: bigotp at acm.org (Peter A. Bigot) Date: Wed, 18 Nov 2009 17:05:07 -0700 Subject: [XML-SIG] [ANN] Python XML Schema Bindings 1.0.0 Message-ID: <4B048BB3.5030205@acm.org> PyXB version 1.0.0 is now available from SourceForge at: http://sourceforge.net/projects/pyxb/ PyXB (Python XML Schema Bindings; "pixbee") is a pure Python package that generates Python source code for classes that correspond to data structures defined by XMLSchema. In concept it is similar to JAXB for Java and CodeSynthesis XSD for C++. The current release supports XML Schema 1.0. Version 1.0.0 is feature-complete and suitable for production development where validation of incoming and generated documents is desired. The following schema constructs are supported: * Class constants corresponding to string enumeration constraints * Simple and complex type definitions * List and union datatypes * Constraints on (simple) datatypes (e.g., minInclusive, length) * Model groups and attribute groups * Complex content models (all, sequence, choice); minOccurs and maxOccurs * Abstract types, xsi:type, substitution groups * Nillable elements with xsi:nil * Namespace qualified attributes and elements * Documentation annotations present in the schema are converted to Python docstrings in the generated bindings. * Pattern constraints (as long as the simple type derives from something that is represented as a Python string) The full distribution includes generated bindings for twenty-three namespaces related to web services (including several versions of SOAP and WSDL), and twenty-eight namespaces from the Open Geospatial Consortium's Geographic Information System schema. For further information and links to the support forum and mailing list, please consult the documentation available at: http://pyxb.sourceforge.net/ Peter From dieter at handshake.de Thu Nov 19 08:14:28 2009 From: dieter at handshake.de (Dieter Maurer) Date: Thu, 19 Nov 2009 08:14:28 +0100 Subject: [XML-SIG] PyXML installation in Zope2.8.5 In-Reply-To: <504968.20220.qm@web32703.mail.mud.yahoo.com> References: <419632.27493.qm@web32701.mail.mud.yahoo.com> <19203.38302.363043.810110@gargle.gargle.HOWL> <504968.20220.qm@web32703.mail.mud.yahoo.com> Message-ID: <19204.61524.127435.585520@gargle.gargle.HOWL> Sudesh Soni wrote at 2009-11-18 08:14 -0800: >Thanks Dieter, > >Other than gzip file and I?could find?an exe for PYXML installation , but the problem is that, during installation?it cannot locate the python2.3 that is in zope 2.8 itself, instead it looks in the windows registry. >Suggest. I am sure there is a workaround. Unfortunately, I am no Windows expert... Under *nix, I have seen a similar situation and approached it as follows: Situation: Operating system distributions often come with their own python package and associated extension packages. Their package management makes it often far more easy to install an OS package than generate a Python package by hand (at least before "easy_install" and PyPI). Approach: Install via the operating system package management and then copy the files and directories over to the Python installation you need them in. Of course, this requires that the OS Python is similar enough to the target Python. I do not know where the standard Python is installed under Windows. But, the registry should tell you. The relevant directory contains probably some "\lib\python\site-packages". ("\lib\python" might be missing unter Windows). There subdirectories containing "xml" are relevant and need to be copied to the target Python installation. Probably, there is an easier approach. I expect (but am not sure) that the installer can be told via a parameter to use a secondary Python installation. Look whether you can find installation instructions. Or try typical ways to determine what parameters can be provided to an executable (" /help", " /h", or similar). -- Dieter From bigotp at acm.org Thu Nov 19 23:45:42 2009 From: bigotp at acm.org (Peter A. Bigot) Date: Thu, 19 Nov 2009 15:45:42 -0700 Subject: [XML-SIG] [xml-dev] [ANN] Python XML Schema Bindings 1.0.0 In-Reply-To: References: <4B048AF4.5040907@acm.org> Message-ID: <4B05CA96.80904@acm.org> Uche Ogbuji wrote: > On Wed, Nov 18, 2009 at 5:01 PM, Peter A. Bigot > wrote: > > PyXB version 1.0.0 is now available from SourceForge at: > http://sourceforge.net/projects/pyxb/ > > PyXB (Python XML Schema Bindings; "pixbee") is a pure Python > package that generates Python source code for classes that > correspond to data structures defined by XMLSchema. In concept it > is similar to JAXB for Java and CodeSynthesis XSD for C++. The > current release supports XML Schema 1.0. > > This looks like impressive work. Thank you. > > I must say, though, aren't static-language-style data bindings rather > rigid, and counter to the spirit of Python? Of course, I develop a > tool with a very different philosophy [1], but perhaps it's possible > to probe the matter with use-cases. A dislike of static structures is certainly a prevalent view among Python aficionados, even those who tolerate XML. I don't expect to get much attention from people who are building systems where they are in full control of both client and server implementation; many of those have no motivation to use XML at all, and would be better off using pickled data structures or JSON for data persistence and inter/intra-system communication. The driving environment for PyXB's development is a community of engineers who use Python to compose applications from existing capabilities in multiple languages (primarily Fortran and C++). The execution model and development environment of Java do not suit their culture. They are being asked to publish interfaces to their systems in an enterprise-wide service-oriented architecture, and to make use of services provided by others. The environment mandates an industry-supported standard for interfaces that can be accessed through a machine-readable service definition, rather than a vendor-provided language-specific library. Java and C++ both have tools that support XML as a solution for this problem; Python has historically been less mature. When operating with XML-based services that define their interfaces with schema, static bindings simplify both service provider and client. In some cases it may be easy in Python to consume a service's XML without a binding, but to produce a document that is certain to conform to the service requirements can be quite a bit more effort. This is especially true for complex descriptions like the Geography Markup Language. For these situations, my hope is that PyXB will help eliminate the overt intrusion of XML into the code of an end user who really only wants to use (or provide) the service. PyXB is only appropriate where an XML schema is already available or useful for other reasons. That the current version nearly insists upon doing validation of input and output will make it unsuitable for some of those cases, though that's an issue that would be straightforward to address. Peter From Leigh.Klotz at xerox.com Fri Nov 20 00:02:09 2009 From: Leigh.Klotz at xerox.com (Klotz, Leigh) Date: Thu, 19 Nov 2009 15:02:09 -0800 Subject: [XML-SIG] [xml-dev] [ANN] Python XML Schema Bindings 1.0.0 In-Reply-To: <4B05CA96.80904@acm.org> References: <4B048AF4.5040907@acm.org> <4B05CA96.80904@acm.org> Message-ID: An RNC version would be especially nice thing to see. Leigh. -----Original Message----- From: Peter A. Bigot [mailto:bigotp at acm.org] ... PyXB is only appropriate where an XML schema is already available or useful for other reasons... From soni_sks at yahoo.com Fri Nov 20 03:40:34 2009 From: soni_sks at yahoo.com (Sudesh Soni) Date: Thu, 19 Nov 2009 18:40:34 -0800 (PST) Subject: [XML-SIG] PyXML installation in Zope2.8.5 In-Reply-To: <19204.61524.127435.585520@gargle.gargle.HOWL> References: <419632.27493.qm@web32701.mail.mud.yahoo.com> <19203.38302.363043.810110@gargle.gargle.HOWL> <504968.20220.qm@web32703.mail.mud.yahoo.com> <19204.61524.127435.585520@gargle.gargle.HOWL> Message-ID: <774887.44784.qm@web32706.mail.mud.yahoo.com> Thanks Dieter. I will try this. With regards Sudesh ________________________________ From: Dieter Maurer To: Sudesh Soni Cc: xml-sig at python.org Sent: Thu, November 19, 2009 2:14:28 AM Subject: Re: [XML-SIG] PyXML installation in Zope2.8.5 Sudesh Soni wrote at 2009-11-18 08:14 -0800: >Thanks Dieter, > >Other than gzip file and I?could find?an exe for PYXML installation , but the problem is that, during installation?it cannot locate the python2.3 that is in zope 2.8 itself, instead it looks in the windows registry. >Suggest. I am sure there is a workaround. Unfortunately, I am no Windows expert... Under *nix, I have seen a similar situation and approached it as follows: ? Situation: Operating system distributions often come with their own ? python package and associated extension packages. Their package management ? makes it often far more easy to install an OS package than ? generate a Python package by hand (at least before "easy_install" and PyPI). ? Approach: Install via the operating system package management ? and then copy the files and directories over to the Python installation ? you need them in. Of course, this requires that the OS Python ? is similar enough to the target Python. I do not know where the standard Python is installed under Windows. But, the registry should tell you. The relevant directory contains probably some "\lib\python\site-packages". ("\lib\python" might be missing unter Windows). There subdirectories containing "xml" are relevant and need to be copied to the target Python installation. Probably, there is an easier approach. I expect (but am not sure) that the installer can be told via a parameter to use a secondary Python installation. Look whether you can find installation instructions. Or try typical ways to determine what parameters can be provided to an executable (" /help", " /h", or similar). -- Dieter -------------- next part -------------- An HTML attachment was scrubbed... URL: