tmda and python

DJ dr_jackson at yahoo.com
Sat Feb 1 09:44:10 EST 2003


Thanks  Padraig

Took the advice of many:

*** I upgraded to RH 8.0 ***

[root at Knight dj]# cat /etc/redhat-release
Red Hat Linux release 8.0 (Psyche)

[root at Knight dj]# rpm -qa |grep python
orbit-python-1.99.0-4
gnome-python2-applet-1.99.11-8
python-optik-1.3-2
python-2.2.1-17
gnome-python2-canvas-1.99.11-8
rpm-python-4.1-1.06
python-devel-2.2.1-17
mod_python-3.0.0-10
python-xmlrpc-1.5.1-7.x.3
python-popt-0.8.8-7.x.2
gnome-python2-bonobo-1.99.11-8
gnome-python2-gtkhtml2-1.99.11-8
postgresql-python-7.2.2-1
python-docs-2.2.1-17
libxml2-python-2.4.23-1
rpm404-python-4.0.4-8x.27
kdebindings-python-2.2.2-1
gnome-python2-1.99.11-8
MySQL-python-0.9.1-4
python-tools-2.2.2-7
root at Knight dj]# which python2
/usr/bin/python2
[root at Knight dj]# ls -al /usr/bin/python2
lrwxrwxrwx    1 root     root            6 Jan 31 20:51
/usr/bin/python2 -> python
[root at Knight dj]# python
Python 2.2.2 (#1, Jan 31 2003, 15:32:45)
[GCC 2.96 20000731 (Red Hat Linux 7.2 2.96-112.7.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

*** I then have full path in .qmail ***

|/usr/bin/autorespond 10 5 response.txt /home/dj/logs/ 1 +
#./Maildir/
|preline /usr/bin/python2 /usr/bin/tmda-filter ./Maildir/

*** error log ***

Uncaught Python 2.2.1 Exception (Sat Feb  1 09:44:50 2003):
-----------------------------------------------------------
Traceback (most recent call last):
  File "/usr/bin/tmda-filter", line 53, in ?
    execfile(os.path.join(execdir, 'tmda-rfilter'))
  File "/usr/bin/tmda-rfilter", line 72, in ?
    from TMDA import Version
ImportError: No module named TMDA
Traceback (most recent call last):
  File "/usr/bin/tmda-filter", line 67, in ?
    from TMDA.Defaults import LOGFILE_DEBUG
ImportError: No module named TMDA.Defaults


Still having the same prob, but am I pointing to python in the right
place? I'm not sure where else to direct tmda to python2, if that's
not it. Thanks to all for helping.




More information about the Python-list mailing list