[Ipython-tickets] [IPython] #164: Permission denied during setup: ipython creates read-only files!
IPython
ipython-tickets@scipy....
Mon May 28 06:27:39 CDT 2007
#164: Permission denied during setup: ipython creates read-only files!
---------------------+------------------------------------------------------
Reporter: tal | Owner: fperez
Type: defect | Status: new
Priority: normal | Milestone:
Component: ipython | Version:
Severity: normal | Keywords:
---------------------+------------------------------------------------------
IPython fails on first run because the .ipython directory it creates is
read-only. I was trying to make a Zero Install feed for it. All programs
run through Zero Install have their code marked as read-only; maybe it is
copying these permissions when it creates ~/.ipython?
{{{
/home/talex/Projects/zero-install/htdocs/2007/3rd-party/os.py in
makedirs(name=p
ath('/home/talex/.ipython/db'), mode=511)
157
158 """
159 from errno import EEXIST
160 head, tail = path.split(name)
161 if not tail:
162 head, tail = path.split(head)
163 if head and tail and not path.exists(head):
164 try:
165 makedirs(head, mode)
166 except OSError, e:
167 # be happy if someone already created the path
168 if e.errno != EEXIST:
169 raise
170 if tail == curdir: # xxx/newdir/. exists if
xxx/newdir
exists
171 return
--> 172 mkdir(name, mode)
global mkdir = <built-in function mkdir>
name = path('/home/talex/.ipython/db')
mode = 511
173
174 def removedirs(name):
175 """removedirs(path)
176
177 Super-rmdir; remove a leaf directory and all empty
intermediate
178 ones. Works like rmdir except that, if the leaf directory is
179 successfully removed, directories corresponding to rightmost
path
180 segments will be pruned away until either the whole path is
181 consumed or an error occurs. Errors during this latter phase
are
182 ignored -- they generally mean that a directory was not empty.
183
184 """
185 rmdir(name)
186 head, tail = path.split(name)
187 if not tail:
<type 'exceptions.OSError'>: [Errno 13] Permission denied:
'/home/talex/.ipython
/db'
Could not create crash report on disk.
}}}
--
Ticket URL: <http://projects.scipy.org/ipython/ipython/ticket/164>
IPython <http://ipython.scipy.org>
The IPython interactive Python system
More information about the Ipython-tickets
mailing list