-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Milestone
Description
Copied over from 0a49a8e#commitcomment-2159955 as requested by @astrofrog
I have some stuff cached in ~/.astropy like this::
~/.astropy/
cache/
data/
f263da308ecd2ff233c79e4c976245e6
data_urlmap
data_urlmap.db
Then I did this in Python::
>>> from astropy.utils import data
>>> data.clear_data_cache()
ERROR: RuntimeError: Error releasing lock. "~/.astropy/cache/data/lock" either does not exist or is not a directory. [astropy.utils.data]
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-7-989a71b22499> in <module>()
----> 1 data.clear_data_cache()
/blahblah/lib/python2.7/site-packages/astropy/utils/data.pyc in clear_data_cache(hashorurl)
879 raise OSError(msg.format(hashorurl))
880 finally:
--> 881 _release_data_cache_lock()
882
883
/blahblah/lib/python2.7/site-packages/astropy/utils/data.pyc in _release_data_cache_lock()
963 msg = 'Error releasing lock. "{0}" either does not exist or is not ' +\
964 'a directory.'
--> 965 raise RuntimeError(msg.format(lockdir))
RuntimeError: Error releasing lock. "~/.astropy/cache/data/lock" either does not exist or is not a directory.
Now the cache directory looks like this::
~/.astropy/
cache/
data/
data_urlmap.db
So looks like it deleted some stuff, but still gives me Error. Is this a bug? By the way, I just merged the latest astropy master into my fork that is installed here.
Metadata
Metadata
Assignees
Labels
No labels