towhee-io / towhee

Towhee is a framework that is dedicated to making neural data processing pipelines simple and fast.
https://towhee.io
Apache License 2.0
3.13k stars 246 forks source link

[Bug]: [Weekly]Some op failed reporting 'IndentationError: expected an indented block' #2390

Closed NicoYuan1986 closed 1 year ago

NicoYuan1986 commented 1 year ago

Is there an existing issue for this?

Current Behavior

Some op failed reporting 'IndentationError: expected an indented block'.

2023-02-08T15:29:43.6498753Z 2023-02-08 15:29:43.648 | DEBUG    | __main__:execute_ops:163 - Running extracted readme for /workspace/towhee_CI/hub_operator/sentence-embedding-sbert
2023-02-08T15:29:43.6791207Z   File "/workspace/towhee_CI/hub_operator/testcases/test_sentence-embedding-sbert.py", line 23
2023-02-08T15:29:43.6792902Z     util.http_get('https://sbert.net/datasets/stsbenchmark.tsv.gz', sts_dataset_path)
2023-02-08T15:29:43.6793756Z     ^
2023-02-08T15:29:43.6794423Z IndentationError: expected an indented block
2023-02-08T15:29:43.6819542Z 2023-02-08 15:29:43.681 | ERROR    | __main__:execute_ops:167 - Fail to run readme for 4: operator https://towhee.io/sentence-embedding/sbert

Expected Behavior

pass

Steps To Reproduce

No response

Environment

- Towhee version(e.g. v0.1.3 or 8b23a93):
- OS(Ubuntu or CentOS):
- CPU/Memory:
- GPU:
- Others:

Anything else?

No response

NicoYuan1986 commented 1 year ago
  1. link: https://github.com/towhee-io/towhee/actions/runs/4088900552/jobs/7126498094
  2. failed op: https://towhee.io/sentence-embedding/sbert

I think it's something wrong with test script. in website: image in test file: image

The indentation disappeared.

binbinlv commented 1 year ago

You could try the right code locally, and if no problem, then try to fix the test script.

NicoYuan1986 commented 1 year ago

Local run perfectly

NicoYuan1986 commented 1 year ago

Not reproduced.