tmda and python

Padraig at Linux.ie Padraig at Linux.ie
Fri Jan 31 12:13:42 EST 2003


DJ wrote:
> Hello,
> 
> I am having a problem with getting tmda to work properly with qmail.
> I'm not sure if it's a Python issue or not.
> 
> 0) Redhat 7.3 system with python rpms
> 
>  python2-2.1.1-2.72
>  mod_python-2.7.6-1
>  python-tools-1.5.2-42.72
> 
> 1) tried to compile with source and got this:
> 
> [root at Knight tmda-0.68]# ./compileall
> Traceback (innermost last):
>   File "./compileall", line 95, in ?
>     sys.exit(not main())
>   File "./compileall", line 88, in main
>     success = success and compile_dir(dir)
>   File "./compileall", line 39, in compile_dir
>     major, minor = sys.version_info[0:2]
> AttributeError: version_info

sys.version_info is only available with python version 2.2
So I'm guessing that you still have python 1.5 on your system.
Try changing the python calls in tmda to python2 explicitly.
You'll have non of this messing on RH8x as python 2 is used
by default.

Pádraig.





More information about the Python-list mailing list