Project

General

Profile

Actions

Bug #5217

closed

newer version of fs does not support recursive makedir

Added by Anchi Cheng over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
09/18/2017
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.2
Show in known bugs:
No
Workaround:

Description

When cache is turned on in redux, this following error appears.

Traceback (most recent call last):
  File "/usr/bin/redux", line 5, in <module>
    redux.client.run()
  File "/usr/lib/python2.7/site-packages/redux/client.py", line 141, in run
    result = client.process_kwargs(**kwargs)
  File "/usr/lib/python2.7/site-packages/redux/client.py", line 57, in process_kwargs
    return pl.process(**kwargs)
  File "/usr/lib/python2.7/site-packages/redux/pipeline.py", line 147, in process
    results.put(done, result)
  File "/usr/lib/python2.7/site-packages/redux/cache.py", line 39, in put
    return self._put(pipeline, result)
  File "/usr/lib/python2.7/site-packages/redux/cache.py", line 34, in _put
    self.file_put(pipeline, result)
  File "/usr/lib/python2.7/site-packages/redux/cache.py", line 79, in file_put
    self.diskcache.makedir(path, recursive=True, allow_recreate=True)
TypeError: makedir() got an unexpected keyword argument 'recursive'

fs version 2.0.9 which is used in CentOS 7 installation See redux and current version of fs

Actions #1

Updated by Sargis Dallakyan about 7 years ago

  • Status changed from Assigned to In Code Review
  • Assignee changed from Sargis Dallakyan to Anchi Cheng
  • Priority changed from High to Normal

commit:200c0865 used https://stackoverflow.com/questions/600268/mkdir-p-functionality-in-python to replace self.diskcache.makedir with os.makedirs. Needs a code review and testing.

Actions #2

Updated by Anchi Cheng about 7 years ago

  • Status changed from In Code Review to Closed
Actions

Also available in: Atom PDF