Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Nicholas Cole Newsgroups: comp.lang.python Subject: Re: venv issues Date: Tue, 3 Nov 2015 14:06:24 +0000 Lines: 28 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de O5njtRmQjIK/kDqSWpCfkwbmAUDESRoBlbLIc03+lFxQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'one?': 0.05; 'line:': 0.07; 'problem?': 0.07; 'ignore': 0.14; 'nicholas': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:issues': 0.16; 'wrote:': 0.16; 'config': 0.18; '2015': 0.20; 'to:2**1': 0.21; 'not,': 0.22; 'help.': 0.23; 'tried': 0.24; 'header:In- Reply-To:1': 0.24; "i've": 0.25; "doesn't": 0.26; 'chris': 0.26; 'logging': 0.27; 'message-id:@mail.gmail.com': 0.27; 'creating': 0.30; 'help!': 0.30; 'skip:. 10': 0.32; 'exhibit': 0.33; 'skip:~ 10': 0.33; 'know.': 0.34; 'tue,': 0.34; 'file': 0.34; 'received:google.com': 0.35; 'best,': 0.35; 'done': 0.35; 'nov': 0.35; 'received:74.125.82': 0.35; 'expected': 0.35; 'problem.': 0.35; 'but': 0.36; 'should': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'thank': 0.38; 'does': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'no.': 0.62; 'different': 0.63; 'user,': 0.67; 'brand': 0.75; 'cole': 0.84; 'to:name:python': 0.84; 'upset': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9Faqg+YssRwQBTsa580eNz9UTk4ZBSY3tqG4WqI5ZMY=; b=YDcPIUgznUR7Xdk9qqWquz7CwFlukmTLdp4FCiOt2g33RbDlPWo6h6/bSnANWn20r6 x59rqByV5gLQUgskRqTfmWwIXxd7XMkm47+fNMR2NwRDPXg8jTMd1O2hMyjCB0i24388 SajDWXq8dOpg1nEleuWR6NaAMmLDA4PNWE8NzvmxgjXAHSlxMv4DZoRqNs52OtMIUHU+ IkKcs4W60XkdvTVwY9aR1P82p7KD02z8AARGjth9SB9h2tBPvKqROlyH5X+5t509B9YA qijWmqj5cEJqyaonLfdmaHL/30txFbo6jc+sY7RAfkVKvnXSJPjGXTX8OnmH/8+DNLLw HRYw== X-Received: by 10.28.51.78 with SMTP id z75mr18641034wmz.51.1446559584670; Tue, 03 Nov 2015 06:06:24 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98157 On Tue, Nov 3, 2015 at 1:59 PM, Chris Angelico wrote: > On Tue, Nov 3, 2015 at 9:32 PM, Nicholas Cole wrote: >> Logging in as a different user and creating a venv works perfectly, so >> it's clearly a config issue somewhere, but I've tried removing >> ~/.bashrc and ~/.bash_profile and that doesn't help. > > What happens if you create a brand new user, then copy in all > dot-files and directories from your current one? Does it exhibit the > same problem? No. And that helped me find the problem. I had an old .pydistutils.cfg file with a line: install_lib = ~/Library/Python/$py_version_short/lib/python/site-packages That completely upset the venv. (whether it should have done or not, I don't know. I would have expected venv to ignore pydistutils.cfg) Thank you both for your help! Best, N.