OBJECT SEARCH: bug report: inputs is not valid! BadRequestType('error when building IndexRequestProto from
FionnD opened this issue ยท 6 comments
Running:
- OS.X 11.1 (M1 chip)
- jina==1.1.0
While running the object detection search, I hit the following error.
index |โ | ๐ 0 โฑ๏ธ 0.0s ๐ 0.0/s 0 batchindex ... JINA@7502[C]:inputs is not valid! BadRequestType('error when building IndexRequestProto from (b\'\\xff\\xd8\\xff\\xe0\\x00\\x10JFIF\\x00\\x01\\x01\\x01\\x00H\\x00H\\x00\\x00\\xff\\xdb\\x00C\\x00\\x01\\x01\\x01\\x01\\x01\\x01\\x01\\x01\\x01\\x01\\x01\\x01\\x01\\x02\\x02\\x03\\x02\\x02\\x02\\x02\\x02\\x04\\x03\\x03\\x02\\x03\\x05\\x04\\x05\\x05\\x05\\x04\\x0
Step to reproduce:
- Clone and download the repo.
- Run the requirement script
- Download the kaggle data
- Run:
python app.py -task index -n 1000 -overwrite True
- Index fails, with the above error.
Full error message can be found here.
I guess this is due to the fact that the hub
module in your local environment is out of date. I've added hub
requirements
Thanks, @nan-wang , I pulled your branch but it's still not working. The same occurs. Any suggestions?
@cristianmtr PR #522 didn't fix that issue for me, did you try it?
yes, it worked. But I see this was in reference to a specific PR, not to master
. I will try in that PR
If you get it working let me know, I can jump on a quick call with you in the next 20 minutes to see if it a local issue for me
After digging into this with @florian-hoenicke we discovered the issue might be due to a package called lib-magic
which is not installed by default on Mac OSx, but is for some Linux machines.
@nan-wang I think the best course of action would be to get an engineer to replace the mobilenet_v2
model with another image encoder that does not need any specific packages, thus making onboarding easier. What do you think?