Ubuntu 18.04服务器上的SQL SERVER 2019:无法使用机器学习服务,错误

2024-09-27 21:22:52 发布

您现在位置:Python中文网/ 问答频道 /正文

我在SQL Server 2019 linux ubuntu服务器上安装了SQL Server机器学习服务。我按照microsoft网站的说明进行操作。我运行此代码以验证安装:

EXEC sp_execute_external_script  
@language =N'Python', 
@script=N' 
OutputDataSet = InputDataSet; 
', 
@input_data_1 =N'SELECT 1 AS hello' 
WITH RESULT SETS (([hello] int not null)); 
GO

我得到以下错误:

Msg 39012, Level 16, State 14, Line 0
Unable to communicate with the runtime for 'Python' script for request id: 41AC30B4-A9A4-4418-A2C3-7DEE8DEDBC89. Please check the requirements of 'Python' runtime.

STDERR message(s) from external script: 
SqlSatelliteCall error: collate_byname<char>::collate_byname failed to construct for en_US.utf8Received the termination signal 1 from parent, terminating BxlServer of pid=23

STDOUT message(s) from external script: 
SqlSatelliteCall function failed. Please see the console output for more information.
Traceback (most recent call last):
  File "/opt/mssql/mlservices/libraries/PythonServer/revoscalepy/computecontext/RxInSqlServer.py", line 605, in rx_sql_satellite_call
    rx_native_call("SqlSatelliteCall", params)
  File "/opt/mssql/mlservices/libraries/PythonServer/revoscalepy/RxSerializable.py", line 375, in rx_native_call
    ret = px_call(functionname, params)
RuntimeError: revoscalepy function failed.

我如何解决这个问题


Tags: thetofromhelloforsqlserverscript

热门问题