-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with uploading from file #9
Comments
src_response.text: 5328 |
It happens with basically all images, only 1 or 2 passed |
Also, these pics work with the original search() with url, but not from file |
I also noticed that mostly bigger files produce this problem |
Error message I get with some pictures:
Traceback (most recent call last):
File "C:\Users\MGergo\Desktop\Új mappa\img.py", line 5, in
res = rev_img_searcher.search_by_file('YTES.jpeg')
File "C:\Users\MGergo\Desktop\Új mappa\myenv\lib\site-packages\google_img_source_search\reverse_image_searcher.py", line 65, in search_by_file
return self.__search(self.image_file_uploader, image_path)
File "C:\Users\MGergo\Desktop\Új mappa\myenv\lib\site-packages\google_img_source_search\reverse_image_searcher.py", line 49, in __search
return self.image_source_searcher.search(google_image)
File "C:\Users\MGergo\Desktop\Új mappa\myenv\lib\site-packages\google_img_source_search\image_source_searcher.py", line 39, in search
return self.extract_search_items(src_response.text)
File "C:\Users\MGergo\Desktop\Új mappa\myenv\lib\site-packages\google_img_source_search\image_source_searcher.py", line 17, in extract_search_items
decoded_response = decode(src_response, 'c')
File "C:\Users\MGergo\Desktop\Új mappa\myenv\lib\site-packages\google_img_source_search\batchexecute_decoder.py", line 223, in decode
decoded = _decode_rt_compressed(raw, strict=strict)
File "C:\Users\MGergo\Desktop\Új mappa\myenv\lib\site-packages\google_img_source_search\batchexecute_decoder.py", line 95, in decode_rt_compressed
data = json.loads(envelope[0][2])
File "C:\Users\MGergo\AppData\Local\Programs\Python\Python39\lib\json_init.py", line 339, in loads
raise TypeError(f'the JSON object must be str, bytes or bytearray, '
TypeError: the JSON object must be str, bytes or bytearray, not NoneType
I only get it with some pictures, and when I uploaded these pictures manually, they brought normal results, so its not with those pics.
The text was updated successfully, but these errors were encountered: