TypeError: __init__() got an unexpected keyword argument 'Service'
时间: 2023-08-02 20:08:05 浏览: 905
这个错误通常是因为在调用某个函数或方法时,传入了不被支持的关键字参数。根据你提供的引用内容,这个错误可能是由于使用了不正确的参数导致的。
引用\[3\]中提到了一个类似的错误,其中错误信息是"TypeError: init() got an unexpected keyword argument 'service_log_path'"。这个错误是由于在使用RobotFramework时,传入了不支持的关键字参数'service_log_path'导致的。
根据你的问题,错误信息是"TypeError: __init__() got an unexpected keyword argument 'Service'"。根据这个错误信息,可能是在调用某个函数或方法时,传入了不支持的关键字参数'Service'。你可以检查一下你的代码,确认是否正确传入了参数。如果你使用的是某个库或框架,可以查阅相关文档,确认正确的参数名称和用法。
总结来说,这个错误是由于传入了不被支持的关键字参数导致的。你可以检查一下你的代码,确认是否正确传入了参数,并参考相关文档来解决这个问题。
#### 引用[.reference_title]
- *1* [Pycharm报错:TypeError: __init__() got an unexpected keyword argument ‘n_jobs](https://blog.csdn.net/weixin_46645965/article/details/130738222)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Python出现TypeError: __init__ got an unexpected keyword argument ‘autocompletion‘错](https://blog.csdn.net/ai52learn/article/details/130995288)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [RobotFramework error - TypeError: __init__() got an unexpected keyword argument ‘service_log_path](https://blog.csdn.net/weixin_45014379/article/details/131224717)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文
相关推荐
![-](https://img-home.csdnimg.cn/images/20241231044930.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231044930.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)