From: John Stone (johns_at_ks.uiuc.edu)
Date: Tue Apr 08 2003 - 10:56:41 CDT

Lars,
  We're still trying to figure out what is causing the os.listdir
problem with Python. It only occurs on some platforms, and not on others,
i.e. it breaks on Linux, but not Solaris if I recall correctly.
We've done a number of things including running the embedded Python interpreter
through Purify to see if there are bad things happening when it runs inside
VMD. We did find and correct a couple of very small things, however I don't
think we've nailed the root cause of the os.listdir issue yet. If we find
a solution for this, we'll post about it.

Thanks,
  John Stone
  vmd_at_ks.uiuc.edu

On Wed, Apr 02, 2003 at 02:22:56PM +0200, Lars Bruno Hansen wrote:
> 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
>
>

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email: johns_at_ks.uiuc.edu                 Phone: 217-244-3349              
  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078