Hey all,
I have tmda (0.88) installed and working. I have a modified
vadduser-tmda working as well. I'm trying to implement tmda-cgi.
For the users that I have not added as vadduser-tmda, I wanted to let
them enable tmda. I have tmda.cgi compiled and working (sort of) I can
login and read the initial page, but when I try and do 'Yes, sign me
up!' it dumps. with an ImportError. If I access an account that I have
use vadduser-tmda on, I only have a few smaller problems that hopefully
I can work out.
Below is what I get from the ImportError:
ImportError Python 2.3.2: /usr/local/bin/python
Fri Nov 14 15:38:37 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/lib/python2.3/site-packages/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/lib/python2.3/site-packages/TMDA/tmda-cgi.py in
Call(Library=<module 'Install' from '/root/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 '/root/tmda-cgi-0.11/Install.pyc'>,
Library.Show = <function Show>
/root/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>
/root/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'], global IgnoreFiles = <function
IgnoreFiles>, Anomalies = {'Base':
'/usr/local/lib/python2.3/site-packages', 'CryptKey':
'8c3ff0ab371fc02ef86f036636b9ccaf3ebf851d', 'Domain': 'poklib.org',
'Home': '/usr/local/vpopmail/domains/poklib.org/tmdauser', 'Name':
"'tmdauser'", 'PARENT_RE': r'^/home/vpopmail/domains/[^/]+\.[^/]+$',
'PERMISSIONS': {'.tmda/crypt_key': 384}, 'Parent': '..', 'REAL_ONLY':
{'qmail': ['.qmail', '.qmail-default'], 'sendmail': ['.procmail']},
'RealHome': '/usr/local/vpopmail', ...}
/root/tmda-cgi-0.11/Install.py in IgnoreFiles(Anomalies={'Base':
'/usr/local/lib/python2.3/site-packages', 'CryptKey':
'8c3ff0ab371fc02ef86f036636b9ccaf3ebf851d', 'Domain': 'poklib.org',
'Home': '/usr/local/vpopmail/domains/poklib.org/tmdauser', 'Name':
"'tmdauser'", 'PARENT_RE': r'^/home/vpopmail/domains/[^/]+\.[^/]+$',
'PERMISSIONS': {'.tmda/crypt_key': 384}, 'Parent': '..', 'REAL_ONLY':
{'qmail': ['.qmail', '.qmail-default'], 'sendmail': ['.procmail']},
'RealHome': '/usr/local/vpopmail', ...})
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>
/root/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/lib/python2.3/site-packages/TMDA/Defaults.py
35 import sys
36
37 import Errors
38
39
Errors undefined
ImportError: No module named Errors
args = ('No module named Errors',)
and my tmda-cgi.h
#define PYTHON "/usr/local/bin/python"
#define INSTALL "/root/tmda-cgi-0.11/"
#define MODE "TMDA_CGI_MODE=system-wide"
#define DISP_DIR "TMDA_CGI_DISP_DIR=/display"
#define BASE_DIR "TMDA_BASE_DIR=/usr/local/lib/python2.3/site-packages"
#define VUSER "TMDA_VUSER=vpopmail"
#define SESS_PRE "TMDA_SESSION_PREFIX=/tmp/TMDASession."
#define SESS_EXP "TMDA_SESSION_EXP=300"
#define SESS_ODDS "TMDA_SESSION_ODDS=0.01"
#define VLOOKUP "TMDA_VLOOKUP=vpopmail1
#/usr/local/vpopmail/bin/vuserinfo ~" define TMDARC "TMDARC=~/.tmdarc"
#define AUTH_TYPE "TMDA_AUTH_TYPE=program"
#define AUTH_ARG "TMDA_AUTH_ARG=/usr/local/vpopmail/bin/vchkpw"
Any help is greatly appreciated.
Brian
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users