django - freeswitch python scripts errno 10 no child processes -


i' ve got issue when running freeswitch python scripts inside dialplan using django.db models. whenever starts causes errors:

freeswitch@ubuntu> 2013-08-15 06:56:08.094348 [err] mod_python.c:231 error importing module 2013-08-15 06:56:08.094348 [err] mod_python.c:164 python error calling script   "fs_scripts.ringback": <type 'exceptions.ioerror'> message: [errno 10] no child processes exception: none  traceback (most recent call last) file: "/home/piotrek/lettel/fs_scripts/ringback.py", line 19, in <module> file: "/home/piotrek/lettel/api/call.py", line 3, in <module> file: "/usr/local/lib/python2.7/dist-packages/django/db/__init__.py", line 11, in <module> file: "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 184, in inner file: "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup file: "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 93, in __init__ file: "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module file: "/home/piotrek/lettel/lettel/settings.py", line 13, in <module> file: "/usr/local/lib/python2.7/dist-packages/djcelery/__init__.py", line 25, in <module> file: "/usr/local/lib/python2.7/dist-packages/celery/__compat__.py", line 135, in __getattr__ file: "/usr/local/lib/python2.7/dist-packages/celery/_state.py", line 19, in <module> file: "/usr/local/lib/python2.7/dist-packages/celery/utils/__init__.py", line 22, in <module> file: "/usr/local/lib/python2.7/dist-packages/kombu/entity.py", line 10, in <module> file: "/usr/local/lib/python2.7/dist-packages/kombu/abstract.py", line 12, in <module> file: "/usr/local/lib/python2.7/dist-packages/kombu/connection.py", line 24, in <module> file: "/usr/local/lib/python2.7/dist-packages/kombu/log.py", line 8, in <module> file: "/usr/local/lib/python2.7/dist-packages/kombu/utils/compat.py", line 68, in <module> file: "/usr/lib/python2.7/platform.py", line 1337, in system file: "/usr/lib/python2.7/platform.py", line 1304, in uname file: "/usr/lib/python2.7/platform.py", line 1039, in _syscmd_uname 

edit: line causes errors simple import django.db:
django.db import models

this whole setup running on server dont have access to, seems nothing wrong django app or scripts...

any appreciated cause running out of ideas how solve problem...

i dont know performance , scalability requirements, despite softswitch have realtime requirements run rtp stream , signalling. not solution run django applications under mod_python. furthermore not same python interpreter directly, somethings not work. can check mod_python issues here: mod_python issues

i advice split python solution in client/server architecture. script running under mod_python make queries django application. way rid of complexity in freeswitch side, scalable, improve performance , working ok.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -