[XML-SIG] xml install problems

Fred L. Drake Fred L. Drake, Jr." <fdrake@acm.org
Wed, 9 Dec 1998 10:39:09 -0500 (EST)


John Day writes:
 > Here's my sys.path (thanks, I didn't know about this):
 > 
 > >>> import sys
 > >>> for i in sys.path: print i
 > ..
 > /home/jday/bin/lib/python1.5/
 > /home/jday/bin/lib/python1.5/test
 > /home/jday/bin/lib/python1.5/plat-linux2
 > /home/jday/bin/lib/python1.5/lib-tk
 > /home/jday/bin/lib/python1.5/lib-dynload
 > >>> import sax
 > Traceback (innermost last):
 >   File "<stdin>", line 1, in ?
 > ImportError: No module named sax
 > ......................................................
 > 
 > Now I'm confused. None of the above packages are members
 > of the "site-packages" directory. (xml is the only entry)
 > I assumed "site-packages" would list _all_ installed pythonic
 > packages. 

  I'm going to be bold and guess that you're using Python 1.5, not
1.5.1.  Python 1.5 did not automatically import the "site" module, but 
1.5.1 does (if I recall correctly ;).
  Try doing "import site, xml".  If that works, then you can do either 
of two things:

	- Add "import site" before your "import xml" in you
	  application code, or
	- Upgrade to Python 1.5.1.

  Of course, now that I've written all this, you probably already have 
1.5.1 and I'm confused.  ;-)


  -Fred

--
Fred L. Drake, Jr.	     <fdrake@acm.org>
Corporation for National Research Initiatives
1895 Preston White Dr.	    Reston, VA  20191