Scott Onstott said the following on 11/3/2003 8:16 PM>>
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
============================================================================ ========= 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',)
I have python 2.2 and everything is working fine. For testing purposes
I installed python 2.3.2 and recompiled everything (keeping all settings intact) against python 2.3.2. Now I'm getting exactly the same error as above when I try to install tmda to a new a/c thru tmda-cgi.
I recompiled everything against python 2.2.2 and everything worked fine again.
Could this be due to some changes in python 2.3.2?
R'twick _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
