Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
itbabu opened this issue Apr 24, 2014 · 1 comment
Open

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

itbabu opened this issue Apr 24, 2014 · 1 comment

Comments

@itbabu
Copy link

itbabu commented Apr 24, 2014

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
@vstoykov
Copy link

I have the same problem with latest pylibmc 1.5.0 which already supports Python3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants