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

❗❗[Server]declarative() got an unexpected keyword argument 'property' #2512

Closed
Plutoisme opened this issue Oct 9, 2022 · 9 comments
Closed
Assignees
Labels

Comments

@Plutoisme
Copy link

按照官网教程:https://aistudio.baidu.com/aistudio/projectdetail/4668770?forkThirdPart=1
在服务器端部署paddle时:

进入根目录

cd /home/aistudio/PaddleSpeech

开启服务

paddlespeech_server start --config_file ./paddlespeech/server/conf/application.yaml

报错显示:
[2022-10-09 11:30:23,153] [ INFO] - start to init the engine
[2022-10-09 11:30:23,154] [ INFO] - asr : python engine.
[2022-10-09 11:30:31,894] [ ERROR] - Failed to start server.
[2022-10-09 11:30:31,895] [ ERROR] - declarative() got an unexpected keyword argument 'property'

求解,个人猜测可能是版本问题遗留的一个bug?

@yt605155624
Copy link
Collaborator

参考 #2387 修改 log 等级获取更多信息

@Plutoisme
Copy link
Author

参考 #2387 修改 log 等级获取更多信息

按照链接所提到的修改方式,在log.py和executor.py两个文件下进行了logging.INFO->logging.DEBUG的修改,执行paddlespeech_server start --config_file ./paddlespeech/server/conf/application.yaml命令报错仍旧没有多余的补充信息。

PS:我是在paddle的fork了项目,直接使用AI STUDIO运行的。

@zh794390558
Copy link
Collaborator

zh794390558 commented Oct 9, 2022

property 是paddle 2.4rc 中新增的功能,如果用到paddlespeech develop的代码的话,需要使用paddle 的 dev版本或 >=2.4rc

@yt605155624 yt605155624 changed the title 服务器端,paddle部署问题 [Server]declarative() got an unexpected keyword argument 'property' Oct 9, 2022
@yt605155624 yt605155624 changed the title [Server]declarative() got an unexpected keyword argument 'property' ❗❗[Server]declarative() got an unexpected keyword argument 'property' Oct 21, 2022
@yt605155624
Copy link
Collaborator

安装 paddlepaddle-gpu 2.4rc:

python3 -m pip install paddlepaddle-gpu==2.4.0rc0 -i https://mirror.baidu.com/pypi/simple

@JYCcx
Copy link

JYCcx commented Oct 23, 2022

使用aistudio运行deep speed和在本地环境运行时都出现了没有data/mean_std的情况和以下问题
1666521220085

@yt605155624
Copy link
Collaborator

@JYCcx 参考 #2557 看看最新版的教程是否已经可以了,另外类似问题建议新开一个 issue,你的这个问题和此 issue 没有任何关系,容易被我们漏掉

@stale
Copy link

stale bot commented Dec 21, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale label Dec 21, 2022
@stale
Copy link

stale bot commented Jan 21, 2023

This issue is closed. Please re-open if needed.

@shenhua4286
Copy link

property 是paddle 2.4rc 中新增的功能,如果用到paddlespeech develop的代码的话,需要使用paddle 的 dev版本或 >=2.4rc

升级版本成功解决

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

No branches or pull requests

5 participants