PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Thursday the 1st of September, 2016

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[13:22:29] <c1b3r> Hi everybody
[13:23:10] <c1b3r> since yesterday I'm testing the virtualenv package
[13:23:44] <c1b3r> in my localserver
[13:23:55] <c1b3r> I've installed ubuntu16.04
[13:24:14] <c1b3r> I was wondering if one of you have the next problems:
[13:25:14] <c1b3r> The directory '/home/masterbrain/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
[13:25:18] <c1b3r> The directory '/home/masterbrain/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
[13:25:41] <mgedmin> that's not a problem, that's a warning
[13:25:57] <mgedmin> it's mostly harmless
[13:25:58] <c1b3r> After checking my permissions my user and group are ok
[13:26:04] <mgedmin> are you using sudo?
[13:26:10] <c1b3r> no
[13:26:23] <mgedmin> ok, this is getting interesting
[13:26:30] <c1b3r> the thing is that after i activate the virtualenv
[13:26:54] <mgedmin> can you pastebin the command you're running, its full output, and the output of ls -ld ~ ~/.cache ~/.cache/pip ~/.cache/pip/http ?
[13:27:18] <c1b3r> I can't do pip install anypackage
[13:28:09] <c1b3r> sure drwx------ 3 masterbrain masterbrain 4096 Sep 1 06:45 .cache/
[13:28:20] <c1b3r> drwx------ 3 masterbrain masterbrain 4096 Sep 1 06:45 .cache/pip
[13:28:28] <c1b3r> drwx------ 7 masterbrain masterbrain 4096 Sep 1 06:45 .cache/pip/http/
[13:28:29] <mgedmin> can you use a pastebin *please*?
[13:28:36] <c1b3r> sure
[13:28:38] <c1b3r> sorry
[13:28:44] <c1b3r> wait a minute
[13:29:48] <c1b3r> http://paste.debian.net/801023/
[13:30:03] <c1b3r> I'm getting crazy with this.
[13:30:53] <mgedmin> "No matching distribution found for install" is your real error!
[13:31:06] <mgedmin> is the machine behind a proxy?
[13:31:11] <c1b3r> noo
[13:31:25] <mgedmin> although everything is really weird
[13:32:00] <mgedmin> what does pip --version say?
[13:32:54] <c1b3r> it doesn't show me that
[13:33:15] <mgedmin> that what?
[13:33:29] <Wooble> crystal ball: you aliased "pip" to "pip install"
[13:33:36] <c1b3r> nope
[13:33:38] <c1b3r> http://paste.debian.net/801036/
[13:34:09] <c1b3r> hmmm wait Wooble,
[13:34:11] <mgedmin> what does 'type pip' say?
[13:34:44] <c1b3r> I'm remembering that my .bashrc have some alias
[13:34:47] <c1b3r> I will check that
[13:37:20] <c1b3r> pip 8.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)
[13:38:42] <c1b3r> that's my pip version, But I don't understand very well why i'm unable to do pip --version when I activate the isolate enviroment
[13:38:45] <c1b3r> :'(
[13:40:02] <c1b3r> mgedmin: pip is hashed (/usr/local/bin/pip)
[13:40:16] <Wooble> c1b3r: that output suggests it's running "pip install --version" when you do it there.
[13:41:06] <Wooble> (did you modify the activate script to add aliases too?)
[13:41:07] <c1b3r> wtf Wooble It's working
[13:41:35] <c1b3r> I just delete the alias that was alias pip='sudo pip install '
[13:42:51] <c1b3r> how goes that ?
[13:46:28] <mgedmin> that explains everything
[13:48:20] <c1b3r> yeah I was doing something like sudo sudo pip install package...
[13:48:28] <c1b3r> thank you so much
[13:48:45] <c1b3r> you save my life Wooble mgedmin :)
[13:52:56] <Wooble> (don't run pip as root)
[13:54:38] <c1b3r> what would be the best to use virtualenv in production ?
[13:55:38] <Wooble> just create the venvs with a normal user account. There's no reason to use root.
[13:55:58] <Wooble> sudo pip install is only "useful" to install to the system python, which is a horrible idea.
[13:56:48] <Wooble> (use distro packages if you need to install things to the system python, although ideally forget your OS even comes with a python and leave it alone to handle system things)
[13:57:11] <c1b3r> ok. Thanks in advanced
[20:48:58] <_matix> Hi guys, just wondering why dependency links are being removed from setuptools / pip and what is the alternative? I have a private package that depends on another private package. i've been told to run a private pypi repository but this seems like overkill.
[20:52:59] <_matix> to clarify, I have an application App which depends on a private package PackageA. PackageA depends on private package PackageB. Everything is hosted in private Git repositories. App currently has PackageA and PackageB in its requirements.txt to cope with my issue, but it really only depends on PackageA.
[21:26:11] <nanonyme> _matix, FWIW providing a server that implements the simple interface is not *that* hard
[22:10:53] <pombreda> _matix: you could also vendor you wheels. This is quite simpler if you only have a few repos
[22:11:00] <pombreda> *your wheels
[22:12:47] <pombreda> This is my preferred approach :) until you start reaching a larger scale (as in large number of third-parties) where having also a pupi repo may help
[22:12:51] <pombreda> *pypi
[22:13:19] <pombreda> this is also a way to avoid any network dep if you vendor everything
[22:13:38] <pombreda> greater control
[22:13:46] <pombreda> and stability and piece of mind