Semething goes wrong in 1.4.3

Anonymous avatarAnonymous created an issue

It this version three lines is engough to crash it:

>>> import teamspeak3
>>> c = teamspeak3.Client('####',10011)
>>> c.send_command(teamspeak3.Command('use',sid=###))
>>> Process Process-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/", line 258, in _bootstrap
  File "/usr/lib/python2.7/multiprocessing/", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python2.7/dist-packages/teamspeak3-1.4.3-py2.7.egg/teamspeak3/", line 87, in start_connection
  File "/usr/local/lib/python2.7/dist-packages/teamspeak3-1.4.3-py2.7.egg/teamspeak3/", line 60, in main_loop
  File "/usr/local/lib/python2.7/dist-packages/teamspeak3-1.4.3-py2.7.egg/teamspeak3/", line 44, in write_command
    self.write("%s\n" % command.output)
  File "/usr/local/lib/python2.7/dist-packages/teamspeak3-1.4.3-py2.7.egg/teamspeak3/", line 165, in output
  File "/usr/local/lib/python2.7/dist-packages/teamspeak3-1.4.3-py2.7.egg/teamspeak3/", line 90, in _clean_outgoing_value
    return self._substitute_using_dictionary(self.FROM_PYTHON, value)
  File "/usr/local/lib/python2.7/dist-packages/teamspeak3-1.4.3-py2.7.egg/teamspeak3/", line 84, in _substitute_using_dictionary
    return re.sub(pattern, lambda k: dictionary[], text)
  File "/usr/lib/python2.7/", line 151, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or buffer

BTW, how can I send command with parametrs like -something, or just like 'use #'

Comments (2)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.