[4suite] Installation problems - 2.0?

Andy Gimblett gimbo at ftech.net
Tue Sep 12 10:50:04 MDT 2000


Hi guys,

Well, here comes a newbie with an installation question... I've
just installed python2.0 from source and everything seems to be
working happily in general - but I can't 4DOM to work. Now, I didn't
get it to work under 1.5.2 either so maybe this is not surprising, but
since 2.0's relatively new I thought I'd ask... Has anyone else
out there installed vs. 2.0 and had problems?

Getting specific...

First let me quote an excerpt from 4DOM.spec, which was the only
source of installation instruction I could find):



%prep
%setup -n xml/dom

%install
install -d -m 755 -o 0 -g 0
/usr/lib/python1.5/site-packages/xml/dom/ext/reader
install -d -m 755 -o 0 -g 0 /usr/lib/python1.5/site-packages/xml/dom/html

python -O -c "import compileall; compileall.compile_dir('.')"

install -m 644 -o 0 -g 0 *.py* /usr/lib/python1.5/site-packages/xml/dom
install -m 644 -o 0 -g 0 ext/*.py*
/usr/lib/python1.5/site-packages/xml/dom/ext
install -m 644 -o 0 -g 0 ext/reader/*.py*
/usr/lib/python1.5/site-packages/xml/dom/ext/reader
install -m 644 -o 0 -g 0 html/*.py*
/usr/lib/python1.5/site-packages/xml/dom/html



Now, obviously with a 2.0 installation those paths become something more
like /usr/local/lib/python2.0/site-packages/..., but two questions remain:

1. The 2.0 installation included some XML stuff, but it's installed
   to    /usr/local/lib/python2.0/xml/
   not   /usr/local/lib/python2.0/site-packages/xml

   Should I be putting my 4DOM bits in .../xml/... or
   .../site-packages/xml/... ? (More analysis below)

2. The "prep" section: What is setup? Part of distutils? Should I be
   worried that I have not performed this step?

If I install to .../xml/, and try to run the HTML demo "python
dom_from_html_file.py employee_table.html", I get "ImportError: cannot
import name implementation" when trying to execute "from xml.dom import
implementation" in .../xml/dom/Node.py - and indeed there is no
implementation.py in xml/dom...

If I install to .../site-packages/xml/, it can't import HTMLlib from reader,
even if there are __init__.py's all the way: I presume this is a clash
between
the files in .../xml and .../site-packages/xml?

:( and ?:)

Any/all help/tips/pointing-in-right-direction humbly appreciated!

Thanks in advance,

Andy

-- 
Andy Gimblett <andy.gimblett at ftech.net> Programmer 
Frontier Internet Services Limited <www.frontier-internet.ltd.uk> 
Tel: 029 20 820 044 Fax: 029 20 820 035 
Statements made are at all times subject to Frontier's Terms and
Conditions of Business, which are available upon request.




More information about the 4suite mailing list