Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
Hi @Stubatiger , thanks a lot for your contribution! Did you have time to check Joan's feedback? or is there anything else you need from our side to continue with the PR?
ENV
Python 3.9
jina 2.5.0
Describe the bug
If i try to dump an image blob to a io.bytesio object an error is thrown
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /tmp/ipykernel_12013/123594708.py in <module> 5 6 ( ----> 7 d 8 .load_uri_to_image_blob() 9 .dump_image_blob_to_file(output) ~/miniconda3/envs/steam3.9/lib/python3.9/site-packages/jina/types/document/mixins/image.py in dump_image_blob_to_file(self, file, channel_axis) 100 blob = _move_channel_axis(self.blob, channel_axis, -1) 101 buffer = _to_png_buffer(blob) --> 102 fp.write(buffer) 103 return self 104 AttributeError: 'nullcontext' object has no attribute 'write'Describe how you solve it
Here
jina/jina/types/document/mixins/image.py
Line 98 in 99b1e1d
the returned object of the context is not used in this line
if we change the code to
it seems to work for my case.
Im not sure of the broader consequences though, as i dont know what the nullcontext is used for here
The text was updated successfully, but these errors were encountered: