[OpenSIPS-Users] MediaProxy installation error

Barsan Liviu barsanl at yahoo.com
Fri Jun 10 17:38:59 CEST 2011


Hi Saul,

I was trying to get your sources with darcs, worked and I installed all 
MediaProxy modules, but still got the error when run the dispatcher:

Jun 10 21:34:01 P4302 /USR/SBIN/CRON[11951]: (root) CMD (php 
/var/www/opensips-cp/cron_job/get_opensips_stats.php > /dev/null)
Jun 10 21:34:06 P4302 media-dispatcher[11957]: Starting MediaProxy Dispatcher 
2.4.4
Jun 10 21:34:06 P4302 media-dispatcher[11957]: using set_wakeup_fd
Jun 10 21:34:06 P4302 media-dispatcher[11957]: error: Traceback (most recent 
call last):
Jun 10 21:34:06 P4302 media-dispatcher[11957]: error:   File 
"/usr/bin/media-dispatcher", line 56, in <module>
Jun 10 21:34:06 P4302 media-dispatcher[11957]: error:     from 
mediaproxy.dispatcher import Dispatcher
Jun 10 21:34:06 P4302 media-dispatcher[11957]: error:   File 
"/usr/lib/pymodules/python2.6/mediaproxy/dispatcher.py", line 37, in <module>
Jun 10 21:34:06 P4302 media-dispatcher[11957]: error:     from 
mediaproxy.interfaces import opensips
Jun 10 21:34:06 P4302 media-dispatcher[11957]: error:   File 
"/usr/lib/pymodules/python2.6/mediaproxy/interfaces/opensips.py", line 14, in 
<module>
Jun 10 21:34:06 P4302 media-dispatcher[11957]: error:     from 
application.python.types import Singleton
Jun 10 21:34:06 P4302 media-dispatcher[11957]: error: ImportError: No module 
named types


I guess because MediaProxy is not updated for python-application.

What can I do? We have a relative urgent task and instead of working on the task 
I install/re-install since several days...

Thanks,
Liviu



________________________________
From: Saúl Ibarra Corretgé <saul at ag-projects.com>
To: OpenSIPS users mailling list <users at lists.opensips.org>
Sent: Fri, June 10, 2011 4:49:51 PM
Subject: Re: [OpenSIPS-Users] MediaProxy installation error

Hi,

On Jun 10, 2011, at 3:25 PM, Barsan Liviu wrote:

> Hello,
> 
> We were installing the mediaproxy from your repository with apt-get ... , 
>including all prerequisites and we can not run media relay because we receive 
>the error:
> 
> fatal error: failed to create MediaProxy Relay: cannot import name 
>default_host_ip
> Jun 10 19:09:05 P4302 media-relay[2333]: Traceback (most recent call last):
> Jun 10 19:09:05 P4302 media-relay[2333]:   File "/usr/bin/media-relay", line 
>61, in <module>
> Jun 10 19:09:05 P4302 media-relay[2333]:     from mediaproxy.relay import 
>MediaRelay
> Jun 10 19:09:05 P4302 media-relay[2333]:   File 
>"/usr/lib/pymodules/python2.6/mediaproxy/relay.py", line 33, in <module>
> Jun 10 19:09:05 P4302 media-relay[2333]:     from application.system import 
>default_host_ip
> Jun 10 19:09:05 P4302 media-relay[2333]: ImportError: cannot import name 
>default_host_ip
> 
> As we think this comes from some incompatibility with the python-application 
>package. By uninstalling the python-application package, all related packages 
>were uninstalled, thus we can start again from installing from sources.
> Would be welcome a tested configuration including which versions of the 
>prerequisites to install.
> 

We are currently working on new packages, but that will take time. In the 
meanwhile, you may fetch the source code and build MediaProxy yourself:

darcs get http://devel.ag-projects.com/repositories/mediaproxy
cd mediaproxy
debuild -us -uc


Regards,

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110610/510dd23b/attachment-0001.htm>


More information about the Users mailing list