[XML-SIG] PyXML and python 2.1

Martin v. Loewis martin@v.loewis.de
Sun, 18 Nov 2001 03:52:16 +0100


> > > Am having problems trying to install PyXML on Python 2.1 (2.1.1-3mdk
> > > installed as part of Mandrake 8.1 to be absolutely
> > > precise). Binaries get installed in /usr/lib/python2.0 and don't
> > > seem to be picked up properly.
> >
> > When you say "Binaries", what exactly do you mean? Do you download
> > pre-compiled binaries from somewhere? If so, wherefrom?
> 
> the file PyXML-0.6.6-2.0.i386.rpm from sourceforge

That is for Python 2.0, as the name suggests.

> > > When I try and build from the source using 'python setup.py install'
> > > I get
[...]
> Python 2.1.1 (#1, Aug 30 2001, 17:36:05)
> [GCC 2.96 20000731 (Mandrake Linux 8.1 2.96-0.61mdk)] on linux-i386
> 
> running install
> running build
> running build_py
> warning: build_py: package init file 'xml/__init__.py' not found (or not a 
> regular file)
> error: package directory 'xml/dom' does not exist

Somehow, it appears that your source distribution is broken. In the
directory containing the file setup.py, do you have a directory xml?
Does that directory have a file __init__.py? Can you please report its
content?

Also, do you already have a build directory in the directory
containing setup.py? If so, can you please remove that, and rerun
"python setup.py build"? If the output of that command is different,
can you please report its output?

Regards,
Martin