Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79243

Re: Permissions on files installed by pip?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <prvs=36025fddd=jeanmichel@sequans.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.048
X-Spam-Evidence '*H*': 0.90; '*S*': 0.00; 'root': 0.05; 'permissions': 0.09; 'subject:files': 0.09; 'cc:addr:python-list': 0.11; 'aptitude': 0.16; 'pip?': 0.16; 'sudo': 0.16; 'ubuntu,': 0.16; 'followed': 0.16; 'thursday,': 0.16; '3.0': 0.19; 'ownership': 0.19; 'work,': 0.20; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'install': 0.23; '"you': 0.24; 'rid': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'fixed': 0.29; '[1]': 0.29; "i'm": 0.30; '(since': 0.31; '-----': 0.33; 'something': 0.35; 'but': 0.35; 'responsible': 0.36; 'subject:?': 0.36; 'email addr:python.org': 0.37; 'starting': 0.37; 'step': 0.37; 'thank': 0.38; 'files': 0.38; 'subject:': 0.39; "couldn't": 0.39; 'sure': 0.39; 'staff': 0.61; 'you.': 0.62; 'information': 0.63; 'received:194': 0.64; 'email name:python-list': 0.65; 'notice:': 0.67; 'person,': 0.68; 'realized': 0.68; 'privileged.': 0.69; 'money': 0.72; 'disclose': 0.74; 'skip:/ 30': 0.84; 'medium.': 0.91
X-IronPort-AV E=Sophos;i="5.04,739,1406584800"; d="scan'208";a="3466337"
Date Fri, 17 Oct 2014 15:13:50 +0200 (CEST)
From Jean-Michel Pichavant <jeanmichel@sequans.com>
To Adam Funk <a24061@ducksburg.com>
In-Reply-To <aui5hbxrim.ln2@news.ducksburg.com>
Subject Re: Permissions on files installed by pip?
MIME-Version 1.0
X-Mailer Zimbra 7.2.7_GA_2942 (ZimbraWebClient - GC37 (Linux)/7.2.7_GA_2942)
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.14945.1413551638.18130.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1413551638 news.xs4all.nl 2868 [2001:888:2000:d::a6]:48120
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:79243

Show key headers only | View raw


----- Original Message -----
> From: "Adam Funk" <a24061@ducksburg.com>
> To: python-list@python.org
> Sent: Thursday, 16 October, 2014 9:29:46 PM
> Subject: Permissions on files installed by pip?
> 
> I've been using the python-nltk package on Ubuntu, but I need ntlk
> 3.0
> now.  I used 'sudo aptitude purge python-nltk' to get rid of my
> existing installation, & followed instructions on the nltk website
> [1]
> starting at step 4 (since I already have python-pip & python-numpy
> packages installed).
> 
> $ sudo pip install -U
> 
> I couldn't get it to work, until I realized that the permissions &
> ownership on /usr/local/lib/python2.7/dist-packages were 'drwx--S---
> root staff'.  A 'chmod -R a+rX' on that directory seems to have fixed
> it.  Is it normal for sudo pip install to set the permissions that
> way, or did I do something wrong?

On debian wheezy:

ls -al /usr/local/lib/python2.7/dist-packages          

drwxrwsr-x 5 root staff 4.0K Jun 30 15:16 ./

I'm not sure pip is responsible for this anyway, so my money goes on "you did something wrong" :)


JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: Permissions on files installed by pip? Jean-Michel Pichavant <jeanmichel@sequans.com> - 2014-10-17 15:13 +0200
  Re: Permissions on files installed by pip? Adam Funk <a24061@ducksburg.com> - 2014-10-22 16:51 +0100

csiph-web