PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Monday the 12th of May, 2014

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[15:58:58] <Ivo> very insightful
[16:00:50] <StucKman> GiLgAmEzH: its back
[16:00:55] <StucKman> it's*
[16:01:05] <StucKman> (bots have no backs)
[16:01:34] <GiLgAmEzH> StucKman: :D
[16:01:54] <GiLgAmEzH> !logs
[16:01:54] <pmxbot> http://chat-logs.dcpython.org/channel/pypa
[16:03:05] <StucKman> really, the link should be directly in the topic, I think
[16:06:38] <aclark> !m pmxbot
[16:06:38] <pmxbot> you're doing good work, pmxbot!
[16:15:05] <marianoguerra> hi! someone has an answer for my question?
[16:15:21] <marianoguerra> will repeat it just in case (sorry for the repetition)
[16:15:34] <marianoguerra> when installing with pip install -t it installs to the suplied directory but if available system wide it tried to uninstall it and fails if I don't have permissions
[16:15:36] <aclark> marianoguerra: if you didn't get an answer, probably not
[16:16:11] <marianoguerra> aclark: I can imagine that, but maybe some people in other timezone will see it now
[16:16:17] <aclark> marianoguerra: maybe try stack overflow… or server fault
[16:16:45] <marianoguerra> isn't this more specific?
[16:23:30] <aclark> dstufft: ping
[16:24:55] <dstufft> [Arfrever]: pong
[16:24:57] <dstufft> er
[16:24:58] <dstufft> aclark:
[16:25:01] <dstufft> stupid tab complete
[16:25:32] <Ivo> marianoguerra: tried -I as well?
[16:25:37] <aclark> dstufft: heh
[16:26:05] <Arfrever> How can "[" complete for "a"?
[16:26:28] <dstufft> ~smart completion~
[16:26:30] <dstufft> or somehing
[16:26:32] <Ivo> Arfrever: a completes for [a
[16:26:37] <aclark> dstufft: can you add trove classifiers? This ticket was closed for not-a-very-good-reason IMHO: http://sourceforge.net/p/pypi/support-requests/366/. We are gearing up for a Plone 5 release and are definitely going to need and user a "Framework :: Plone :: 5.0" classifier sooner rather than later
[16:26:37] <dstufft> feels more like dumb completion
[16:26:45] <Ivo> also IRC has some crazy letter equivalence rules
[16:26:48] <aclark> s/need and user/need and use/
[16:27:40] <Arfrever> "[..." should not complete for "a<TAB>".
[16:27:53] <Ivo> aclark: why is Richard's reasoning not very good?
[16:27:56] <aclark> dstufft: alpha is out, i guess i could start releasing add-ons for 5.0 if I had to…
[16:28:12] <aclark> Ivo: because it's chicken/egg reasoning
[16:28:33] <Ivo> i don't think so
[16:28:46] <aclark> mmmkay
[16:29:00] <aclark> Ivo: I mean, seriously? Do you have to ask? :-)
[16:29:02] <Ivo> you add plone 5 packages that are marked as Framework :: Plone and then point to them and say look here! THese could be more sepcific!
[16:29:10] <aclark> Can we find less important things to discuss? :-)
[16:29:38] <dstufft> aclark: uhh, well i'm not very likely to overrule Richard. I can poke him later today when he's awake about it
[16:29:46] <aclark> dstufft: np, i'll send him an email
[16:29:48] <aclark> thanks
[16:30:01] <dstufft> I hate the stupid troves
[16:30:02] <Ivo> can you comment on closed SF issues?
[16:30:26] <dstufft> I think so
[16:30:29] <dstufft> I also hate the SF tracker
[16:30:29] <aclark> dstufft: why do you hate the troves? got a replacement?
[16:30:39] <aclark> +1000, that thing is… yeah.
[16:30:49] <Ivo> like, a keyword cloud
[16:30:54] <Ivo> that you can search for
[16:31:12] <dstufft> aclark: like 95% of the troves don't really matter
[16:31:34] <Ivo> aclark: do you have 5 plone 5.0 packages on pypi?
[16:31:40] <aclark> Here's my thing: If a known-good community asks for a classifier and that classifier is not controversial, give it to them.
[16:31:43] <aclark> Ivo: ^
[16:31:59] <dstufft> I don't really care one way or the other about adding another classifier
[16:32:05] <aclark> Exactly
[16:32:19] <dstufft> I know like
[16:32:22] <dstufft> almost zero about plone
[16:32:24] <Ivo> but overrulling other people isn't very nice unfortunately
[16:32:33] <Ivo> especially when they are the designated administrator
[16:32:37] <dstufft> do you really need a different classifier for each point release?
[16:32:59] <dstufft> like is a 4.2 addon unlikely to work with a 4.3 addon?
[16:33:09] <dstufft> I'm not saying you can't have one or anything fwiw
[16:33:14] <aclark> :-)
[16:33:19] <dstufft> i'm just surprised that there is a classifier for point releases
[16:34:11] <marianoguerra> Ivo: will try
[16:34:26] <dstufft> but yea, most of the troves are pointless, and the ones that aren't pointless would be better served by a more structured field
[16:34:29] <aclark> dstufft: not point, that would be 5.0.1. we have them for every major release
[16:35:02] <DanielHolth> a treasure trove of classifiers
[16:35:28] <dstufft> aclark: ok so teminology aside :) Is something written for plone 4.2 unlikely to work with 4.3?
[16:35:28] <Ivo> come to think of it its a pity we don't have a separate field for specifying what version of python something hopes to be compatible with
[16:35:35] <dstufft> Ivo: we will!
[16:35:45] <Ivo> dstufft: in sdists?
[16:35:53] <dstufft> sdist 2.0
[16:35:55] <dstufft> will have that
[16:35:56] <Ivo> lolz
[16:35:57] <dstufft> :D
[16:36:09] <Ivo> omg
[16:36:09] <dstufft> sdist 1.0 sucks I want to forget it even exists
[16:36:39] <Ivo> sdist 2.0 should not be allowed to specify metadata dynamically
[16:36:44] <dstufft> aclark: also the side of my face hurts becuase I had a root canal today so I'm probably grumpier than normal
[16:37:34] <marianoguerra> Ivo: doing sudo pip install jinja2 and then pip install -I -t ./lib jinja2 gives:
[16:37:35] <marianoguerra> OSError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/Jinja2-2.7.2-py2.7.egg-info/not-zip-safe'
[16:37:59] <aclark> dstufft: np, hope you feel better!
[16:38:16] <Ivo> dstufft: what drugz are you on
[16:38:50] <dstufft> Ivo: nothing other than the novacaine or w/e the hell they shoot into your mouth now adays
[16:40:11] <Ivo> just looking at https://en.wikipedia.org/wiki/File:Root_Canal_Illustration_Molar.svg looks painful
[16:40:41] <Ivo> marianoguerra: that's kinda weird. is there a reason you don't like virtualenv's?
[16:45:56] <marianoguerra> Ivo: I think it's simpler to just install the deps inside a folder for each project and then set the path
[16:46:53] <Ivo> marianoguerra: virtualenv is simpler than the troubles you're running into now!
[16:47:25] <marianoguerra> Ivo: but even if I use virtualenv, that option doesn't work
[16:47:32] <marianoguerra> --user doesn't seem to work either
[16:47:48] <Ivo> marianoguerra: with virtualenv you won't need to worry about specifying a folder or setting a path
[16:49:14] <marianoguerra> Ivo: I just want to know if that is a bug or not, it looks to me, if not I would like to know what's the expected behaviour of the -t option
[16:49:36] <aclark> dstufft: more to the point, i requested the existing classifiers which MvL created for me and 4.3 did not even exist at the time. I think Richard is just inadvertently coming out of left field with a reasonable-policy that doesn't really apply to us.
[16:49:59] <marianoguerra> mainly because I've seen also it trying to uninstall the systemwide version of the same package if I try to install it somewhere with -t
[16:52:45] <Ivo> marianoguerra: could be a bug
[16:54:40] <marianoguerra> given the description here: https://pip.pypa.io/en/latest/reference/pip_install.html#cmdoption-t I would expect to do just that and nothing more
[16:54:51] <marianoguerra> should I open an issue? at least to clarify what it does
[16:59:08] <Ivo> marianoguerra: feel free to
[17:15:35] <dstufft> aclark: to be clear, I don't really see a point in having versioned classifiers like that unless there was a big compatability break (ala Python2 / Python3) that makes them essentially different things.... but I also don't see a point in not giving a 5.0 one if there are already other versions
[17:19:15] <aclark> dstufft: yep
[17:21:44] <dstufft> aclark: we do generally have a policy that requires that classifiers will have some level of use before we add them (or else every one will try to get a classifier for their project), I just don't really know that I'd bother trying to enforce hat here since there are already classifiers for it.. unless we have reason to believe that plone 5.0 sucks and nobody is going to use it, which i'm guessing isn't the case ;)
[17:24:46] <aclark> dstufft: no reason to enforce that here IMHO, this is just a routine follow up to a request i made years ago. only diff is it didn't come directly from me this time and was roundly rejected :-)
[17:27:23] <DanielHolth> Plone 5 is alive
[17:31:17] <GiLgAmEzH> Hi all! i'm creating a venv with create() https://docs.python.org/3/library/venv.html#venv.EnvBuilder.create Is possible activate it from the same .py where i'm creating the venv
[17:32:09] <GiLgAmEzH> ?
[17:35:05] <dstufft> GiLgAmEzH: we didn' develop the venv module, and I dunno how to activate it
[17:36:08] <Ivo> GiLgAmEzH: to my knowledge people haven't tried to explicitly make that possible yet. you can see even the example uses Popen to run things in the new env
[17:37:35] <GiLgAmEzH> dstufft Ivo thanks. And it's possible with virtualenv?
[17:38:05] <Ivo> virtualenv has activate_this.py but i don't think it works completely
[17:38:10] <Ivo> people ahve complained about it before
[17:39:31] <GiLgAmEzH> Ivo: ok. thanks!
[20:31:42] <adamcunnington> Hi, can anyone help with this beautifulsoup4 installation error? http://paste.ubuntu.com/7449722/
[20:42:44] <marianoguerra> adamcunnington: what command did you use to install?
[22:43:45] <Ivo> dhellmann: had you run into troubles with namespace packages & editable installs with pip in openstack?
[22:45:40] <dstufft> dhellmann: I pointed Ivo at you :) I recall oslo was having problems with namespace packages and I think Ivo is trying to understand them and see if maybe the general problem can be fixed
[22:46:15] <dstufft> There's a good chance responses will be delayed or lost though fwiw Ivo , there's a really high chance dhellmann is in atlanta ATM at the openstack summit :)
[22:46:17] <Ivo> ...well first I want to know what the general problem *is*... but that too
[22:46:31] <Ivo> dstufft: are you there or remotely?
[22:46:45] <dstufft> I'm not there
[22:47:09] <dstufft> I'm at home like normal
[22:48:00] <Ivo> dstufft: seems like you need a solid bout of PD time :)
[22:48:36] <dstufft> PD?
[22:48:44] <Ivo> professional development
[22:49:27] <dstufft> ah
[22:49:44] <dstufft> Instead of going to the summit I'm writing a PEP and getting high on painkillers
[22:50:02] <Ivo> e.g. my dad's employer will allow him to negotiate for discounts on any conferences and courses and such that make him an awesomer employee
[22:50:18] <dstufft> yea rackspace will pay my way for conferences
[22:50:21] <dstufft> and what not
[22:50:41] <dstufft> I have family medical and legal stuff that makes the logistics of that hard
[22:51:23] <Ivo> ahh... such is life :(
[22:52:44] <elarson> Ivo: were asking about namespace packages and pip b/c you had issues?
[22:53:04] <Ivo> elarson: no, because I want to find out exactly what they are
[22:53:10] <elarson> ah ok
[22:53:20] <dstufft> Ivo: I poked #openstack-infra
[22:53:29] <dstufft> I hang out there and they tell me when things break
[22:53:37] <dstufft> there might be a better openstack channel for that idk
[22:53:55] <dstufft> I'm going to guess there won't be much response this week :)
[22:54:28] <elarson> Ivo: we use them at work and have had an issue where projects in the same namespace as the project I'm working on need to be installed manually
[22:54:57] <dstufft> oh
[22:55:01] <dstufft> I found this though Ivo
[22:55:01] <dstufft> http://lists.openstack.org/pipermail/openstack-dev/2014-April/032073.html
[22:55:08] <dstufft> I forgot there was a ML post about it
[22:55:15] <Ivo> elarson: any reproducable thing I could do?
[22:55:16] <elarson> for example, I'm working on a project foo and have a foo.client package and foo.utils
[22:55:57] <elarson> I use a dev_requirements.txt that has -e . (for project foo) and then has foo.client==0.3 and foo.utils==1.2
[22:56:08] <elarson> I can install that and things work as expected
[22:56:11] <elarson> but!
[22:56:39] <elarson> when I try to install foo.client to work on some code within the context of the foo package, it doesn't work as expected
[22:57:49] <elarson> there ends up being a foo directory in my venv's site packages that ends up stealing the namespace
[22:58:03] <elarson> I can have foo.client and foo.utils, but then foo is missing
[22:58:21] <elarson> my resolution ends up being to remove any foo packages and install them all manually as editable
[22:58:37] <elarson> this doesn't happen when I use raw setuptools
[22:59:41] <mugwump> I don't think that python packages can work like that
[22:59:54] <mugwump> unless you actually install the sub-modules into the same location
[23:00:27] <mugwump> that was the conclusion I came to when I tried to break up a package into separate distributions before, anyway
[23:01:11] <elarson> mugwump: well that is what pip does (if I understand it correctly). it installs the package by unzipping the package vs. what setuptools does by default by referencing the egg
[23:01:43] <elarson> <-- not an expert
[23:02:56] <elarson> all that said, if there is something related to namespace package that ever needs testing, feel free to ping me to try things out.
[23:03:08] <elarson> we've got tons of'em :)
[23:03:30] <dstufft> elarson: are you able to create some fake test packages and provide steps to reproduce the problem?
[23:03:41] <elarson> dstufft: I believe I can
[23:04:02] <dstufft> I think that's what Ivo is really hoping for here, so we can at least properly understand the problem
[23:04:27] <dstufft> to figure out if it is a fundamentally unsolvable problem or if it is just an implementation problem
[23:04:33] <elarson> dstufft: cool, I'm happy to do that
[23:05:01] <dstufft> the original namespace ticket for pip predates both Ivo and myself by several years I think :)
[23:05:10] <elarson> ah ok
[23:05:10] <dstufft> and it doesn't document the root cause very well
[23:11:11] <mugwump> The thing is that once python finds the package, it stops searching sys.path
[23:11:36] <mugwump> so, this means that all the modules need to be installed in the exact same package
[23:12:43] <mugwump> I don't know of any PyPI distribution that ships in parts like this, as would be common on, say, CPAN
[23:12:51] <Ivo> elarson: after something like this, then what? http://pastie.org/9170031
[23:13:31] <elarson> Ivo: putting that together now
[23:15:14] <elarson> Ivo: so in the foo project, we'd install foo.client from a package via a requirements.txt, but not as editable yet
[23:15:40] <Ivo> pip install foo.client
[23:15:43] <elarson> I think that would be like source venv/bin/activate && cd ../foo.client && python setup.py install
[23:15:50] <elarson> right
[23:16:54] <elarson> Ivo: then when you go back to the foo package and try to import something within it (I have a run.py in my example), you get an import error
[23:17:28] <elarson> >>> import foo.run
[23:17:28] <elarson> Traceback (most recent call last):
[23:17:28] <elarson> File "<stdin>", line 1, in <module>
[23:17:28] <elarson> ImportError: No module named run
[23:18:01] <Ivo> but that shouldn't work yet though, because you haven't installed the foo package?
[23:18:29] <elarson> Ivo: sorry, I did install that into a virtualenv called 'venv' in my foo directory
[23:18:46] <Ivo> so 1. install foo.client 2. install foo ?
[23:19:02] <elarson> one sec and I'll confirm
[23:21:19] <elarson> Ivo: http://pastie.org/9170077
[23:21:43] <elarson> that xe command just finds the virtualenv in the venv directory
[23:21:55] <elarson> so xe pip install == venv/bin/pip install
[23:22:48] <elarson> back in a jiffy
[23:28:32] <elarson> ok, back for a sec, but I'm going to have to head out :/
[23:29:17] <elarson> Ivo: let me know if that makes sense. I'll try to put a script or repo together to reproduce the issue
[23:29:20] <Ivo> id just altered to http://pastie.org/9170111 was about to run it
[23:30:30] <elarson> Ivo: that initial setup.py install might need to be with --develop
[23:30:46] <elarson> since that only adds the egg-link vs. an actual directory in site-packages
[23:30:51] <elarson> but I could be wrong
[23:31:31] <elarson> anyway, I'll be back on later this evening and will check in