Skip to content

Python 3 Exception: Type str doesn't support the buffer API #2

@itbabu

Description

@itbabu

Hi,
I just tested django-memcache-admin with the python 3 branch of pylibmc:
https://github.com/lericson/pylibmc/tree/py3k

I had this error:

    Environment:

    Traceback:
    File "/home/marco/.virtualenvs/TEST/lib/python3.3/site-packages/django/core/handlers/base.py" in get_response
      113.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File "/home/marco/.virtualenvs/TEST/lib/python3.3/site-packages/django/utils/decorators.py" in _wrapped_view
      105.                     response = view_func(request, *args, **kwargs)
    File "/home/marco/.virtualenvs/TEST/lib/python3.3/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
      52.         response = view_func(request, *args, **kwargs)
    File "/home/marco/.virtualenvs/TEST/lib/python3.3/site-packages/django/contrib/admin/sites.py" in inner
      204.             return view(request, *args, **kwargs)
    File "/home/marco/.virtualenvs/TEST/lib/python3.3/site-packages/memcache_admin/views.py" in dashboard
      92.     cache_stats = _get_cache_stats()
    File "/home/marco/.virtualenvs/TEST/lib/python3.3/site-packages/memcache_admin/views.py" in _get_cache_stats
      41.         svr_info = svr[0].split(' ')

    Exception Type: TypeError at /admin/memcache_admin/dashboard/
    Exception Value: Type str doesn't support the buffer API

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions