cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

What version of Python is used for the 16.1 runtime

unj1m
New Contributor III

I'm trying to create a spark udf for a registered model and getting:

Exception: Python versions in the Spark Connect client and server are different. To execute user-defined functions, client and server should have the same minor Python version. Please update the Python version in the client. You can check the current Python version on the server by running `spark.sql('select current_version()').show()` or by consulting Databricks release notes. Release notes for cluster compute can be found at https://docs.databricks.com/en/release-notes/runtime/index.html and release notes for serverless can be found at https://docs.databricks.com/en/release-notes/serverless.html.

But

>>> spark.sql('select current_version()').show(truncate=False)
+-------------------------------------------------------------------------------------------------------------------+
|current_version() |
+-------------------------------------------------------------------------------------------------------------------+
|{16.1.x-photon-scala2.12, NULL, bb77706b447f7a5eb0b80ed951276c31f44da631, b3638694ebd6dce2d742ae94b812e7b0302df1d0}|
+-------------------------------------------------------------------------------------------------------------------+

And the 16.x release notes don't say what Python version is used.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Alberto_Umana
Databricks Employee
Databricks Employee
3 REPLIES 3

Alberto_Umana
Databricks Employee
Databricks Employee

Hi @unj1m,

Python version for DBR version 16.X is 

  • Python: 3.12.3

https://docs.databricks.com/en/release-notes/runtime/16.1.html

unj1m
New Contributor III

Dang, I was looking for 3.11. My bad. 😞 

Alberto_Umana
Databricks Employee
Databricks Employee

No problem! 😁

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group