Gentoo Archives: gentoo-user

From: Daniel Quinn <gentoo@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] ujson in a virtualenv explodes with undefined symbol: Buffer_AppendShortHexUnchecked
Date: Fri, 08 Jan 2016 13:43:37
1 I'm hoping someone can explain what's going on to me here.
3 I had a perfectly reasonable dev environment for months, and then one
4 day, I upgrade ujson in that virtualenv and it explodes with this:
6 ImportError:
7 /home/daniel/.virtualenvs/myvenv/lib/python2.7/site-packages/
8 undefined symbol: Buffer_AppendShortHexUnchecked
10 Assuming it was just the update, forced a downgrade from 1.34 to 1.33.
11 The error is still there. In fact, no matter what version I install
12 now, even to go so far back as 1.4, the same error comes up.
14 Now, knowing that the error doesn't happen on other machines at these
15 versions, and knowing that even on this machine it was working fine
16 until this afternoon, I have to assume that it has to do with the host
17 system and not the virtualenv. Indeed, the steps to produce this
18 problem are:
20 virtualenv myvenv
21 . myvenv/bin/activate
22 pip install ujson
23 python -c 'import ujson'
25 Interestingly, ujson works just fine *outside of a virtualenv*. As in,
26 if I install it with `emerge dev-python/ujson` it works just fine. It's
27 the existence within a virtualenv that appears to be the problem. I did
28 run an update recently that updated dev-python/setuptools, but
29 downgrading that from 19.2 to 19.1.1 doesn't appear to fix the problem
30 either. Also, reinstall virtualenv (just for kicks) didn't fix things.
32 I'm really at a loss here and I'd like to get some work done today. Any
33 suggestions?