Re: keygen problem generating cryptkey

"J. Maxwell" <[email protected]> Tue, 08 Feb 2011 22:55:35 -0800
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
On 2/8/2011 10:03 AM, Kevin Goodsell wrote:
> On Tue, Feb 8, 2011 at 8:29 AM, J. Maxwell<[email protected]>  wrote:
>> Experiencing difficulty generating crypt_key
>>
>> O/S: FreeBSD 7.2;    MTA: Qmail 1.03;    DELIVERY: ~/Maildir
>>
>>      #1737:>  tmda-keygen -b>>  crypt_key
>>              Traceback (most recent call last):
>>                File "/usr/local/bin/tmda-keygen", line 37, in<module>
>>              from TMDA import Version
>>              ImportError: No module named TMDA
>>      #1738:>
>>
>> Any suggestions? not much found in the Archives.
>>
> > From http://tmda.sourceforge.net/cgi-bin/moin.cgi/TmdaInstallation:
>
> "TMDA is designed to run directly from its source directory. For
> example, if installed in /usr/local/tmda-1.1.0/, you'd run tmda-keygen
> by invoking /usr/local/tmda-1.1.0/bin/tmda-keygen. Do not move the
> bin/* programs outside the source tree..."
Thanks Kevin,

Unfortunately I am not Python literate! actually I am Python Challenged!
Are you running FreeBSD ? I installed both py and tmda from the ports 
collection there, not from an external tarball (which I can do, but 
would negatively prejudice maintenance an management of installed 
programs on FreeBSD platform)

It placed the executable scripts in /usr/local/bin
tmda-address*       tmda-check-address*   tmda-filter*
tmda-inject*          tmda-keygen*              tmda-ofmipd*
tmda-pending*       tmda-rfilter*                tmda-sendmail*

and several others in
/usr/local/lib/python2.6/site-packages/TMDA viz;

./                          ../                            
Address.py*                  Address.pyc*                 Auth.py*
Auth.pyc*            AutoResponse.py*     AutoResponse.pyc*        
Cookie.py*                     Cookie.pyc*
Defaults.py*         Defaults.pyc*            Deliver.py*                
     Deliver.pyc*                  Errors.py*
Errors.pyc*          FilterParser.py*         FilterParser.pyc*        
     HMAC.py*                    HMAC.pyc*
MTA.py*              MTA.pyc*                MessageLogger.py*       
MessageLogger.pyc*     Pending.py*
Pending.pyc*        Queue/                     SMTP.py*                
     SMTP.pyc*                   Util.py*
Util.pyc*              Version.py*               Version.pyc*            
     __init__.py*                   __init__.pyc*
pythonlib/

_*Am I safe in assuming this to be the source tree you are referring to?*_
There are others in the
     /usr/local/share/examples/tmda/dot-tmda
     /usr/local/share/examples/tmda
directories too


> The problem is that the TMDA/ directory is not in python's sys.path.
> TMDA tries to fix this itself in the paths.py file, but that has the
> same problem (it needs to be in Python's path to work).
searching through
/usr/local/lib/python2.6/

but have not been able to figure out how to append the path.
Used a recommended command
import sys
sys.path.append("/usr/local/bin/")

but got ==>
  import: unable to open X server `' @ 
error/import.c/ImportImageCommand/364. ???
  perhaps if you can direct me to a tutorial, that may be helpful.

> If TMDA/ isn't in the same directory as the script, you'll need to put
> it somewhere in sys.path, or modify sys.path to include the location
> of TMDA/ (possibly with the PYTHONPATH environment variable or a path
> configuration file as used by the 'site' module).
I copied the tmda* scripts from /usr/local/bin to 
/usr/local/lib/python2.6/site-packages/TMDA so that they'll be in the 
same directory, but that did not help either.
> -Kevin
>

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb

_______________________________________________
tmda-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmda-users