I'm getting errors in tmda-cgi when I try to test a dynamic address, when I
try to uninstall tmda and when I try to create a new account. TMDA,
tmda-ofmipd, and most of tmda-cgi are working. These errors are all python
errors of one kind or another, but I'm looking for the root cause.

I had to upgrade the python 1.5.2 that came with my plesk box to 2.3.2. I
did it in /update/Python-2.3.2/python and have made symbolic links to this
in /usr/bin/python and /usr/bin/python2

Am I doing something wrong with python? I can't tell from the python
documentation how to properly upgrade other than how I've done it. Below are
my tmda-cgi python errors. I would be very happy if anyone has any
suggestions.

============================================================================
=========
Test Dynamic Address Error in tmda-cgi
============================================================================
=========
TypeError
Python 2.3.2: /update/Python-2.3.2/python
Mon Nov 3 19:04:02 2003

A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred.

 /usr/local/tmda-cgi-0.11/tmda-cgi.py
  175   elif Cmd == "test_addr":

  176     import TestAddr

  177     Call(TestAddr)

  178   elif Cmd == "theme":

  179     import Theme

Call = <function Call>, TestAddr = <module 'TestAddr' from
'/usr/local/tmda-cgi-0.11/TestAddr.pyc'>

 /usr/local/tmda-cgi-0.11/tmda-cgi.py in Call(Library=<module 'TestAddr'
from '/usr/local/tmda-cgi-0.11/TestAddr.pyc'>, Str=None)
   55     Library.Show(Str)

   56   else:

   57     Library.Show()

   58

   59 # Capture WebUID

Library = <module 'TestAddr' from '/usr/local/tmda-cgi-0.11/TestAddr.pyc'>,
Library.Show = <function Show>

 /usr/local/tmda-cgi-0.11/TestAddr.py in Show()
   76             Addr.timestamp(1, None)

   77         except AttributeError:

   78           pass

   79

   80       # Add results in their place


TypeError: timestamp() takes exactly 1 argument (3 given)
      args = ('timestamp() takes exactly 1 argument (3 given)',)

============================================================================
=========
Create new account error in tmda-cgi
============================================================================
=========
ImportError
Python 2.3.2: /update/Python-2.3.2/python
Mon Nov 3 19:30:17 2003

A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred.

 /usr/local/src/tmda/TMDA/tmda-cgi.py
  101   PVars["InProcess"]   = {}

  102   PVars["LocalConfig"] = "Form"

  103   PVars.Save()

  104

  105 # Share "globals"

PVars = <Session.Session instance>, PVars.Save = <bound method Session.Save
of <Session.Session instance>>

 /usr/local/src/tmda/TMDA/tmda-cgi.py in Call(Library=<module 'Install' from
'/usr/local/tmda-cgi-0.11/Install.pyc'>, Str=None)
   55     Library.Show(Str)

   56   else:

   57     Library.Show()

   58

   59 # Capture WebUID

Library = <module 'Install' from '/usr/local/tmda-cgi-0.11/Install.pyc'>,
Library.Show = <function Show>

 /usr/local/tmda-cgi-0.11/Install.py in Show()
  665     TemplateFN = "faq.html"

  666   elif Form["cmd"].value == "install":

  667     Install()  # Does not return.

  668   elif Form["cmd"].value == "restore":

  669     Restore()  # Does not return.

global Install = <function Install>

 /usr/local/tmda-cgi-0.11/Install.py in Install()
  362

  363   # Are we supposed to ignore any of those?

  364   ListDiff(FilesToInstall, IgnoreFiles(Anomalies))

  365

  366   # What files will that clobber?

global ListDiff = <function ListDiff>, FilesToInstall = ['.qmail',
'%(Parent)s/.qmail-%(User)s', '%(Parent)s/.qmail-%(User)s-default',
'.qmail-default', '.tmda/crypt_key', '.tmda/config',
'.tmda/filters/incoming', '.tmda/filters/outgoing', '.tmda/tmda-cgi.ini',
'.tmda/lists/blacklist', '.tmda/lists/confirmed', '.tmda/lists/revoked',
'.tmda/lists/whitelist', '.tmda/templates/bounce.txt',
'.tmda/templates/confirm_accept.txt', '.tmda/templates/confirm_request.txt',
'.qmail-tmda-return'], global IgnoreFiles = <function IgnoreFiles>,
Anomalies = {'Base': '/usr/local/src/tmda', 'CryptKey':
'5b5b3d820f3be74438985e86c5ae0083e29e5353', 'Domain': 'scottonstott.com',
'Home': '/var/qmail/mailnames/scottonstott.com/junkmail', 'Name': 'None',
'PARENT_RE': r'^/home/vpopmail/domains/[^/]+\.[^/]+$', 'PERMISSIONS':
{'.tmda/crypt_key': 384}, 'Parent': '..', 'REAL_ONLY': {'qmail': ['.qmail',
'.qmail-default', '.qmail-tmda-return'], 'sendmail': ['.procmail']},
'RealHome': '/var/qmail', ...}

 /usr/local/tmda-cgi-0.11/Install.py in IgnoreFiles(Anomalies={'Base':
'/usr/local/src/tmda', 'CryptKey':
'5b5b3d820f3be74438985e86c5ae0083e29e5353', 'Domain': 'scottonstott.com',
'Home': '/var/qmail/mailnames/scottonstott.com/junkmail', 'Name': 'None',
'PARENT_RE': r'^/home/vpopmail/domains/[^/]+\.[^/]+$', 'PERMISSIONS':
{'.tmda/crypt_key': 384}, 'Parent': '..', 'REAL_ONLY': {'qmail': ['.qmail',
'.qmail-default', '.qmail-tmda-return'], 'sendmail': ['.procmail']},
'RealHome': '/var/qmail', ...})
  303   Mode = os.environ["TMDA_CGI_MODE"]

  304   os.environ["TMDA_CGI_MODE"] = "no-su"

  305   Mail = ReimportDefaults([], "")["MAIL_TRANSFER_AGENT"]

  306   os.environ["TMDA_CGI_MODE"] = Mode

  307

Mail undefined, global ReimportDefaults = <function ReimportDefaults>

 /usr/local/tmda-cgi-0.11/Install.py in ReimportDefaults(Files=[],
Backup='')
  293   except Errors.ConfigError, ErrStr:

  294     os.chdir(CWD)

  295     Revert(Files, Backup, "Re-importing Defaults<br>%s" % ErrStr)

  296

  297   return Defaults

global Revert = <function Revert>, Files = [], Backup = '', ErrStr undefined

 /usr/local/src/tmda/TMDA/Defaults.py
   35 import sys

   36

   37 import Errors

   38

   39

Errors undefined

ImportError: No module named Errors
      args = ('No module named Errors',)

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to