Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-1414

python exception triggered by execution of callback function

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mod_python
    • Labels:
      None
    • CPU Architecture:
      x86
    • Kernel:
      Linux
    • uname:
      Linux example.com 2.6.24-24-openvz #1 SMP Fri Sep 18 18:49:50 UTC 2009 i686 GNU/Linux
    • Userland:
      GNU/Linux
    • lsb_release:
      Hide
      No LSB modules are available.
      Distributor ID: Ubuntu
      Description: Ubuntu 8.04.3 LTS
      Release: 8.04
      Codename: hardy
      Show
      No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.3 LTS Release: 8.04 Codename: hardy
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      16256
    • GIT Master Revision hash::
      yes

      Description

      Attached script can be used to duplicate the problem. Note that the callback function itself really does nothing, but the mere fact that we call it triggers the problem later on in the script.

      If callback is never called then I have no problem, however, for some reason if input callback function is called first (just press any key during playback) and after that I try to execute the following line of code:

      os.path.realpath(os.curdir)

      I get exception:

      Traceback (most recent call last):
      File "/usr/local/freeswitch/scripts/input_callback.py", line 13, in handler
      console_log("info", "cwd after input callback: %s\n\r" % os.path.realpath(os.curdir))
      File "/usr/lib/python2.5/posixpath.py", line 419, in realpath
      component = join(*bits[0:i])
      File "/usr/lib/python2.5/posixpath.py", line 59, in join
      for b in p:
      TypeError: expected string or Unicode object, NoneType found
      Traceback (most recent call last):
      File "<string>", line 1, in <module>
      NameError: name 'python_makes_sense' is not defined

        Attachments

          Activity

            People

            • Assignee:
              anthm Anthony Minessale II
              Reporter:
              hristo Hristo Trendev
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: