PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Tuesday the 24th of June, 2014

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[08:12:20] <jax> what's up with this new allow-external and allow-unverified..
[08:12:27] <jax> i can't install requirements from a reqs.txt anymore
[08:12:36] <jax> without installing all packages manually
[08:46:27] <apollo13> jax: show your requirements
[08:52:13] <jax> apollo13: http://dpaste.com/0NK4BSC
[08:52:24] <apollo13> jax: and which does it fail to install?
[08:52:32] <jax> it is django-admin-tools causing the problem. i know i can add —allow-external etc before the entry, but the problem is, that pip freeze won't put it back in if i change something
[08:52:42] <jax> apparently it is "unverified"
[08:52:55] <apollo13> than add --allow-unverified django-admin-tools
[08:53:06] <apollo13> and the line below django-admin-tools again
[08:53:15] <jax> pip freeze won't put that in though if i install something new, right?
[08:53:23] <apollo13> certainly not
[08:53:31] <apollo13> pip doesn't know that it was unverified at that point
[08:53:39] <jax> yeah so why can't i just provide —allow-all-unverified to pip install -r reqs.txt
[08:53:53] <jax> like i can --allow-all-external
[08:54:22] <apollo13> dunno, if it were for me I'd complain at django-admin-tools to get their stuff together, but that's just me I guess
[10:47:33] <dzen> mh, I've got an issue with the InstallRequirement class (pip)
[10:47:53] <dzen> ipdb> subreq.egg_info_path('PKG-INFO')
[10:47:53] <dzen> *** AttributeError: 'NoneType' object has no attribute 'endswith'
[10:48:55] <dzen> the code looks for a pip-egg-info directory, which does not exist in six's package
[10:49:51] <dzen> mh, _egg_info_path is not set
[15:22:56] <iandees> hi all, i'm working on a little script to figure out the license for all the projects in my requirements.txt file. is there a way to do this from within python using existing pip/pypi code?
[15:38:11] <kibad> hi all
[15:38:29] <kibad> is there a fix/workaround for this bug https://github.com/pypa/pip/issues/1805
[15:39:04] <dstufft> kibad: Not that i'm aware of, I'm not even sure what would be causing that issue yet tbh
[15:39:36] <kibad> :( dstufft this isssue is reproducable each time in my case
[15:39:47] <kibad> I have proxy set and behind corporate
[15:39:59] <dstufft> kibad: is it something in your install_requires, or is it something inside of a setup_requires
[15:42:42] <dstufft> kibad: also can you see if you can reproduce with the in development version of pip?
[15:44:27] <kibad_> sorry
[15:44:32] <kibad_> got disconnected
[15:44:42] <dstufft> no problem :)
[15:44:46] <dstufft> kibad: also can you see if you can reproduce with the in development version of pip?
[15:44:49] <kibad_> I wonder how my user is taken unable to login by actual name
[15:45:20] <kibad_> so you were asking about install_requires or setup_requires
[15:45:38] <kibad_> I'm trying to setup venv for testing purpose
[15:45:50] <kibad_> how can I get the dev version?
[15:45:59] <dstufft> stuff in a setup_requires doesn't get installed by pip, it getsinstalled by setuptools so it doesn't get proxy stuff
[15:46:12] <dstufft> pip install git+https://github.com/pypa/pip.git@develop
[15:53:25] <phschwartz> What is the best way to generate a dependency list for a project. I want to basically generate a list that will list all dependencies including dependencies of dependencies.
[15:54:22] <dstufft> phschwartz: you're probably going to be real sad at the answer
[15:54:34] <dstufft> phschwartz: as far as I know the answer is "install everything and then pip freeze the results"
[15:55:29] <phschwartz> dstufft: That is what I was hoping the answer wasn't.
[15:55:30] <phschwartz> lol
[15:57:31] <phschwartz> Is there a way via pip to pull the meta info from the sdist without downloading it, or is downloading 100% the only way
[15:58:03] <dstufft> downloading is the only way
[15:58:46] <tomprince> pip wheel will download, and show all the information (but not in an easy to consume way.
[15:59:36] <phschwartz> tomprince: I don't mind a hard to consume format if I am able to build a list that I can override items in with things from local repos if I need to. (As that is the goal).
[16:00:59] <tomprince> The cuurent best solution is to build a page with links to all the packages (they can be git+https links even), that you pass to --find-links. (Likely with --no-index)
[16:01:50] <phschwartz> tomprince: how exactly does that work? I have not seen --find-links before
[16:06:26] <phschwartz> Ok, from what I see that might help. Is it possible to have it follow find-links > index for installs so we can still have it install deps for something we find with find-links from the cheeseshop?
[16:08:51] <tomprince> Sure.
[16:13:04] <DanielHolth> the thing about pip wheel is that instead of a list, you get a folder with all the dependencies as installable archives
[16:13:25] <kibad_> dstufft: where /usr/bin/pip be pointing to?
[16:23:32] <phschwartz> tomprince: I created an html page with a git+https link and it doesn't appear to find the package. Do you know of any examples using it that I can look at?
[16:24:07] <tomprince> You need to specify #egg I think.
[16:24:16] <tomprince> dstufft is the one who discoved that that worked, I think.
[16:24:45] <phschwartz> tomprince: I used git+https://github.com/klmitch/framer.git#egg=framer
[16:24:53] <phschwartz> dstufft: Have yo used it before?
[16:24:59] <phschwartz> *you
[16:25:36] <dstufft> pip install --no-index --find-links https://rawgit.com/dstufft/ffc99ab66129e01043ff/raw/e5491634851658c59c116196f80d279ccc4e5399/git-index.html packaging
[16:25:44] <dstufft> https://gist.github.com/dstufft/ffc99ab66129e01043ff
[16:28:17] <phschwartz> dstufft: Looks like you need the version you want in the egg= which I did not have. :) ty, that worked.
[16:29:32] <phschwartz> dstufft: hmm, actually. if I remove the no-index I was using so it can find the deps that go with the module form pypi, it downloads the module from pypi also instead of git.
[16:29:43] <phschwartz> Is there a way to force it to use the link if it is there.
[16:32:35] <dstufft> phschwartz: I think you'd need to use a requirements.txt file for that
[16:40:04] <kibad_> dstufft: still the behavior is same :(
[16:40:25] <kibad_> Timeout: (<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x29a8210>, 'Connection to pypi.python.org timed out. (connect timeout=15)') is final error
[16:40:29] <kibad_> here is the log
[16:41:30] <kibad_> https://dpaste.de/Tjm3
[16:43:15] <dstufft> kibad_: how are you configuring your proxy, is it with --proxy?
[16:44:23] <kibad> hi
[16:44:29] <kibad> got disconnected again
[16:44:37] <kibad> I've configred proxy in bashrc
[16:44:47] <kibad> should I mention it explicitly for pip?
[16:45:09] <kibad> I mean I'm running tox
[16:45:22] <kibad> which is internally installing packages using pip
[16:47:08] <dstufft> kibad: no it's fine, i'm creating a script to reproduce
[16:47:18] <dstufft> kibad: so you have http_proxy and https_proxy envvars set?
[16:47:39] <kibad> yes I do have both
[16:50:35] <dstufft> kibad: can you ``pip install requests`` and then run this script and tell me if it fails? https://gist.github.com/dstufft/cea64511ef6bcbed164c
[16:55:14] <kibad> dstufft: failed after 51
[16:55:16] <kibad> https://dpaste.de/doVg/raw
[16:55:24] <dstufft> kibad: thanks
[16:55:27] <dstufft> this is a requests bug then
[16:55:40] <kibad> oh
[16:56:01] <dstufft> I'll file a bug report
[16:56:01] <kibad> how should I proceed then?
[16:56:27] <kibad> ok thats great
[16:56:43] <kibad> can I be in loop?
[16:57:15] <kibad> or someway for me to know about status?
[16:57:23] <dstufft> kibad: yea moment
[16:57:28] <dstufft> kibad: what verison of requests did you use, 2.3.0?
[16:57:29] <kibad> sure
[16:57:45] <kibad> yes
[17:00:12] <dstufft> kibad: https://github.com/kennethreitz/requests/issues/2110
[17:00:31] <dstufft> kibad: btw the requests channel is #python-requests
[17:00:53] <kibad> thanks lot dstufft
[17:01:19] <kibad> It really helped my struggle
[17:35:46] <kibad> dstufft: also I would like to know if there is a way to allow all externals at one??
[17:36:00] <dstufft> kibad: --allow-all-external
[17:36:02] <kibad> because when I do install cryptography which is required by python-glanceclient
[17:36:12] <kibad> that flag doesn't work :(
[17:36:19] <kibad> *didnt
[17:36:36] <kibad> It used to throw error
[17:42:18] <kibad> https://dpaste.de/6muH/raw
[18:02:34] <dstufft> kibad: your problem isn't external then, it's unverified, and there's no way to allow all unverified because it's a security risk to install them
[18:03:56] <kibad> thats bad :(
[18:04:09] <kibad> thanks dstufft :)
[19:45:01] <hashar> hello pip folks. I was wondering how to point to a local package in my requirements.txt
[19:45:21] <hashar> I would like to embed a third party library and avoid folks download it (the tar ball would be provided in my tree)
[19:47:39] <hashar> bah found it
[19:47:48] <hashar> pip install --download . <whatever>
[19:48:00] <hashar> then in requirements.txt : whatever.tar.gz
[19:48:04] <hashar> you guys are awesome
[23:34:37] <mbrzuzy> Guys, would you know why I wouldn't be able to install MySQL-python?
[23:34:47] <mbrzuzy> error is clang: error: unknown argument: '-mno-fused-madd'
[23:37:32] <tos9> Because Apple.
[23:37:52] <tos9> You want ARCHFLAGS=-Wno-unused-command-line-argument-hard-error-in-future whatyouran
[23:39:56] <mbrzuzy> Thanks tos9, you're a life saver!