[Pythonmac-SIG] Can't get re-installed python to recognize old paths.

2005-07-22 Thread Louis Pecora
After a lot of hair pulling (long story) I re-installed OS X 10.3 
(archive and install) and then upgraded to 10.3.9.  Python seems to work 
and other problems seem to be gone, but when I try to import my original 
modules it can't find them.  I looked in the folder .MacOSX and see that 
Enviroment.plist is still there and it has the original paths that once 
worked (two weeks ago).  Here it is:

*
http://www.apple.com/DTDs/PropertyList-1.0.dtd";>


PYTHONPATH

/users/louispecora/Code/python/general:/users/louispecora/Code/python/stats:/users/louispecora/Code/python/stats/BayesProb:/users/louispecora/Code/python/time_series:/users/louispecora/Code/python/plotwindow:/Library/Python/2.3/:/users/louispecora/Code/AddedPackagesfiles/:



*So I'm stumped as to why Python can't find modules in the folders 
listed in Enviroment.plist.  I haven't changed any folder names.  I seem 
to remember only needing to mess with Enviroment.plist to establish 
paths.  Am I forgetting something?

Thanks for any ideas.  Thanks also to Bob I. and Robert Kern for their 
patience as I try to bring my system back to health and get python up 
and running.

-- 
Cheers,

Lou Pecora

Code 6362
Naval Research Lab
Washington, DC  20375
USA
Ph:  +202-767-6002
email:  [EMAIL PROTECTED]

___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Can't get re-installed python to recognize old paths.

2005-07-22 Thread Robert Kern
Louis Pecora wrote:
> After a lot of hair pulling (long story) I re-installed OS X 10.3 
> (archive and install) and then upgraded to 10.3.9.  Python seems to work 
> and other problems seem to be gone, but when I try to import my original 
> modules it can't find them.  I looked in the folder .MacOSX and see that 
> Enviroment.plist is still there and it has the original paths that once 
> worked (two weeks ago).  Here it is:

Can't say much about setting PYTHONPATH, but an option you should 
consider is to make a .pth file in your site-packages directory that 
lists all of these directories, one per line.

For example:

# mystuff.pth
/users/louispecora/Code/python/general
/users/louispecora/Code/python/stats
/users/louispecora/Code/python/stats/BayesProb
/users/louispecora/Code/python/time_series
/users/louispecora/Code/python/plotwindow
/users/louispecora/Code/AddedPackagesfiles

-- 
Robert Kern
[EMAIL PROTECTED]

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter
___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Can't get re-installed python to recognize old paths.

2005-07-22 Thread Bob Ippolito

On Jul 22, 2005, at 7:53 AM, Louis Pecora wrote:

> After a lot of hair pulling (long story) I re-installed OS X 10.3
> (archive and install) and then upgraded to 10.3.9.  Python seems to  
> work
> and other problems seem to be gone, but when I try to import my  
> original
> modules it can't find them.  I looked in the folder .MacOSX and see  
> that
> Enviroment.plist is still there and it has the original paths that  
> once
> worked (two weeks ago).  Here it is:

The first rule of PYTHONPATH is that you shouldn't use PYTHONPATH.   
Use pth files instead.

Anyway, did you forget to logout after changing Environment.plist?

-bob

___
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig