Bug #2892
closedredux cache str to text stream error
0%
Description
An error randomly appear when people use caching in redux
that we could not reproduced locally.
See Forum
, ,REQUEST: server_host=localhost&oformat=PNG&filename=/root/test.jpg
NOT IN MEMORY: Format(28901904,oformat=PNG,overlay=,overlaycolor=0.1,rgb=False)
NOT IN MEMORY: Read(28901840,filename=/root/test.jpg,info=False)
Running Read(28901840,filename=/root/test.jpg,info=False)
Running Format(28901904,oformat=PNG,overlay=,overlaycolor=0.1,rgb=False)
1407939689.31
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/redux/server.py", line 39, in run_process
result = pipeline.process(**kwargs)
File "/usr/lib/python2.6/site-packages/redux/pipeline.py", line 147, in process
results.put(done, result)
File "/usr/lib/python2.6/site-packages/redux/cache.py", line 40, in put
return self._put(pipeline, result)
File "/usr/lib/python2.6/site-packages/redux/cache.py", line 35, in put
self.file_put(pipeline, result)
File "/usr/lib/python2.6/site-packages/redux/cache.py", line 82, in file_put
final_pipe.put_result(f, result)
File "/usr/lib/python2.6/site-packages/redux/pipes/format.py", line 86, in put_result
f.write(result)
File "/usr/lib64/python2.6/io.py", line 1515, in write
s._class__.__name__)
TypeError: can't write str to text stream
Updated by Anchi Cheng over 10 years ago
implemented Harry Hsu's solution in
r18518 in trunk
r18519 in 3.1
r18520 in 3.0
Updated by Anchi Cheng over 10 years ago
- Status changed from New to In Test
It is possible that the bug is caused by newer version of fs. We have 0.4.0 on ours. Others use 0.5.0 Need to be confirmed by updating ours.