From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Sun, 19 Oct 2003 14:13:57 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 218 ************************************************** Saturday 18 October 2003 Number 218 ************************************************** Subjects for today 1 Re: Python: import: No such file or directory : T.Sikora" 2 Python v2.3 : John Poltorak 3 Re: Python: import: No such file or directory : T.Sikora" 4 Python: import: No such file or directory : John Poltorak 5 Re: Python: import: No such file or directory : John Poltorak 6 Re: Python: import: No such file or directory : John Poltorak 7 Re: Python: import: No such file or directory : John Poltorak **= Email 1 ==========================** Date: Sun, 19 Oct 2003 12:35:27 -0400 From: "T.Sikora" Subject: Re: Python: import: No such file or directory John Poltorak wrote: > Can anyone tell me why I get:- > > import: No such file or directory It's trying to import a module like import paths.py That's usually the env ie; config.sys or a missing file. The ux2 mailman needs python 2.2.3 You should use the one included in the latest Zope. It has everything needed for Zope and Mailman including db support. > > when running a simple python script? > > I guess it must be an installation problem, but what exactly is python > looking for and where does it look? > > In this case I'm trying to import paths, but it looks like the import > function itself is failing. > > Python has been working in the past, but I've obviously disturbed its > environment. > > -- T.Sikora tsikora at ntplx dot net **= Email 2 ==========================** Date: Sun, 19 Oct 2003 15:00:23 +0100 From: John Poltorak Subject: Python v2.3 It has completely missed my attention that Python v2.3 came out several months ago. You can get details from:- http://www.andymac.org/python-2.3/ Maybe I can get Mailman working now... -- John **= Email 3 ==========================** Date: Sun, 19 Oct 2003 15:38:30 -0400 From: "T.Sikora" Subject: Re: Python: import: No such file or directory John Poltorak wrote: > On Sun, Oct 19, 2003 at 06:48:56PM +0100, John Poltorak wrote: > >>On Sun, Oct 19, 2003 at 12:35:27PM -0400, T.Sikora wrote: >> >>>John Poltorak wrote: >>> >>>>Can anyone tell me why I get:- >>>> >>>>import: No such file or directory >>> >>>It's trying to import a module like import paths.py >>> >>>That's usually the env ie; config.sys or a missing file. >>> >>>The ux2 mailman needs python 2.2.3 You should use the one included in >>>the latest Zope. It has everything needed for Zope and Mailman including >>>db support. >> >>Python 2.3 is available now, so I thought I may as well get right up to >>date. Are Zope and Mailman known to work with v2.3? > > > Just looking at cgi-bin/admin I see a hardcoded path of > /usr/local/python223 which I suppose could cause a problem. > > I built Mailman and Zope for /usr/local. I have python installed there too. I better put that in the readme. The important issue is Mailman has to be on the drive where sendmail is for the aliases to work. So since sendmail is on %osrt%, Mailman and Python will have to be installed there. -- T.Sikora tsikora at ntplx dot net **= Email 4 ==========================** Date: Sun, 19 Oct 2003 15:52:55 +0100 From: John Poltorak Subject: Python: import: No such file or directory Can anyone tell me why I get:- import: No such file or directory when running a simple python script? I guess it must be an installation problem, but what exactly is python looking for and where does it look? In this case I'm trying to import paths, but it looks like the import function itself is failing. Python has been working in the past, but I've obviously disturbed its environment. -- John **= Email 5 ==========================** Date: Sun, 19 Oct 2003 18:48:56 +0100 From: John Poltorak Subject: Re: Python: import: No such file or directory On Sun, Oct 19, 2003 at 12:35:27PM -0400, T.Sikora wrote: > John Poltorak wrote: > > Can anyone tell me why I get:- > > > > import: No such file or directory > > It's trying to import a module like import paths.py > > That's usually the env ie; config.sys or a missing file. > > The ux2 mailman needs python 2.2.3 You should use the one included in > the latest Zope. It has everything needed for Zope and Mailman including > db support. Python 2.3 is available now, so I thought I may as well get right up to date. Are Zope and Mailman known to work with v2.3? > -- > T.Sikora > tsikora at ntplx dot net -- John **= Email 6 ==========================** Date: Sun, 19 Oct 2003 19:09:20 +0100 From: John Poltorak Subject: Re: Python: import: No such file or directory On Sun, Oct 19, 2003 at 06:48:56PM +0100, John Poltorak wrote: > On Sun, Oct 19, 2003 at 12:35:27PM -0400, T.Sikora wrote: > > John Poltorak wrote: > > > Can anyone tell me why I get:- > > > > > > import: No such file or directory > > > > It's trying to import a module like import paths.py > > > > That's usually the env ie; config.sys or a missing file. > > > > The ux2 mailman needs python 2.2.3 You should use the one included in > > the latest Zope. It has everything needed for Zope and Mailman including > > db support. > > Python 2.3 is available now, so I thought I may as well get right up to > date. Are Zope and Mailman known to work with v2.3? Just looking at cgi-bin/admin I see a hardcoded path of /usr/local/python223 which I suppose could cause a problem. > > -- > > T.Sikora > > tsikora at ntplx dot net -- John **= Email 7 ==========================** Date: Sun, 19 Oct 2003 20:40:47 +0100 From: John Poltorak Subject: Re: Python: import: No such file or directory On Sun, Oct 19, 2003 at 03:38:30PM -0400, T.Sikora wrote: > John Poltorak wrote: > > On Sun, Oct 19, 2003 at 06:48:56PM +0100, John Poltorak wrote: > > > >>On Sun, Oct 19, 2003 at 12:35:27PM -0400, T.Sikora wrote: > >> > >>>John Poltorak wrote: > >>> > >>>>Can anyone tell me why I get:- > >>>> > >>>>import: No such file or directory > >>> > >>>It's trying to import a module like import paths.py > >>> > >>>That's usually the env ie; config.sys or a missing file. > >>> > >>>The ux2 mailman needs python 2.2.3 You should use the one included in > >>>the latest Zope. It has everything needed for Zope and Mailman including > >>>db support. > >> > >>Python 2.3 is available now, so I thought I may as well get right up to > >>date. Are Zope and Mailman known to work with v2.3? > > > > > > Just looking at cgi-bin/admin I see a hardcoded path of > > /usr/local/python223 which I suppose could cause a problem. > > > > > I built Mailman and Zope for /usr/local. I have python installed there > too. I better put that in the readme. The important issue is Mailman has > to be on the drive where sendmail is for the aliases to work. So since > sendmail is on %osrt%, Mailman and Python will have to be installed there. No, that doesn't matter if the only issue is ALIASES. You can have different sets of alias files. Here is what I have in sendmail.cf:- OAc:\etc\sendmail\aliases,c:\usr\local\majordomo\majordomo.aliases I keep my normal sendmail aliases completely seperate from the majordomo aliases. > -- > T.Sikora > tsikora at ntplx dot net -- John