pylibmc is a Python client for memcached written in C.
Questions tagged [pylibmc]
24 questions
14
votes
4 answers
Can't install pylibmc by pip
I'm trying to install pylibmc on mac.
mac env is osx el capitan 10.11.2.
I tried pip install pylibmc. but I received following error.
I already installed list below.
brew install libmemcached
Command Line Tools
export CFLAGS=-Qunused-arguments …

naohide_a
- 1,116
- 2
- 13
- 30
8
votes
0 answers
Cannot install pylibmc for python on Windows 7 64 bit
I have a Windows 7 64 bit laptop and have installed memcached, but get an error when installing pylibmc through pip:
pip install pylibmc
I get the following error:
PS C:\Users\ABC> pip install pylibmc
Collecting pylibmc
Using cached…

sifar
- 1,086
- 1
- 17
- 43
4
votes
0 answers
unable to install pylibmc on windows
I am trying to install pylibmc using "pip install pylibmc" on my windows 10 machine but I am getting the following error. I need to know if there is any way to install libmemcached on windows 10 as I need to install pylibmc which requires…

Yashpal Singh
- 41
- 4
4
votes
1 answer
Disable caching on celery task
I have a celery chain that has multiple tasks, one of which is extracting a tar file and returning the JSON found within that tar file. At completion of the chain, pylibmc raises error 37 from memcached_set: SUCCESS which means that the memcached…

Duncan
- 2,550
- 2
- 17
- 18
3
votes
2 answers
Docker, pylibmc, memcached
I've project that uses memcached. So when docker trying to "pip install pylibmc", library can't find libmemcached cause it's not installed yet. How can I organise my docker-compose.yml, or maybe I have to do something with dockerfile?
Now my…

Ildar Akhmetzyanov
- 252
- 2
- 10
2
votes
1 answer
Django Sessions via Memcache: Cannot find session key manually
I recently migrated from database backed sessions to sessions stored via memcached using pylibmc.
Here is my CACHES, SESSION_CACHE_ALIAS & SESSION_ENGINE in my settings.py
CACHES = {
'default': {
'BACKEND':…

deadlock
- 7,048
- 14
- 67
- 115
2
votes
0 answers
Error when installing pylibmc using pip and Python 3
I have followed the steps and have
brew install libmemcached
echo /usr/local/Cellar/libmemcached/1.0.18_1/
-> /usr/local/Cellar/libmemcached/1.0.18_1/
pyenv versions
->
system
2.7.11
3.3.6
3.3.6/envs/p3venv
* p3venv (set by PYENV_VERSION…

Houman
- 64,245
- 87
- 278
- 460
2
votes
1 answer
memcached listeing on UDP with Django
Question: I am not able to get memcached listening on UDP, to work (get set delete) with Django.
I have the memcached listening only on UDP 11211, as I have mentioned in the previous question. What I have tried so far:
1.Setting CACHES to use…

Nabeel Ahmed
- 18,328
- 4
- 58
- 63
2
votes
1 answer
AttributeError caused by existing attribute
I sometimes get the following errors when my django app tries to get from or store something in the cache:
c = cache.get(pk)
File "/opt/python3/lib/python3.4/site-packages/django/core/cache/__init__.py", line 131, in __getattr__
return…

Bob
- 5,809
- 5
- 36
- 53
2
votes
1 answer
Dynamically add new Memcached server without restarting Django
I am planning to use django-cachalot with memcached backend for caching of queries in my project.
I have this setup on a Elastic Beanstalk, which can scale up or scale down, by adding or removing EC2 instances. Currently when memcached starts on an…

Optimus
- 2,716
- 4
- 29
- 49
1
vote
0 answers
OS X Ventura TypeError: libmemcached does not support SASL
I'm using Flask_Caching 2.0.1 in a Flask app, which uses pylibmc, which uses libmemcached 1.0.18_2 on OS X Ventura 13.0.1. Either the libmemcached that comes standard or using brew install libmemcached doesn't seem to support SASL. Here is the…

sunday_funday
- 87
- 3
- 12
1
vote
1 answer
Installing Python pylibmc on Windows fails with "Cannot open include file: 'libmemcached/memcached.h'"
I apparently need memcached to use pylibmc with Django but it keeps popping
fatal error C1083: Cannot open include file:
'libmemcached/memcached.h': No such file or directory
I saw this question and this one for Windows (among others) which don't…

NaturalBornCamper
- 3,675
- 5
- 39
- 58
1
vote
1 answer
Python pylibmc syntax / how can I use mc.set in a loop
I want to set keys in a for loop, and read them back in another script also using a loop.
To test memcache is working I made these simple scripts:
a.py
import pylibmc
mc = pylibmc.Client(["127.0.0.1"], binary=True,
behaviors={"tcp_nodelay":…

kopke
- 67
- 5
1
vote
1 answer
I can't install pylibmc in virtual enviroment with Python 3.4.0
First of all I use Ubuntu 17.10 and I downloaded previous version of python - python 3.4.0 because this older version is required in my project. I installed both memcached and libmemcached-dev and I can install without issues pylibmc in virtual env…

Przemek
- 647
- 2
- 8
- 25
1
vote
1 answer
ValueError: gets without cas behavior in pylibmc
I'm trying to use the gets and cas methods from pylibmc(v1.5.2) to interact with the memcached server. As documented, we should pass the cas token from gets to cas.
token = mc.gets("key_python_1")
mc.cas("key_python_1", "value_python_1_new",…

hackjutsu
- 8,336
- 13
- 47
- 87