Jdesk / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

python-memcache-1.43 TypeError: %d format: a number is required, not str #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Everytime the cache does not contain the expected data length

What is the expected output? What do you see instead?
the python module should send an _Error exception:
Read %d bytes, expecting %d, read returned 0 length bytes
but instead, we have this one:
python_memcached-1.43-py2.6.egg/memcache.py", line 913, in recv
TypeError: %d format: a number is required, not str

What version of the product are you using? On what operating system?
not related to memcached himself. The issue comes from python-memcache-1.43

Please provide any additional information below.
to fix, I guess you should replace in line 913:
'read returned 0 length bytes' % ( len(buf), foo ))
by
'read returned 0 length bytes' % ( len(buf), rlen ))

Original issue reported on code.google.com by marc....@gmail.com on 10 Mar 2009 at 3:48

GoogleCodeExporter commented 9 years ago
Not sure which project this is, but I don't think whoever runs it checks for 
bugs here.

Original comment by dsalli...@gmail.com on 12 Mar 2009 at 3:46

GoogleCodeExporter commented 9 years ago
You're absolutely right, I have found where this module (python-memcached) was 
hiding the source code: http://bugs.launchpad.net/python-memcached/

Thanks!

Original comment by marc....@gmail.com on 12 Mar 2009 at 7:43

GoogleCodeExporter commented 9 years ago
Oh, hey, I know that one.  I've actually got a pull request into that project. 
Thanks for reminding me -- I need to make another one.  :)

Original comment by dsalli...@gmail.com on 12 Mar 2009 at 4:41