[Bug 1492604] [NEW] python3-memcached uses invalid string handling

Launchpad Bug Tracker 1492604 at bugs.launchpad.net
Tue Sep 8 14:18:20 UTC 2015


You have been subscribed to a public bug by Robie Basak (racb):

First of all: This issue seems to have been solved upstream, see
<https://github.com/linsomniac/python-memcached/pull/67>.  However, this
should be backported to the currently supported incarnations of
python3-memcache since this package is severely broken without it.

If you try to add a key to the cache, the following traceback occurs:

Traceback (most recent call last):
  ...
  File "/usr/local/lib/python3.4/dist-packages/django/core/cache/backends/memcached.py", line 80, in add
    return self._cache.add(key, value, self.get_backend_timeout(timeout))
  File "/usr/lib/python3/dist-packages/memcache.py", line 586, in add
    return self._set("add", key, val, time, min_compress_len)
  File "/usr/lib/python3/dist-packages/memcache.py", line 929, in _set
    return _unsafe_set()
  File "/usr/lib/python3/dist-packages/memcache.py", line 919, in _unsafe_set
    server.send_cmd(fullcmd)
  File "/usr/lib/python3/dist-packages/memcache.py", line 1289, in send_cmd
    self.socket.sendall(cmd + '\\r\\n')
TypeError: 'str' does not support the buffer interface

** Affects: python-memcache (Ubuntu)
     Importance: Undecided
         Status: New

-- 
python3-memcached uses invalid string handling
https://bugs.launchpad.net/bugs/1492604
You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to the bug report.



More information about the Ubuntu-server-bugs mailing list