Closed yiouyou closed 3 years ago
Works for me.
Are you sure you deleted the old modules and re-installed in a clean environment?
Here's my pip freeze:
aiofiles==0.6.0
arrow==0.17.0
attrs==20.3.0
binaryornot==0.4.4
certifi==2020.12.5
chardet==4.0.0
click==7.1.2
cookiecutter==1.7.2
docker==4.4.1
fastapi==0.63.0
filelock==3.0.12
fluent-logger==0.9.6
gevent==21.1.2
greenlet==1.0.0
grpcio==1.35.0
h11==0.12.0
idna==2.10
iniconfig==1.1.1
jina==1.0.0
Jinja2==2.11.2
jinja2-time==0.2.0
joblib==1.0.0
kaggle==1.5.10
lz4==3.1.1
MarkupSafe==1.1.1
msgpack==0.6.2
numpy==1.19.5
packaging==20.8
pluggy==0.13.1
poyo==0.5.0
protobuf==3.14.0
py==1.10.0
pydantic==1.7.3
pyparsing==2.4.7
pytest==6.1.2
python-dateutil==2.8.1
python-magic==0.4.18
python-multipart==0.0.5
python-slugify==4.0.1
PyYAML==5.4.1
pyzmq==21.0.1
regex==2020.11.13
requests==2.25.1
sacremoses==0.0.43
six==1.15.0
starlette==0.13.6
text-unidecode==1.3
tokenizers==0.9.4
toml==0.10.2
torch==1.7.1
tornado==6.1
tqdm==4.56.0
transformers==4.1.1
typing-extensions==3.7.4.3
urllib3==1.26.2
uvicorn==0.13.3
uvloop==0.14.0
websocket-client==0.57.0
websockets==8.1
wsproto==1.0.0
zope.event==4.5.0
zope.interface==5.2.0
Hey @yiouyou , this error is fixed in the latest master. We provided backcompatibility to a breaking change we made.
Double checked again. With fresh new env:
pip install -U pip
pip install -r requirements
pip list
Package Version
------------------ ----------
aiofiles 0.6.0
arrow 1.0.2
attrs 20.3.0
binaryornot 0.4.4
certifi 2020.12.5
chardet 4.0.0
click 7.1.2
cookiecutter 1.7.2
docker 4.4.4
fastapi 0.63.0
filelock 3.0.12
fluent-logger 0.9.6
gevent 21.1.2
greenlet 1.0.0
grpcio 1.36.0
h11 0.12.0
idna 2.10
importlib-metadata 3.7.0
iniconfig 1.1.1
jina 1.0.0
Jinja2 2.11.3
jinja2-time 0.2.0
joblib 1.0.1
kaggle 1.5.10
lz4 3.1.1
MarkupSafe 1.1.1
msgpack 0.6.2
numpy 1.20.1
packaging 20.9
pip 21.0.1
pluggy 0.13.1
poyo 0.5.0
protobuf 3.15.3
py 1.10.0
pydantic 1.8
pyparsing 2.4.7
pytest 6.1.2
python-dateutil 2.8.1
python-magic 0.4.22
python-multipart 0.0.5
python-slugify 4.0.1
PyYAML 5.4.1
pyzmq 22.0.3
regex 2020.11.13
requests 2.25.1
sacremoses 0.0.43
setuptools 47.1.0
six 1.15.0
starlette 0.13.6
text-unidecode 1.3
tokenizers 0.9.4
toml 0.10.2
torch 1.7.1
tornado 6.1
tqdm 4.58.0
transformers 4.1.1
typing-extensions 3.7.4.3
urllib3 1.26.3
uvicorn 0.13.4
uvloop 0.15.2
websocket-client 0.57.0
websockets 8.1
wsproto 1.0.0
zipp 3.4.0
zope.event 4.5.0
zope.interface 5.2.0
At least with the code right now, it'll fail. btw, the used code is the downloaded zip.
Hey @yiouyou , as a first workaround, what u can do is to make sure the ranker.yml
of the multires-lyrics-example
is using the proper inverse_score
parameter.
FYI I didn't have to upgrade to latest master
.
@yiouyou Did you make any changes to the example? By default the parameter that you see mentioned in the exception is provided:
I didn't change anything and downloaded+run again. The ranker.yml is:
!SimpleAggregateRanker
with:
aggregate_function: 'min'
inverse_score: true
requests:
on:
ControlRequest:
- !ControlReqDriver {}
SearchRequest:
- !Chunk2DocRankDriver {}
Strange. I tried running it on both Python 3.7.10 and Python 3.8.5. What specific version of Python are you running?
pip freeze
for 3.7.10
aiofiles==0.6.0
arrow==1.0.2
attrs==20.3.0
binaryornot==0.4.4
certifi==2020.12.5
chardet==4.0.0
click==7.1.2
cookiecutter==1.7.2
docker==4.4.4
fastapi==0.63.0
filelock==3.0.12
fluent-logger==0.9.6
gevent==21.1.2
greenlet==1.0.0
grpcio==1.36.0
h11==0.12.0
idna==2.10
importlib-metadata==3.7.0
iniconfig==1.1.1
jina==1.0.0
Jinja2==2.11.3
jinja2-time==0.2.0
joblib==1.0.1
kaggle==1.5.10
lz4==3.1.1
MarkupSafe==1.1.1
msgpack==0.6.2
numpy==1.20.1
packaging==20.9
pluggy==0.13.1
poyo==0.5.0
protobuf==3.15.3
py==1.10.0
pydantic==1.8
pyparsing==2.4.7
pytest==6.1.2
python-dateutil==2.8.1
python-magic==0.4.22
python-multipart==0.0.5
python-slugify==4.0.1
PyYAML==5.4.1
pyzmq==22.0.3
regex==2020.11.13
requests==2.25.1
sacremoses==0.0.43
six==1.15.0
starlette==0.13.6
text-unidecode==1.3
tokenizers==0.9.4
toml==0.10.2
torch==1.7.1
tornado==6.1
tqdm==4.58.0
transformers==4.1.1
typing-extensions==3.7.4.3
urllib3==1.26.3
uvicorn==0.13.4
uvloop==0.15.2
websocket-client==0.57.0
websockets==8.1
wsproto==1.0.0
zipp==3.4.0
zope.event==4.5.0
zope.interface==5.2.0
Can you try to paste this to a file and install them with pip install -r file.txt
? Then can you try to re-index?
I'm using python 3.7.9. Will do as you suggested. Still unlucky:
(py37-mls) sz@pc:/mnt/d/jina-ai/multires-lyrics-search$ python app.py search
chunk_seg@32662[I]:starting jina.peapods.runtimes.zmq.zed.ZEDRuntime...
tf_encode@32664[I]:starting jina.peapods.runtimes.zmq.zed.ZEDRuntime...
chunk_seg@32662[I]:input tcp://0.0.0.0:34729 (PULL_BIND) output tcp://0.0.0.0:41979 (PUSH_CONNECT) control over tcp://0.0.0.0:56977 (PAIR_BIND)
tf_encode@32664[I]:input tcp://0.0.0.0:41979 (PULL_BIND) output tcp://0.0.0.0:42351 (PUSH_CONNECT) control over tcp://0.0.0.0:57959 (PAIR_BIND)
chunk_idx/head@32672[I]:starting jina.peapods.runtimes.zmq.zed.ZEDRuntime...
chunk_idx/head@32672[I]:input tcp://0.0.0.0:42351 (PULL_BIND) output tcp://0.0.0.0:43063 (PUB_BIND) control over tcp://0.0.0.0:34965 (PAIR_BIND)
chunk_idx/tail@32677[I]:starting jina.peapods.runtimes.zmq.zed.ZEDRuntime...
chunk_idx/tail@32677[I]:input tcp://0.0.0.0:41833 (PULL_BIND) output tcp://0.0.0.0:52891 (PUSH_CONNECT) control over tcp://0.0.0.0:42807 (PAIR_BIND)
chunk_idx/1@32682[I]:starting jina.peapods.runtimes.zmq.zed.ZEDRuntime...
chunk_idx/1@32682[I]:input tcp://0.0.0.0:43063 (SUB_CONNECT) output tcp://0.0.0.0:41833 (PUSH_CONNECT) control over tcp://0.0.0.0:49195 (PAIR_BIND)
chunk_idx/2@32687[I]:starting jina.peapods.runtimes.zmq.zed.ZEDRuntime...
chunk_idx/2@32687[I]:input tcp://0.0.0.0:43063 (SUB_CONNECT) output tcp://0.0.0.0:41833 (PUSH_CONNECT) control over tcp://0.0.0.0:49123 (PAIR_BIND)
chunk_idx/3@32692[I]:starting jina.peapods.runtimes.zmq.zed.ZEDRuntime...
chunk_idx/3@32692[I]:input tcp://0.0.0.0:43063 (SUB_CONNECT) output tcp://0.0.0.0:41833 (PUSH_CONNECT) control over tcp://0.0.0.0:47175 (PAIR_BIND)
chunk_idx/4@32697[I]:starting jina.peapods.runtimes.zmq.zed.ZEDRuntime...
chunk_idx/4@32697[I]:input tcp://0.0.0.0:43063 (SUB_CONNECT) output tcp://0.0.0.0:41833 (PUSH_CONNECT) control over tcp://0.0.0.0:38163 (PAIR_BIND)
TransformerTorchEncoder@32664[I]:post_init may take some time...
BaseExecutor@32672[I]:post_init may take some time...
BaseExecutor@32672[I]:post_init may take some time takes 0 seconds (0.00s)
BaseExecutor@32677[I]:post_init may take some time...
BaseExecutor@32677[I]:post_init may take some time takes 0 seconds (0.00s)
Sentencizer@32662[I]:post_init may take some time...
Sentencizer@32662[I]:post_init may take some time takes 0 seconds (0.00s)
BaseExecutor@32672[S]:successfully built BaseExecutor from a yaml config
BaseExecutor@32677[S]:successfully built BaseExecutor from a yaml config
Sentencizer@32662[S]:successfully built Sentencizer from a yaml config
ranker@32706[I]:starting jina.peapods.runtimes.zmq.zed.ZEDRuntime...
ranker@32706[I]:input tcp://0.0.0.0:52891 (PULL_BIND) output tcp://0.0.0.0:42683 (PUSH_CONNECT) control over tcp://0.0.0.0:37509 (PAIR_BIND)
doc_idx@32711[I]:starting jina.peapods.runtimes.zmq.zed.ZEDRuntime...
doc_idx@32711[I]:input tcp://0.0.0.0:42683 (PULL_BIND) output tcp://0.0.0.0:43193 (PUSH_BIND) control over tcp://0.0.0.0:45709 (PAIR_BIND)
chunk_seg@32644[S]:ready and listening
gateway@32716[I]:starting jina.peapods.runtimes.asyncio.rest.RESTRuntime...
NumpyIndexer@32682[I]:post_init may take some time...
NumpyIndexer@32682[I]:post_init may take some time takes 0 seconds (0.00s)
NumpyIndexer@32687[I]:post_init may take some time...
NumpyIndexer@32687[I]:post_init may take some time takes 0 seconds (0.00s)
NumpyIndexer@32682[S]:restore NumpyIndexer from ./workspace/chunk_compound_indexer-1/vecidx-1/vecidx.bin
NumpyIndexer@32687[S]:restore NumpyIndexer from ./workspace/chunk_compound_indexer-2/vecidx-2/vecidx.bin
BinaryPbIndexer@32682[I]:post_init may take some time...
BinaryPbIndexer@32687[I]:post_init may take some time...
BinaryPbIndexer@32682[I]:post_init may take some time takes 0 seconds (0.00s)
BinaryPbIndexer@32687[I]:post_init may take some time takes 0 seconds (0.00s)
BinaryPbIndexer@32682[S]:restore BinaryPbIndexer from ./workspace/chunk_compound_indexer-1/chunkidx-1/chunkidx.bin
BinaryPbIndexer@32687[S]:restore BinaryPbIndexer from ./workspace/chunk_compound_indexer-2/chunkidx-2/chunkidx.bin
CompoundIndexer@32687[I]:post_init may take some time...
CompoundIndexer@32682[I]:post_init may take some time...
CompoundIndexer@32687[I]:post_init may take some time takes 0 seconds (0.00s)
CompoundIndexer@32682[I]:post_init may take some time takes 0 seconds (0.00s)
CompoundIndexer@32687[S]:successfully built CompoundIndexer from a yaml config
CompoundIndexer@32682[S]:successfully built CompoundIndexer from a yaml config
CompoundIndexer@32682[W]:Setting workspace of vecidx to ./workspace/chunk_compound_indexer-1
CompoundIndexer@32687[W]:Setting workspace of vecidx to ./workspace/chunk_compound_indexer-2
CompoundIndexer@32682[W]:Setting workspace of chunkidx to ./workspace/chunk_compound_indexer-1
CompoundIndexer@32687[W]:Setting workspace of chunkidx to ./workspace/chunk_compound_indexer-2
ranker@32706[C]:can not load the executor from pods/ranker.yml
NumpyIndexer@32692[I]:post_init may take some time...
NumpyIndexer@32692[I]:post_init may take some time takes 0 seconds (0.00s)
NumpyIndexer@32692[S]:restore NumpyIndexer from ./workspace/chunk_compound_indexer-3/vecidx-3/vecidx.bin
NumpyIndexer@32697[I]:post_init may take some time...
NumpyIndexer@32697[I]:post_init may take some time takes 0 seconds (0.00s)
NumpyIndexer@32697[S]:restore NumpyIndexer from ./workspace/chunk_compound_indexer-4/vecidx-4/vecidx.bin
BinaryPbIndexer@32692[I]:post_init may take some time...
BinaryPbIndexer@32692[I]:post_init may take some time takes 0 seconds (0.00s)
BinaryPbIndexer@32692[S]:restore BinaryPbIndexer from ./workspace/chunk_compound_indexer-3/chunkidx-3/chunkidx.bin
BinaryPbIndexer@32697[I]:post_init may take some time...
BinaryPbIndexer@32697[I]:post_init may take some time takes 0 seconds (0.00s)
BinaryPbIndexer@32697[S]:restore BinaryPbIndexer from ./workspace/chunk_compound_indexer-4/chunkidx-4/chunkidx.bin
CompoundIndexer@32692[I]:post_init may take some time...
CompoundIndexer@32692[I]:post_init may take some time takes 0 seconds (0.00s)
CompoundIndexer@32697[I]:post_init may take some time...
CompoundIndexer@32697[I]:post_init may take some time takes 0 seconds (0.00s)
CompoundIndexer@32692[S]:successfully built CompoundIndexer from a yaml config
CompoundIndexer@32692[W]:Setting workspace of vecidx to ./workspace/chunk_compound_indexer-3
CompoundIndexer@32692[W]:Setting workspace of chunkidx to ./workspace/chunk_compound_indexer-3
CompoundIndexer@32697[S]:successfully built CompoundIndexer from a yaml config
CompoundIndexer@32697[W]:Setting workspace of vecidx to ./workspace/chunk_compound_indexer-4
CompoundIndexer@32697[W]:Setting workspace of chunkidx to ./workspace/chunk_compound_indexer-4
ranker@32706[E]:ExecutorFailToLoad() during <bound method ZEDRuntime.setup of <jina.peapods.runtimes.zmq.zed.ZEDRuntime object at 0x7f384c02f790>>
add "--hide-exc-info" to suppress the exception details
Traceback (most recent call last):
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/peapods/runtimes/zmq/zed.py", line 62, in _load_executor
read_only=self.args.read_only)
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/jaml/__init__.py", line 414, in load_config
return JAML.load(revert_tag_yml, substitute=False)
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/jaml/__init__.py", line 89, in load
r = yaml.load(stream, Loader=JinaLoader)
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/yaml/__init__.py", line 114, in load
return loader.get_single_data()
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/yaml/constructor.py", line 51, in get_single_data
return self.construct_document(node)
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/yaml/constructor.py", line 55, in construct_document
data = self.construct_object(node)
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/yaml/constructor.py", line 100, in construct_object
data = constructor(self, node)
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/jaml/__init__.py", line 328, in _from_yaml
return get_parser(cls, version=data.get('version', None)).parse(cls, data)
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/jaml/parsers/executor/legacy.py", line 115, in parse
obj = cls(**data.get('with', {}), metas=data.get('metas', {}), requests=data.get('requests', {}))
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/executors/__init__.py", line 47, in __call__
obj = type.__call__(cls, *args, **kwargs)
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/executors/decorators.py", line 144, in arg_wrapper
f = func(self, *args, **kwargs)
TypeError: __init__() missing 1 required positional argument: 'is_reversed_score'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/peapods/peas/__init__.py", line 66, in run
self.runtime.setup()
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/peapods/runtimes/zmq/zed.py", line 41, in setup
self._load_executor()
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/peapods/runtimes/zmq/zed.py", line 73, in _load_executor
raise ExecutorFailToLoad from ex
jina.excepts.ExecutorFailToLoad
BinaryPbIndexer@32711[I]:post_init may take some time...
BinaryPbIndexer@32711[I]:post_init may take some time takes 0 seconds (0.00s)
BinaryPbIndexer@32711[S]:restore BinaryPbIndexer from ./workspace/doc_indexer.bin
JINA@32716[I]:input tcp://0.0.0.0:43193 (PULL_CONNECT) output tcp://0.0.0.0:34729 (PUSH_CONNECT) control over ipc:///tmp/tmp9yux_ig5 (PAIR_BIND)
JINA@32716[I]:
Jina REST interface
💬 Swagger UI: http://localhost:65481/docs
📚 Redoc : http://localhost:65481/redoc
JINA@32716[S]:ready and listening
gateway@32716[S]:RESTRuntime is listening at: 0.0.0.0:65481
TransformerTorchEncoder@32664[I]:post_init may take some time takes 11 seconds (11.53s)
TransformerTorchEncoder@32664[S]:successfully built TransformerTorchEncoder from a yaml config
tf_encode@32644[S]:ready and listening
chunk_idx/head@32644[S]:ready and listening
chunk_idx/tail@32644[S]:ready and listening
chunk_idx/1@32644[S]:ready and listening
chunk_idx/2@32644[S]:ready and listening
chunk_idx/3@32644[S]:ready and listening
chunk_idx/4@32644[S]:ready and listening
ranker@32644[S]:terminated
Flow@32644[E]:ranker:<jina.peapods.pods.BasePod object at 0x7f384bffd9d0> can not be started due to RuntimeFailToStart(), Flow is aborted
JINA@32716[I]:#sent: 0 #recv: 0 sent_size: 0 Bytes recv_size: 0 Bytes
gateway@32644[S]:terminated
doc_idx@32711[I]:recv ControlRequest from ctl▸doc_idx/ZEDRuntime▸⚐
doc_idx@32711[I]:#sent: 1 #recv: 1 sent_size: 245 Bytes recv_size: 137 Bytes
doc_idx@32711[I]:indexer size: 99 physical size: 19.8 MB
doc_idx@32711[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
doc_idx@32644[S]:terminated
chunk_idx/4@32697[I]:recv ControlRequest from ctl▸chunk_idx/4/ZEDRuntime▸⚐
chunk_idx/4@32697[I]:#sent: 1 #recv: 1 sent_size: 251 Bytes recv_size: 138 Bytes
NumpyIndexer@32697[I]:indexer size: 792 physical size: 2.4 MB
NumpyIndexer@32697[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
BinaryPbIndexer@32697[I]:indexer size: 792 physical size: 2.6 MB
BinaryPbIndexer@32697[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
NumpyIndexer@32697[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
BinaryPbIndexer@32697[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_idx/4@32697[I]:no update since 2021-03-02 20:40:59, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_idx/4@32644[S]:terminated
chunk_idx/3@32692[I]:recv ControlRequest from ctl▸chunk_idx/3/ZEDRuntime▸⚐
chunk_idx/3@32692[I]:#sent: 1 #recv: 1 sent_size: 251 Bytes recv_size: 138 Bytes
NumpyIndexer@32692[I]:indexer size: 907 physical size: 2.8 MB
NumpyIndexer@32692[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
BinaryPbIndexer@32692[I]:indexer size: 907 physical size: 3.0 MB
BinaryPbIndexer@32692[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
NumpyIndexer@32692[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
BinaryPbIndexer@32692[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_idx/3@32692[I]:no update since 2021-03-02 20:40:59, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_idx/3@32644[S]:terminated
chunk_idx/2@32687[I]:recv ControlRequest from ctl▸chunk_idx/2/ZEDRuntime▸⚐
chunk_idx/2@32687[I]:#sent: 1 #recv: 1 sent_size: 251 Bytes recv_size: 138 Bytes
NumpyIndexer@32687[I]:indexer size: 671 physical size: 2.1 MB
NumpyIndexer@32687[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
BinaryPbIndexer@32687[I]:indexer size: 671 physical size: 2.2 MB
BinaryPbIndexer@32687[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
NumpyIndexer@32687[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
BinaryPbIndexer@32687[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_idx/2@32687[I]:no update since 2021-03-02 20:40:59, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_idx/2@32644[S]:terminated
chunk_idx/1@32682[I]:recv ControlRequest from ctl▸chunk_idx/1/ZEDRuntime▸⚐
chunk_idx/1@32682[I]:#sent: 1 #recv: 1 sent_size: 249 Bytes recv_size: 137 Bytes
NumpyIndexer@32682[I]:indexer size: 733 physical size: 2.3 MB
NumpyIndexer@32682[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
BinaryPbIndexer@32682[I]:indexer size: 733 physical size: 2.4 MB
BinaryPbIndexer@32682[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
NumpyIndexer@32682[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
BinaryPbIndexer@32682[I]:no update since 2021-03-02 20:40:24, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_idx/1@32682[I]:no update since 2021-03-02 20:40:59, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_idx/1@32644[S]:terminated
chunk_idx/tail@32677[I]:recv ControlRequest from ctl▸chunk_idx/tail/ZEDRuntime▸⚐
chunk_idx/tail@32677[I]:#sent: 1 #recv: 1 sent_size: 254 Bytes recv_size: 138 Bytes
chunk_idx/tail@32677[I]:no update since 2021-03-02 20:40:59, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_idx/tail@32644[S]:terminated
chunk_idx/head@32672[I]:recv ControlRequest from ctl▸chunk_idx/head/ZEDRuntime▸⚐
chunk_idx/head@32672[I]:#sent: 1 #recv: 1 sent_size: 254 Bytes recv_size: 138 Bytes
chunk_idx/head@32672[I]:no update since 2021-03-02 20:40:59, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_idx/head@32644[S]:terminated
tf_encode@32664[I]:recv ControlRequest from ctl▸tf_encode/ZEDRuntime▸⚐
tf_encode@32664[I]:#sent: 1 #recv: 1 sent_size: 249 Bytes recv_size: 138 Bytes
tf_encode@32664[I]:no update since 2021-03-02 20:40:59, will not save. If you really want to save it, call "touch()" before "save()" to force saving
tf_encode@32644[S]:terminated
chunk_seg@32662[I]:recv ControlRequest from ctl▸chunk_seg/ZEDRuntime▸⚐
chunk_seg@32662[I]:#sent: 1 #recv: 1 sent_size: 249 Bytes recv_size: 138 Bytes
chunk_seg@32662[I]:no update since 2021-03-02 20:40:59, will not save. If you really want to save it, call "touch()" before "save()" to force saving
chunk_seg@32644[S]:terminated
Flow@32644[S]:flow is closed and all resources are released, current build level is 0
Traceback (most recent call last):
File "app.py", line 91, in <module>
main()
File "app.py", line 83, in main
search()
File "app.py", line 52, in search
with f:
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/flow/base.py", line 399, in __enter__
return self.start()
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/flow/base.py", line 438, in start
v.wait_start_success()
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/peapods/pods/__init__.py", line 221, in wait_start_success
p.wait_start_success()
File "/mnt/d/jina-ai/py37-mls/lib/python3.7/site-packages/jina/peapods/peas/__init__.py", line 126, in wait_start_success
raise RuntimeFailToStart
jina.excepts.RuntimeFailToStart
Can't find anything wrong with yanker.yml.
One thing we can try is to change inverse_score
to is_reversed_score
inranker.yml
.
From this TypeError: __init__() missing 1 required positional argument: 'is_reversed_score'
. We changed the is_reversed_score
to inverse_score
recently, this error message probably means you're using the old version of Jina hub executors.
Related PRs: https://github.com/jina-ai/jina-hub/pull/4146 https://github.com/jina-ai/examples/pull/404/files
If changing back this param works for you locally, could you try to upgrade Jina to the latest version?
If this is the case, I will update our requirements.txt accordingly. Thanks for your feedback!
You're right! To change inverse_score
to is_reversed_score
fixed the problem. It's not about env issue.
You're right! To change
inverse_score
tois_reversed_score
fixed the problem. It's not about env issue.
😄 Glad to see it is fixed. env is part of this issue. Since we updated the ranker.yml in the example repo. We should use the correct combination of param setting and Jina version. A simple mapping for this param:
Jina version<1.0.7 is_reversed_score
Jina version>=1.0.7 both is_reversed_score
inverse_score
are ok.
I will double-check this example to update the requirement.txt soon. Thank you again for your feedback!
One more feedback: Jina 1.0.0 with is_reversed_score is working. But, Jina 1.0.7 with inverse_socre doesn't work for me.
How did you install that version of Jina? You need to install the hub modules with it, where the ranker is provided. Like so pip install 'jina[hub,http]'==1.0.7
. I just tested it and it worked for me.
Hi @yiouyou, I'm closing this issue because there was no update since @cristianmtr last question. If you find more information please reopen this issue.
With phyon3.7
python app.py search
failed as below:python app.py index
seems working.