From: Lars Bruno Hansen (lhansen_at_fysik.dtu.dk)
Date: Wed Apr 02 2003 - 06:22:56 CST

Dear All

I have run into the same problem loading python packages in the
embedded python intepreter as reported
by Oliver Beckstein
(http://www.ks.uiuc.edu/Research/vmd/mailing_list/vmd-l/1229.html)

that apparently os.listdir is corrupted, having the result that
site-packages .pth files are not found.
I have seen this both in the 1.8 (december) version
and for a very recent test version 1.8.1a8.

You can fix the problem with the missing modules by adding them
directly to your PYTHONPATH, this must be done in .cshrc
or the appropiate file for your shell, or maybe directly adding
them to sys.path in your script,
however the os.listdir problem has eg. also the effect that
a command like glob does not work.

Is there a workaround for this problem?

I am running Linux redhat 7.3,

Thanks for any help on this
with best regards
Lars

-- 
Lars Bruno Hansen, 
CAMP, Dept. of Physics, Building 307, DTU, DK-2800 Lyngby, Denmark
Phone: +45 45 25 32 16  Fax: +45 45 93 23 99
E-mail: lhansen_at_fysik.dtu.dk