[XML-SIG] xml install problems

John Day jday@csihq.com
Wed, 09 Dec 1998 06:15:57 -0500


Hi,

I wrote yesterday that the Python and xml-0.5 installs proceeded
without error, yet I could not run the xml-0.5 test files. I'm still
trying to pinpoint the exact problem.

My problem seems to be that Python1.5 can't see the xml site-package.
It exists and seems to contain everything:
jday@medusa:/home/jday/lib/python1.5/site-packages/xml> dir
total 14
drwxr-xr-x   8 jday     csi          1024 Dec  8 19:11 ./
drwxr-xr-x   3 jday     csi          1024 Dec  5 06:24 ../
-rw-r--r--   1 jday     csi            37 Dec  8 19:11 __init__.py
-rw-r--r--   1 jday     csi           175 Dec  8 19:11 __init__.pyc
-rw-r--r--   1 jday     csi           169 Dec  8 19:11 __init__.pyo
-rw-r--r--   1 jday     csi           427 Dec  8 19:11 _checkversion.py
-rw-r--r--   1 jday     csi           654 Dec  8 19:11 _checkversion.pyc
-rw-r--r--   1 jday     csi           621 Dec  8 19:11 _checkversion.pyo
drwxrwxr-x   2 jday     csi          1024 Dec  8 19:11 arch/
drwxrwxr-x   2 jday     csi          1024 Dec  8 19:11 dom/
drwxrwxr-x   3 jday     csi          1024 Dec  8 19:11 parsers/
drwxrwxr-x   3 jday     csi          1024 Dec  8 19:11 sax/
drwxrwxr-x   2 jday     csi          1024 Dec  8 19:11 unicode/
drwxrwxr-x   2 jday     csi          1024 Dec  8 19:11 utils/

But when I run python I can't import any of them:

jday@medusa:/home/jday/lib/python1.5/site-packages/xml> python
Python 1.5.1 (#1, Dec  8 1998, 18:51:08)  [GCC 2.8.1] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import xml.sax
Traceback (innermost last):
  File "<stdin>", line 1, in ?
ImportError: No module named xml.sax

Python obviously can't see the xml package. I've got python in my home
bin and I've set PYTHONPATH to /home/jday/lib/python1.5/ What else is
there to do?

I'm new to Python so I don't really know the basic mechanism for installing 
these packages? I can't find it in any of the docs. (I'm guessing this is a 
simple problem to fix :-)

Thanks,

John Day