[XML-SIG] PyXML and python 2.1

Peter Robins pr@peterrobins.co.uk
Sun, 18 Nov 2001 09:41:42 +0000


ok, problem solved. Yes, there was a xml subdirectory, but it was incomplete. 
Somehow the untar left some files behind or did not finish correctly. I have 
now untarred the xml directory again and rerun - without error this time - 
thank you!


On Sunday 18 Nov 2001 2:52 am, Martin v. Loewis wrote:
> > > > 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