OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

SQl Server, No module named 'revoscalepy.computecontext'

  • Thread starter Thread starter KoalaJ
  • Start date Start date
K

KoalaJ

Guest
I followed the steps here to install Python and configure Python runtime with SQL Server. When I ran this script

Code:
EXEC sp_execute_external_script @script=N'import sys;print(sys.version)',@language=N'Python'
GO

this error popped up:

Code:
Msg 39012, Level 16, State 14, Line 0
Unable to communicate with the runtime for 'Python' script for request id: A38DC621-AD74-4408- 
856E-70CBAFDD699F. Please check the requirements of 'Python' runtime.
STDERR message(s) from external script: 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'revoscalepy.computecontext'

But computercontext does exist in the revoscalepy folder, C:\Program Files\Python310\Lib\site-packages\revoscalepy\computecontext. What causes the above error?
<p>I followed the steps <a href="https://learn.microsoft.com/en-us/s...indows-install-sql-2022?view=sql-server-ver16" rel="nofollow noreferrer">here</a> to install Python and configure Python runtime with SQL Server. When I ran this script</p>
<pre><code>EXEC sp_execute_external_script @script=N'import sys;print(sys.version)',@language=N'Python'
GO
</code></pre>
<p>this error popped up:</p>
<pre><code>Msg 39012, Level 16, State 14, Line 0
Unable to communicate with the runtime for 'Python' script for request id: A38DC621-AD74-4408-
856E-70CBAFDD699F. Please check the requirements of 'Python' runtime.
STDERR message(s) from external script:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'revoscalepy.computecontext'
</code></pre>
<p>But computercontext does exist in the revoscalepy folder, C:\Program Files\Python310\Lib\site-packages\revoscalepy\computecontext. What causes the above error?</p>
 
Top