Skip to content
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

The pipeline cannot contain any Chinese characters #422

Open
peanutsugarlove opened this issue Feb 13, 2025 · 0 comments
Open

The pipeline cannot contain any Chinese characters #422

peanutsugarlove opened this issue Feb 13, 2025 · 0 comments

Comments

@peanutsugarlove
Copy link

When the pipeline contains Chinese, the pipeline cannot be loaded and an error is reported

async def on_startup(self):
# This function is called when the server is started.
print(f"on_startup:{name}")
print("--------------------------------")
print("不能含有中文")
print("--------------------------------")
pass

INFO: Started server process [35856]
INFO: Waiting for application startup.
Error loading module: wikipedia_pipeline
'gbk' codec can't decode byte 0xab in position 1138: illegal multibyte sequence
WARNING:root:No Pipeline class found in wikipedia_pipeline
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:9099 (Press CTRL+C to quit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant