Re: keygen problem generating cryptkey
Kevin Goodsell <[email protected]> Wed, 9 Feb 2011 11:18:34 -0800
| Newsgroups | gmane.mail.spam.tmda.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Feb 8, 2011 at 10:55 PM, J. Maxwell <[email protected]> wrote: > > 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; > ... > > Am I safe in assuming this to be the source tree you are referring to? Yes, site-packages is the directory that needs to be in your Python path. It seems a little strange that it wouldn't already be there. > > 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/") /usr/local/bin isn't what you need in the path. You need /usr/local/lib/python2.6/site-packages, which is supposed to be added to the path by the site module on interpreter startup. More on this below. > > but got ==> > import: unable to open X server `' @ error/import.c/ImportImageCommand/364. > ??? This doesn't appear to be a Python error. It looks like you tried to run that script with something other than a Python interpreter. Getting back to the problem at hand, it looks to me like Python was configured incorrectly, or TMDA installed in the wrong location (because the installation location disagrees with the Python configuration). Check the values of sys.prefix and sys.exec_prefix like this: python -c "import sys; print sys.prefix, sys.exec_prefix" If neither one is /usr/local, that explains why /usr/local/lib/python2.6/site-packages is missing from sys.path. I suggest just creating a symlink to /usr/local/lib/python2.6/site-packages/TMDA in the directory where Python looks for site packages (probably sys.prefix + '/lib/python2.6/site-packages') -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