Freeradius 2.04 + python + mysqldb python module on Debian 4.0

jpurtteman at jpurtteman at
Wed May 21 00:01:22 CEST 2008

>From the subject, you can probably guess that its just barely a Freeradius problem :)  Anyway...

Using the Build ( instructions for Debian, i have compiled FreeRADIUS with python support.  I copied the example module configuration for python out of experimental.conf.  using the provided test script, the server runs fine. and any other simple script works until i try to import MySQLdb for python.  However, when you try to  "import MySQLdb",  it blows it stops, and throws the following:

<type 'exceptions.ImportError'>: /var/lib/python-support/python2.5/ undefined symbol: PyExc_ImportError 
Failed to import python module "pyrad_auth" 
/etc/freeradius/radiusd.conf[608]: Instantiation failed for module "python"
Errors initializing modules

Which, i think, means that it can't load the mysql module for some reason, and i don't know much else.  from the command prompt, i can execute the .py script that i am using.  In fact, it is the same script that works on a SuSE 10.1 server that i have, so i think the script is not likely to be the problem.

Any pointers/hints/need more info?  Much appreciated.

--Jester Purtteman

More information about the Freeradius-Users mailing list