pip install, permission problem

2011-03-16 Thread Jabba Laci
Hi, I'm trying to install a pypi package with pip. The installation is done, but the permissions are not set correctly, thus I cannot import it as a normal user. Example: sudo pip install termcolor /usr/local/lib/python2.6/dist-packages/termcolor.py is created with permissions 600 I can post-corr

Re: Permission Problem

2010-03-01 Thread Victor Subervi
Never mind. I figured out my error. beno On Mon, Mar 1, 2010 at 10:02 AM, Victor Subervi wrote: > Hi; > I encountered and solved this problem before with the help of the list, but > it's back, and I've reviewed and done everything I was shown to do last > time, so I'm lost. Here's the script: > >

Permission Problem

2010-03-01 Thread Victor Subervi
Hi; I encountered and solved this problem before with the help of the list, but it's back, and I've reviewed and done everything I was shown to do last time, so I'm lost. Here's the script: #!/usr/bin/python import cgitb; cgitb.enable() import cgi import sys,os sys.path.append(os.getcwd()) from l

Re: os.remove() permission problem

2009-12-05 Thread Aahz
In article , Christian Heimes wrote: > >You have to set the write and execute permssion on *directory*, not on >the file. unlink (aka remove) requires write permission on the directory >in order to remove the file. > >It's like in the real world. You may be allowed to modify a document (w >permis

Re: os.remove() permission problem

2009-12-01 Thread Victor Subervi
On Tue, Dec 1, 2009 at 8:12 AM, Christian Heimes wrote: > Victor Subervi wrote: > > Well, that's what I've tried. I've loaded the permissions up, 0777, and > it > > still throws the same error. I've also tried os.chmod(file, 0777) from > the > > script, and I get the same permissions error. I can

Re: os.remove() permission problem

2009-12-01 Thread Christian Heimes
Victor Subervi wrote: > Well, that's what I've tried. I've loaded the permissions up, 0777, and it > still throws the same error. I've also tried os.chmod(file, 0777) from the > script, and I get the same permissions error. I can do all of this from the > python prompt. I've set the ownership of th

Re: os.remove() permission problem

2009-12-01 Thread Victor Subervi
On Mon, Nov 30, 2009 at 5:06 PM, Christian Heimes wrote: > Victor Subervi wrote: > > When I go into the python interpreter and execute that statement, it > > succeeds. What have I missed? > > You are confusing the permissions of a Unix file system. In order to > create or a remove a file from a d

Re: os.remove() permission problem

2009-11-30 Thread Christian Heimes
Victor Subervi wrote: > When I go into the python interpreter and execute that statement, it > succeeds. What have I missed? You are confusing the permissions of a Unix file system. In order to create or a remove a file from a directory you need the x and w permission to enter the directory (x) an

Re: os.remove() permission problem

2009-11-30 Thread Martijn Arts
On Mon, Nov 30, 2009 at 8:21 PM, Victor Subervi wrote: > Hi; > I get the following error when I try > os.remove(file) > > *OSError*: [Errno 13] Permission denied: 'particulars.py' > args = (13, 'Permission denied') > errno = 13 > filename = 'particulars.py' > strerror = 'Pe

Re: os.remove() permission problem

2009-11-30 Thread Victor Subervi
On Mon, Nov 30, 2009 at 3:21 PM, Victor Subervi wrote: > Hi; > I get the following error when I try > os.remove(file) > > *OSError*: [Errno 13] Permission denied: 'particulars.py' > args = (13, 'Permission denied') > errno = 13 > filename = 'particulars.py' > strerror = 'Pe

os.remove() permission problem

2009-11-30 Thread Victor Subervi
Hi; I get the following error when I try os.remove(file) *OSError*: [Errno 13] Permission denied: 'particulars.py' args = (13, 'Permission denied') errno = 13 filename = 'particulars.py' strerror = 'Permission denied' Here are the permissions: -rwxr-xr-x 1 root root 45