Project

General

Profile

Actions

Bug #2892

closed

redux cache str to text stream error

Added by Anchi Cheng over 10 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
08/14/2014
Due date:
% Done:

0%

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

Description

An error randomly appear when people use caching in redux
that we could not reproduced locally.

See Forum RE: Redux error: "can't write str to text stream", Redux problems, RE: image viewer not showing pic of the images

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

Actions #1

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

Actions #2

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.

Actions #3

Updated by Anchi Cheng almost 7 years ago

  • Status changed from In Test to Closed
Actions

Also available in: Atom PDF