[17:49:54] <Wooble> Is it wrong for me to completely judge a module by the fact its docs suggest using sudo pip to install it? :)
[18:32:26] <ionelmc> Wooble: does ability to produce quality code correlate with ability to produce quality package, or meet specific packaging practices for that matter?
[20:44:43] <preyalone> 500 fix confirmed. it's just a name conflict in my case.
[22:09:48] <cmyers> greetings all - because reasons, I need to build a 32-bit python in a 64-bit docker container. python 2.6.1 specifically. I've done this, and after much gnashing of teeth, I have a python install with easy_install and pip. but it seems broken.
[22:10:05] <cmyers> When I try to pip install things, I get a crazy error. full stack trace here: http://paste.pound-python.org/show/vXhofD0xpChuTxy83LB4/
[22:10:37] <cmyers> short version is warnings about InsecurePlatformWarning: followed by stacktrace ending in "TypeError: unsupported operand type(s) for &: 'NoneType' and 'int'
[22:10:50] <cmyers> all of it comes from pip-7.1.0-py2.6.egg
[22:24:18] <ronny> cmyers: i suspect your python is built without threading support?
[22:24:37] <ronny> cmyers: also why did you install pip as a egg?
[22:29:20] <cmyers> ronny: I have no idea why I installed pip as an egg. I just did /build/.../path/to/python ./ez_setup.py && /path/to/easy_install pip
[22:29:30] <cmyers> if there is a better / more correct way to have pip installed, I can try that
[22:30:12] <ronny> cmyers: usually the most sane way is get_pip.py on older python
[22:30:19] <ronny> (it will install pip as wheel then)
[22:30:37] <cmyers> cool, does get_pip.py come with python then? *goes to look*
[22:34:44] <cmyers> re-running my docker build now. ah, the joys of timetravel.
[22:35:11] <cmyers> ok, so now invokeing /path/to/python get-pip.py causes that error I pastebin'd
[22:35:26] <cmyers> so further evidence, perhaps, that my python is build wrongly?
[22:35:36] <ronny> cmyers: do you have threading enabled?
[22:35:55] <cmyers> does that not happen by default? if not, tell me what arg to add to the ./configure script and I'll shove it in
[22:36:15] <cmyers> my current configure line is: CFLAGS="-m32" LDFLAGS="-m32" EXTRA_CFLAGS="-m32" OPT="-m32" ./configure --prefix=/build/toolchain/lin32/python-2.6.1 --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --enable-unicode=ucs4 --with-ssl
[22:36:37] <cmyers> don't even get me started about the -m32's all over the place
[22:40:33] <cmyers> /build/toolchain/lin32/python-2.6.1/bin/python -m threading => works
[22:40:45] <cmyers> so I think my python is built with threading support
[22:50:38] <cmyers> ok, having read the comments in get-pip.py, I can now confidently say the issue is pip is exploding when run under the python I built, and the nearby warning implies it is SSL related
[22:50:59] <cmyers> I am passing the configure script --with-ssl and the system ssl is openssl-1.0.1e
[23:07:33] <cmyers> ugh, this is so frustrating, nothing works
[23:07:44] <cmyers> flashback to the perl 5.6.0 days
[23:09:29] <cmyers> pip 7.1.0 is the newest version...is it really compatible with both new python and old python?
[23:18:18] <cmyers> the entire stacktrace occurs in pip.zip, the embedded copy of pip in get-pip.py
[23:18:53] <cmyers> so this version of pip seems incompatible with this version of python (which I compiled from python 2.6.1 src with some crazy configure flags but otherwise unaltered)
[23:19:19] <tdsmith> this looks like a known issue in lockfile; this bug report https://code.google.com/p/pylockfile/issues/detail?id=8 blames this bug in python 2.6 https://bugs.python.org/issue5632
[23:19:43] <cmyers> ooh, that sounds useful *reads*
[23:20:34] <tdsmith> hmhmmhmm and lockfile's been assimilated by openstack
[23:20:39] <cmyers> says downgrading fixed it... but we would need to downgrade the version of lockfile bundled in the zip?
[23:21:13] <cmyers> for incredibly stupid reasons, I need actual python 2.6.1 not 2.6.X whereX>1
[23:21:32] <cmyers> although /me is about to go murder someone over that...
[23:22:40] <tdsmith> i think ideally you convince the openstack team to accept a patch and release it, and then pip vendors the new version, but i don't actually work on pip
[23:23:26] <tdsmith> some relevant information at https://github.com/smontanaro/pylockfile
[23:25:00] <cmyers> so the "right thing" to do here might be to add special case code to pylockfile so in the case where python version is old enough to have this bug, it still handles it correctly?
[23:25:10] <cmyers> and hope that openstack folks will accept that
[23:25:26] <cmyers> and get the pip guys then to roll a new get-pip.py with that new dep in there.