v6.1 server install tries to install broken PyXML

Bug #939478 reported by risto3
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D

Bug Description

continuing the install process after commenting out python-ldap, the next problem is PyXML

First, base XML is already installed:
Help on package xml:

NAME
    xml - Core XML support for Python.

FILE
    /usr/lib/python2.6/xml/__init__.py

MODULE DOCS
    http://docs.python.org/library/xml

DESCRIPTION
    This package contains four sub-packages:

    dom -- The W3C Document Object Model. This supports DOM Level 1 +
           Namespaces.

    parsers -- Python wrappers for XML parsers (currently only supports Expat).

    sax -- The Simple API for XML, developed by XML-Dev, led by David
           Megginson and ported to Python by Lars Marius Garshol. This
           supports the SAX 2 API.

    etree -- The ElementTree XML library. This is a subset of the full
           ElementTree XML release.

PACKAGE CONTENTS
    dom (package)
    etree (package)
    parsers (package)
    sax (package)

DATA
    __all__ = ['dom', 'parsers', 'sax', 'etree']
    __version__ = '41660'

VERSION
    41660

but installing server/6.1 with sudo python setup.py install does :
Searching for PyXML>=0.8.3
Reading http://pypi.python.org/simple/PyXML/
Reading http://www.python.org/sigs/xml-sig/
Best match: PyXML 0.8.4
Downloading http://downloads.sourceforge.net/pyxml/PyXML-0.8.4.tar.gz?modtime=1101741917&big_mirror=0
Processing PyXML-0.8.4.tar.gz
Running PyXML-0.8.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ENtfyC/PyXML-0.8.4/egg-dist-tmp-5fX9ew
warning: no files found matching '*.html' under directory 'extensions/expat'
warning: no files found matching '*Makefile' under directory 'extensions/expat'
warning: no files found matching '*.dsp' under directory 'extensions/expat'
warning: no previously-included files matching '*/CVS/*' found anywhere in distribution
"extensions/expat/lib/xmlparse.c", line 1572: warning: enum type mismatch: op "="
"extensions/expat/lib/xmlparse.c", line 1578: warning: enum type mismatch: op "="
"extensions/expat/lib/xmlparse.c", line 1586: warning: enum type mismatch: op "="
"extensions/expat/lib/xmlparse.c", line 1719: warning: enum type mismatch: op "="
"extensions/expat/lib/xmlparse.c", line 1725: warning: enum type mismatch: op "="
"extensions/expat/lib/xmlparse.c", line 1733: warning: enum type mismatch: op "="
SyntaxError: ('invalid syntax', ('build/bdist.solaris-2.11-i86pc/egg/_xmlplus/xpath/ParsedAbbreviatedAbsoluteLocationPath.py', 27, 10, " as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')\n"))

SyntaxError: ('invalid syntax', ('build/bdist.solaris-2.11-i86pc/egg/_xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.py', 31, 10, " as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')\n"))

zip_safe flag not set; analyzing archive contents...
_xmlplus.FtCore: module references __file__
_xmlplus.xpath.XPathParserBase: module references __file__
SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/PyXML-0.8.4-py2.6-solaris-2.11-i86pc.egg/_xmlplus/xpath/ParsedAbbreviatedAbsoluteLocationPath.py', 27, 10, " as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')\n"))

SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/PyXML-0.8.4-py2.6-solaris-2.11-i86pc.egg/_xmlplus/xpath/ParsedAbbreviatedRelativeLocationPath.py', 31, 10, " as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self')\n"))

Adding PyXML 0.8.4 to easy-install.pth file
Installing xmlproc_val script to /usr/bin
Installing xmlproc_parse script to /usr/bin

Installed /usr/lib/python2.6/site-packages/PyXML-0.8.4-py2.6-solaris-2.11-i86pc.egg

seems your PyXML is no longer supported on source forge, as I get the following attached shots trying to figure this mess out...

Revision history for this message
risto3 (risto3) wrote :
Revision history for this message
risto3 (risto3) wrote :
Revision history for this message
risto3 (risto3) wrote :

question now is, since I've never had to install PyXML before, is this extension truly necessary?
That is, if core xml is okay, then DO NOT require an additional pollution element.

Florent (florent.x)
Changed in openobject-server:
status: New → Confirmed
Revision history for this message
Florent (florent.x) wrote :

This dependency is installed because of "zsi" dependency, defined in "./setup.py".

IMHO, these 2 obsolete packages are not used anymore in OpenERP 6.1.
They can be dropped.

See related bug 920013

Revision history for this message
Florent (florent.x) wrote :

Actually this package ZSI, (incl. PyXML dependency) is *still* used by the official addon "import_sugarcrm".
So it cannot be simply dropped from the installation.

However there's an incompatibility, since:
 - OpenERP supports Python 2.6
 - official addon "import_sugarcrm" depends on "ZSI" (no longer maintained since 2006)
 - ZSI depends on PyXML (no longer maintained since 2004)
 - but PyXML is not supported on Python 2.6

Amit Parik (amit-parik)
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.