I'm really excited about the interface, but I'm having great difficulty getting it working. There seems to be some sensitivity around library versions, i.e. Django 0.9x vs. 1.0, and/or wsgi and/or …? I'm having a hard time interpreting the error messages that get spit out, to point to what library is causing the problem.
Can someone identify a working configuration, compatible with Python 2.4.3? I've tried Django 0.95.4, 0.96.3, 1.0.2, and seem to get different errors every time. Example (Django 0.96.3):
2009/06/18 11:38 -0300 [-] 127.0.0.1 - - [18/Jun/2009:14:38:16 -0300] "POST /xml_dialplan/ HTTP/1.1" 200 127 "-" "freeswitch-xml/1.0"
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] ERROR!!
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] Error generating config: 'module' object has no attribute 'blockingCallFromThread'
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] Traceback (most recent call last):
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] File "/usr/src/wikipbx/wikipbxweb/views.py", line 1843, in xml_dialplan
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] if not request.POST:
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 136, in _get_post
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] self._load_post_and_files()
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 116, in _load_post_and_files
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] self._post, self._files = http.QueryDict(self.raw_post_data), datastructures.MultiValueDict()
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 165, in _get_raw_post_data
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] safe_copyfileobj(self.environ['wsgi.input'], buf, size=content_length)
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] File "/usr/lib/python2.4/site-packages/django/core/handlers/wsgi.py", line 67, in safe_copyfileobj
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] buf = fsrc.read(min(length, size))
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] File "/usr/lib/python2.4/site-packages/twisted/web2/wsgi.py", line 74, in read
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] return threads.blockingCallFromThread(
2009/06/18 11:38 -0300 [HTTPChannel,18,127.0.0.1] AttributeError: 'module' object has no attribute 'blockingCallFromThread'
[root@agbridge1 wikipbx]# echo $PYTHONPATH
:/usr/src:/opt/freeswitch/scripts/socket
(wikipbx installed in '/usr/src/wikipbx')
Also using the latest SVN of freeswitch, 1.0.4





