Hi,

From: "Jason R. Mastaler"
Subject: Re: tmda-ofmipd: patch for imap[s] and pop3 remote auth
Date: Thu, 05 Sep 2002 10:29:20 -0600

> [EMAIL PROTECTED] writes:
> 
> > I installed python2.2 alongside python2.1 and tried your suggestion
> > w/ the following results:
> >
> > # python2.2 /usr/bin/tmda-ofmipd -h
> > Traceback (most recent call last):
> >   File "/usr/bin/tmda-ofmipd", line 101, in ?
> >     from TMDA import Util
> > ImportError: No module named TMDA
> 
> I'm guessing you have TMDA package installed?  

Yes, that's correct for this particular machine.

> Packages actually install the TMDA modules inside the Python lib
> directory (e.g, /usr/lib/python2.1/site-packages/TMDA/).  This means
> it is tied to that particular release of Python since the modules
> are not accessible outside of it.

Ok, thanks for this explanation.

> You have a few options:
> 
> 1) Install the Python 2.2 package, and then the TMDA package.  Now
> TMDA will be inside 2.2's lib directory and tmda-ofmipd will work.

Hmmm, may be you are right about this, but looking at
/var/lib/dpkg/info/python-tmda.list I see entries such as:

  /usr/lib/python2.1/site-packages/TMDA
  /usr/lib/python2.1/site-packages/TMDA/ChangeLog
  /usr/lib/python2.1/site-packages/TMDA/Cookie.py
  /usr/lib/python2.1/site-packages/TMDA/Defaults.py
  ...

Also, for the python-tmda and tmda 0.61 packages, I also see:

  Depends: python (>= 2.1), python (<< 2.2)
  Depends: python (>= 2.1), python (<< 2.2), python-tmda (= 0.61-1), debconf

respectively.  I was under the impression that "<<" means "strictly
less than" in this context -- so I don't get a warm fuzzy feeling.

> 2) Use a TMDA tarball instead of a TMDA package (like you were doing
> with the CVS code).

Perhaps this is a better option.  Because of the way you have
structured the TMDA installation, it's pretty easy to backup as well
as remove (-;  (I really appreciate this kind of structure -- one of
the main reasons I use packaging systems is for the ability to cleanly
remove installed packages -- with TMDA it appears to be pretty easy
w/o the packaging system).  BTW, you don't have any plans to change
from this structure, right?

I will think about this option more.

Thanks for the help as always.
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to