PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Sunday the 5th of July, 2015

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[11:04:21] <ToM`> « pip install --upgrade ansible » --> poof, setuptools killed itself and all the pip with it. I don't know much about python and pip and things, so I dont even know how to describe the issue.
[11:04:58] <ToM`> setuptools suicide: https://paste.leloop.org/?8b118dfa3f92e778#GYdRyaK2/XIyVN/ZJHmeO3LI59UNps/k+l1Y8E6WjDU= -- pip.log: https://paste.leloop.org/?4f7aa045f5ca1c93#gqp+S452xI2/L1IrCARp+2DsqgGorndLYZaGHiQK1RU=
[11:06:12] <ToM`> Repaired with cd build/setuptools && python setup.py egg_info && python ez_setup.py
[11:21:45] <pjdelport> ToM`: "Found existing installation: distribute 0.6.24dev-r0" is a big red flag
[11:22:11] <pjdelport> distribute is the old predecessor to modern setuptools, and having it be present is probably going to lead to tears.
[11:22:43] <pjdelport> Ansible's packaging seems to be the culprit:
[11:22:43] <pjdelport> Downloading/unpacking distribute from https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip#md5=c6c59594a7b180af57af8a0cc0cf5b4a (from ansible)
[11:23:13] <pjdelport> How old is ansible 1.9.2?
[11:23:15] <ToM`> So I should report that to ansible packagers?
[11:23:22] <pjdelport> Or have they just not upgraded their packaging in years?
[11:23:27] <ToM`> Not much, it's supposed to be the stable version =)
[11:24:17] <pjdelport> Hmm, okay, it doesn't seem to be ansible direcly.
[11:24:20] <pjdelport> https://github.com/ansible/ansible/blob/devel/setup.py looks fine
[11:25:04] <pjdelport> ToM`: I think your environmment might just have a very old version of distribute still installed.
[11:25:26] <pjdelport> distributed used to do hacks to replace the old setuptools (but the new generation setuptools replaces distribute)
[11:25:34] <pjdelport> "distribute used to", even.
[11:25:44] <pjdelport> Is this a virtualenv?
[11:25:59] <ToM`> Nope - I am a naive python newbie :)
[11:26:02] <pjdelport> If so, maybe recreate it, and then uninstall distribute and install setuptools, before doing anything else.
[11:26:46] <pjdelport> Ah, okay. You might want to start by making a virtualenv to work inside of. :)
[11:27:01] <ToM`> That's lesson I learnt today, yeah :)
[11:27:25] <pjdelport> It's a pity that this is your first exposure to this, then... things in Python packaging used to be a lot worse than they are today.
[11:27:42] <pjdelport> The distribute library was just one of those transitional things, on the road to making it better.
[11:27:55] <pjdelport> What does "pip list" say for you?
[11:28:17] <ToM`> It doesn't know this command :)
[11:28:48] <pjdelport> Oh, wow, so it's *very* old.
[11:29:31] <pjdelport> Okay, so before Ansible or anything else, you probably want to get your pip and setuptools updated, and get rid of distribute and any other outdated libraries.
[11:29:36] <pjdelport> Then, things should go a lot more smoothly.
[11:29:43] <pjdelport> And should just work, for the most part.
[11:30:08] <pjdelport> Unfortunately I have to run for a bit and can't stay to help, but hopefully someone else can pick this up!
[11:30:11] <ToM`> python-pip 1.1-3 from Debian Wheezy. I installed ansible on 2015-02-20.
[11:31:00] <ToM`> So yeah, no luck I got in into this time window :)
[11:31:15] <ToM`> Thanks pjdelport!
[11:32:02] <pjdelport> ToM`: You'll probably want at least pip 6 (equivalent to 1.6 in the old versioning scheme that you have 1.1 of), and setuptools 8+
[11:32:16] <pjdelport> https://packaging.python.org/en/latest/installing.html is maybe a good starting point.
[11:33:02] <pjdelport> You probably don't want to mess with the system's copy of pip.
[11:33:36] <pjdelport> But you can create a new virtualenv, and upgrade pip and setuptools inside of it (pip install -U pip setuptools), and then just do all of your work in there.
[11:33:46] <pjdelport> Without worrying about breaking the system's old versions.
[11:35:42] <ToM`> Yeah, I dont want to ruin my sunday any more, I'll virtualenv everything and leave the junk there for an other day.
[11:35:49] <ToM`> Merci merci !