PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Tuesday the 14th of October, 2014

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[10:50:06] <mr_charlatan2> using pip or easy_install behind a proxy .. im getting wget to work with http_proxy variable export https_proxy= wget https://pypi.python.org/simple/
[10:50:18] <mr_charlatan2> Download error on https://pypi.python.org/simple/: [Errno 1] _ssl.c:492: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol -- Some packages may not be found!
[10:50:27] <mr_charlatan2> thats what i get with easy_install ..
[10:50:41] <mr_charlatan2> now using pip also fails with --proxy ..
[10:51:30] <mr_charlatan2> so my proxy works .. however when using easy_install i can see NONE/400 3668 NONE error:invalid-request - NONE/- text/html
[10:52:13] <mr_charlatan2> so i reccon it tries to use ssl against the proxy .. however the proxy itself only works with http _to_ it .. on the inside ..
[10:52:47] <mr_charlatan2> so how can i solve that ???
[13:08:39] <avi___> hi guys, I have installed some packages with pip --user install... now I want list those... pip freeze gives list of all the packages... i thought I could try pip freeze --user, but thats not really possible. So how do I go about it?
[13:11:03] <avi___> so basically I want all the --user installs and not system installs
[13:17:48] <xafer> avi___, --local doesnt work ?
[13:18:49] <xafer> oh you're outside a venv ?
[13:19:32] <avi___> xafer yup
[13:19:38] <avi___> outside virtualenv
[13:24:01] <xafer> avi___, I dont think there are direct commands giving you what you need
[13:24:10] <xafer> maybe via a simple script:
[13:24:12] <xafer> for module in pkg_resources.working_set:
[13:24:12] <xafer> print module.project_name, module.location
[13:24:18] <xafer> and greping on the location
[13:24:27] <avi___> ohh :|
[13:24:44] <mgedmin> file a pip wishlist bug perhaps?
[13:25:03] <DanielHolth> you could just list all the *.*-info dirs in the local installs directory
[13:26:01] <avi___> mgedmin will do!
[13:26:18] <avi___> DanielHolth that wiill be same as --local right?
[13:27:19] <DanielHolth> ls -d ~/.local/lib/python2.7/site-packages/*.*-info
[13:27:47] <DanielHolth> each of those signifies an installed package
[13:28:04] <avi___> and then there is .local/bin too
[13:28:22] <avi___> so I have to check both I guess
[13:30:18] <avi___> xafer I guess pkg_resources.working_set also includes packages installed via apt-get...how do I identify those
[13:30:35] <xafer> via module.location ?
[13:31:31] <DanielHolth> it's also possible to get pkg_resources to look only at a particular directory
[13:31:55] <DanielHolth> seems like a lot of trouble though
[13:32:10] <DanielHolth> you can instantiate the same kind of object as working_set but from a single dir
[13:32:43] <avi___> xafer how?
[13:34:06] <xafer> well you check where pip install --user put its packages :p
[13:34:25] <avi___> ha ha
[13:34:28] <avi___> will do
[13:34:31] <avi___> let me check
[13:35:03] <mgedmin> DanielHolth already told you that: ~/.local/lib/python$VER/site-packages
[13:36:48] <avi___> yes, but I am trying to find out where do packages via apt gets stores
[13:36:50] <avi___> stored
[13:40:23] <mgedmin> /usr/lib/python$VER/dist-packages
[13:40:46] <avi___> just confirmed
[13:40:51] <avi___> thank you mgedin
[13:40:59] <avi___> installed pyudev /usr/lib/python2.7/dist-packages
[13:45:07] <avi___> so, just doing string search of username will do? http://dpaste.com/0Y9MKVX
[13:46:18] <xafer> should work for 99% I guess
[13:46:21] <avi___> DanielHolth I ran the same ls -d ~/.local/lib/python2.7/site-packages/*.*-info gives me correct output as my code script
[13:50:25] <avi___> xafer thanks for confirmed xafer
[13:50:32] <avi___> submitted feature request now
[13:51:17] <straycat> Hi, I'm new to setuptools, when I run python setup.py --requires I'd expect to see the contents of install_requires but instead it just outputs a single newline. I can't find anything useful in the documentation either. :/
[13:57:03] <avi___> starting the issue with, 'Proposal' should do I guess?
[13:57:55] <mgedmin> straycat, requires is an old misfeature of distutils/setuptools that is different from install_requires
[13:58:02] <avi___> Proposal: Add --user option to freeze, so that it lists all the pip --user install
[13:58:29] <straycat> mgedmin, Oh I see, okay thanks :)
[14:00:11] <avi___> https://github.com/pypa/pip/issues/2092
[14:00:38] <mgedmin> apparently there's no setup.py --install-requires *waaaaah*
[14:03:02] <avi___> mgedmin can you review it
[14:03:05] <avi___> and also xafer
[14:03:14] <avi___> please let me know if I have to make any changes
[14:03:45] <mgedmin> commented
[14:04:35] <avi___> ha ha its okay
[14:05:12] <avi___> m not a native english speaker, so I wanted you guys to check if I have made any mistakes or was I successful to convey my idea
[14:05:41] <mgedmin> seemed clear enough more or less
[14:07:52] <avi___> okay (:
[14:33:08] <straycat> mgedmin, Indeed :/
[14:53:06] <pf_moore> avi___ I just knocked up a PR for that request. Would you be able to check if it works?
[14:53:23] <avi___> i can run tests
[14:53:29] <avi___> give me a sec
[14:53:39] <avi___> and you know what, I was working on the PR :P
[14:53:46] <avi___> but you beat me :P
[14:53:58] <pf_moore> :-)
[14:54:22] <pf_moore> I saw your comment here, was bored, and it looked pretty easy. Sorry about that ;-)
[14:55:02] <avi___> ha ha its okay (:
[15:01:59] <pf_moore> avi___: couple of stupid typos, uploading a new version now...
[15:05:33] <mgedmin> pf_moore, re: testing -- changing os.environ['HOME'] might help perhaps?
[15:20:18] <avi__> pf_moore why its failing on travis
[15:21:09] <pf_moore> avi__ dumb typos, there's an updated PR which is going through travis now
[15:21:16] <avi__> yup
[15:21:24] <avi__> https://travis-ci.org/pypa/pip/jobs/37947176
[15:21:26] <avi__> checking now
[15:21:50] <avi__> anyways your code is clean... and I don't think I would submitted such nice PR
[15:22:03] <avi__> cos I still don't know much of PIP internals
[15:22:13] <pf_moore> mgedmin might be just that, but Windows uses a different env var (one of the APPDATA ones) and I want to get the incantation right :-)
[15:23:06] <mgedmin> oh, right, windows
[16:04:06] <jwhite007> i know that i can install a local package with "pip install -e /path/to/local/package". what syntax should i use to do the same thing from a requirements file?
[16:04:34] <dstufft> -e /path/to/local/package
[16:05:48] <jwhite007> dstuff: once installed, will "pip freeze > requirements.txt" add that line to the requirements file?
[16:16:39] <avi__> pf_moore build passed
[16:20:16] <dstufft> jwhite007: no
[16:21:03] <jwhite007> dstufft: thanks for your answers.
[16:46:02] <pf_moore> avi___ thanks - let me know how it goes for you in your environment
[16:50:10] <avi__> but have you added test cases?