I am attempting to learn more about the machine learning capabilities of SQL 2017.
However, when I attempt to run Python scripts, I keep getting the error highlighted in the subject.
I have reinstalled SQL Server several times, with no improvement.
At one point, I was looking through the EXTLAUNCHERLOG and noticed the R seemed to have started OK.
The log follows:
EXTLAUNCHERLOG
2018-03-26 15:17:11.926 Privilege SeAssignPrimaryTokenPrivilege is present in launchpad process token.
2018-03-26 15:17:11.926 Privilege SeChangeNotifyPrivilege is present in launchpad process token.
2018-03-26 15:17:11.926 Privilege SeIncreaseQuotaPrivilege is present in launchpad process token.
2018-03-26 15:17:11.926 Launchpad process is a part of Service Group. Launchpad does have SeServiceLogonRight.
2018-03-26 15:17:11.973 Negotiated Runtime Version for launcher RLauncher.dll is 2
2018-03-26 15:17:11.973 Got API for launcher RLauncher.dll with version 2
2018-03-26 15:17:11.973 Successfully loaded launcher RLauncher.dll and negotiated version
2018-03-26 15:17:12.004 Successfully initialized launcher RLauncher.dll
2018-03-26 15:17:12.004 Successfully found the launcher interfaces for launcher RLauncher.dll
2018-03-26 15:17:12.004 Successfully registered the launchcontext for launcher RLauncher.dll
2018-03-26 15:17:12.004 Successfully registered the launcher RLauncher.dll for the scriptType 1
2018-03-26 15:17:12.004 Negotiated Runtime Version for launcher Pythonlauncher.dll is 2
2018-03-26 15:17:12.004 Got API for launcher Pythonlauncher.dll with version 2
2018-03-26 15:17:12.004 Successfully loaded launcher Pythonlauncher.dll and negotiated version
2018-03-26 15:17:12.019 InitLauncher failed! Error: 0x80004005
2018-03-26 15:17:12.019 Failed to initialize the launcher Pythonlauncher.dll
2018-03-26 15:17:12.019 User Config data file: C:\Program Files\Microsoft SQL Server\MSSQL14.MS_SQL2017_DEV3\MSSQL\Binn\SQLRConfigData
2018-03-26 15:17:12.019 User Config key file: C:\Program Files\Microsoft SQL Server\MSSQL14.MS_SQL2017_DEV3\MSSQL\Binn\SQLRConfig
2018-03-26 15:17:12.644 Physical user pool has been initialized with 21 users.
2018-03-26 15:17:12.660 Security Context Manager is initialized successfully.
2018-03-26 15:17:12.660 Satellite Session Manager is initialized successfully.
2018-03-26 15:17:12.660 Server local connection provider is ready to accept connection on [ \\.\pipe\sqlsatellitelaunchMS_SQL2017_DEV3 ].
2018-03-26 15:17:12.660 Launchpad started to listen on named pipe \\.\pipe\sqlsatellitelaunchMS_SQL2017_DEV3.
2018-03-26 15:17:12.660 MSSQLLaunchpad$MS_SQL2017_DEV3 service successfully started.
I then ran through the R tutorial scripts and they all seemed to run OK, or at the very least, they did not give errors.
So then I went back to trying Python.
When I run a Python script, as shown in the sample below,
'
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
I get the error as shown here:
Msg 39021, Level 16, State 1, Line 1
Unable to launch runtime for 'Python' script. Please check the configuration of the 'Python' runtime.
Msg 39019, Level 16, State 2, Line 1
An external script error occurred:
Unable to launch the runtime. ErrorCode 0x80070490: 1168(Element not found.).
Please advise.
Many thanks.