[XML-SIG] xml install problems

John Day jday@csihq.com
Wed, 09 Dec 1998 12:12:46 -0500


At 11:49 PM 12/9/98 JST, Tamito Kajiyama wrote:
>
>BTW, in your message <3.0.1.32.19981208191958.00692914@mail.csihq.com>,
>you said you installed Python 1.5.1 with prefix=/home/jday.  So, the
>directories listed in sys.path should be
>
>  /home/jday/lib/python1.5/
>  /home/jday/lib/python1.5/test
>  /home/jday/lib/python1.5/plat-linux2
>
>and so on.  Also, the directory /home/jday/lib/python1.5/site-packages
>should be in sys.path if you don't run Python with the -S option.
>

Tamito,

You were right, problem was the Python installation not xml-0.5. I've got
everything working more or less OK now. Here's what I did (for the 
benefit of any silent minority having similar problems):

1. [From Python make directory]:
   Did 'make distclean' to clear out the original Python installation.
   Rebuilt Python1.5.1 from './configure --prefix=/home/jday' [I must have
   used the wrong prefix before]
2. After 'make' and 'make install' I ended up with _two_ executables:
   one in [prefix]/bin and the other in the make directory. The one in
   the make directory immediately allowed me to 'import xml.sax' etc
   The one in [prefix]/bin still couldn't see the site-packages until
   I defined 
      setenv PYTHONPATH /home/jday/lib/python1.5/site-packages
   Then it allowed 'import xml.sax' also. [I don't understand why the
   executable in the make directory creates a different sys.path than
   the one in the [prefix]/bin directory]
3. In the xml-0.5 directory I rebuilt everything. The 'make test' still
   doesn't work [because it temporarily trashes PYTHONPATH] but I was
   able to run each test separately 'python test/test_arch.py' etc.
   

So I think I am now XML-enabled. Thanks to everybody for helping me
out. Now to figure out how the XML parser and other stuff works ;-)

-jday