Skip to content

jina.excepts.BadConfigSource: --model #1021

@bbhxwl

Description

@bbhxwl

docker run -p 51009:51000 jinaai/clip-server --model CN-CLIP/ViT-L-14

 docker run -p 51009:51000  jinaai/clip-server --model CN-CLIP/ViT-L-14
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/jina/jaml/helper.py", line 197, in parse_config_source
    tmp = json.loads(path)
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.8/dist-packages/clip_server/__main__.py", line 21, in <module>
    f = Flow.load_config(
  File "/usr/local/lib/python3.8/dist-packages/jina/jaml/__init__.py", line 695, in load_config
    stream, s_path = parse_config_source(
  File "/usr/local/lib/python3.8/dist-packages/jina/jaml/helper.py", line 201, in parse_config_source
    raise BadConfigSource(path)
jina.excepts.BadConfigSource: --model
╭────────── 🆕 New version available! ───────────╮
│ You are using clip_server 0.8.2, but 0.8.3 is  │
│ available. You may upgrade it via pip install  │
│ -U clip_server. Read Changelog here.           │
╰────────────────────────────────────────────────╯

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions