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

Torsten Bronger bronger at physik.rwth-aachen.de
Sat Sep 5 15:58:05 UTC 2015


Public bug reported:

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

** Project changed: python-memcached => python-memcache (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-memcache in Ubuntu.
https://bugs.launchpad.net/bugs/1492604

Title:
  python3-memcached uses invalid string handling

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-memcache/+bug/1492604/+subscriptions



More information about the Ubuntu-server-bugs mailing list