[OpenSIPS-Users] media dispatcher startup fails

Richard Revels rrevels at bandwidth.com
Fri Jul 3 17:13:12 CEST 2009


First off, thank you for your help.  It loads now and I imagine it  
will run just fine as well.

I couldn't find a "easy_uninstall" to get rid of the 0.10.6 version so  
I pulled 0.9.5 from svn and ran the python setup.py install command.   
Since both versions are now sitting in the site-packages directory I  
really wasn't expecting the dispatcher to load without further work.   
But it did so I'm happy.  Do I need to get rid of the 0.10.6 version  
and if so what is the method of going about that?

Richard Revels


On Jul 3, 2009, at 10:00 AM, Ruud Klaver wrote:

> Hi,
>
> On 03 Jul 2009, at 15:30, Richard Revels wrote:
>
>> After googling around a little for self.dbEncoding I've decided I
>> don't have a chance of finding a solution for this on my own.  Any
>> help would be appreciated.
>>
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]: Log opened.
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]: warning:
>> startSyslog is being deprecated and will be removed in 1.2.0. Use the
>> start_syslog function instead.
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]: Starting
>> MediaProxy Dispatcher 2.3.4
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]: Twisted is using
>> selectreactor
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]: fatal error:
>> failed to create MediaProxy Dispatcher: unicode() argument 2 must be
>> string, not None
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]: Traceback (most
>> recent call last):
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]: --- <exception
>> caught here> ---
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:   File "./media-
>> dispatcher", line 56, in ?
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:     dispatcher =
>> Dispatcher()
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:   File "/usr/
>> local/src/mediaproxy-2.3.4/mediaproxy/dispatcher.py", line 523, in
>> __init__
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:
>> self.accounting = [__import__("mediaproxy.interfaces.accounting.%s" %
>> mod.lower(), globals(), locals(), [""]).Accounting() for mod in
>> set(Config.accounting)]
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:   File "/usr/
>> local/src/mediaproxy-2.3.4/mediaproxy/interfaces/accounting/
>> database.py", line 53, in ?
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:
>> MediaSessions.createTable(ifNotExists=True)
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:   File "/usr/ 
>> lib/
>> python2.4/site-packages/SQLObject-0.10.6-py2.4.egg/sqlobject/ 
>> main.py",
>> line 1393, in createTable
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:     if
>> ifNotExists and cls.tableExists(connection=conn):
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:   File "/usr/ 
>> lib/
>> python2.4/site-packages/SQLObject-0.10.6-py2.4.egg/sqlobject/ 
>> main.py",
>> line 1367, in tableExists
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:     return
>> conn.tableExists(cls.sqlmeta.table)
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:   File "/usr/ 
>> lib/
>> python2.4/site-packages/SQLObject-0.10.6-py2.4.egg/sqlobject/mysql/
>> mysqlconnection.py", line 203, in tableExists
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:
>> self.query('DESCRIBE %s' % (tableName))
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:   File "/usr/ 
>> lib/
>> python2.4/site-packages/SQLObject-0.10.6-py2.4.egg/sqlobject/
>> dbconnection.py", line 347, in query
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:     return
>> self._runWithConnection(self._query, s)
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:   File "/usr/ 
>> lib/
>> python2.4/site-packages/SQLObject-0.10.6-py2.4.egg/sqlobject/
>> dbconnection.py", line 260, in _runWithConnection
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:     val =
>> meth(conn, *args)
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:   File "/usr/ 
>> lib/
>> python2.4/site-packages/SQLObject-0.10.6-py2.4.egg/sqlobject/
>> dbconnection.py", line 344, in _query
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:
>> self._executeRetry(conn, conn.cursor(), s)
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:   File "/usr/ 
>> lib/
>> python2.4/site-packages/SQLObject-0.10.6-py2.4.egg/sqlobject/mysql/
>> mysqlconnection.py", line 103, in _executeRetry
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:     query =
>> unicode(query, self.dbEncoding)
>> Jul  3 13:03:32 opensips-hou media-dispatcher[6005]:
>> exceptions.TypeError: unicode() argument 2 must be string, not None
>>
>> Richard Revels
>
> Looks like a SQLObject issue, could you try if downgrading to a 0.9  
> version helps?
>
> Ruud Klaver
> AG Projects
>




More information about the Users mailing list