cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Installing Marketplace Listing via Python SDK...

ScottH
New Contributor

I am trying to use the Databricks Python SDK to install a Databricks Marketplace listing to Unity Catalog. I am getting stuck on how to provide a valid consumer terms version when passing the "accepted_consumer_terms" parameter to the w.consumer_installations.create() function. See the code in the screenshot below...

In this case, I am attempting to install one of the free Marketplace listings (Arline Performance Data: id=e913bea3-9a37-446c-a667-73724e7ef73e).

Where do I find (how do I determine) a valid value for this version parameter highlighted in yellow in the screenshot?? I've looked at the Marketplace listing and I don't see anything that make sense to plug in there. A valid "accepted_consumer_terms" parameter is required to install the listing.

I am using version 0.63.0 of the Python SDK. 

ScottH_0-1756486791644.png

1 ACCEPTED SOLUTION

Accepted Solutions

szymon_dybczak
Esteemed Contributor III

Hi @ScottH ,

It took me about 2 hours to make it right, but here it is. You need to provide valid date.

szymon_dybczak_0-1756582313910.png

 

And you can ask, from where that date is coming from? It's coming from consumer listing:

 

listings = w.consumer_listings.get(id= 'e913bea3-9a37-446c-a667-73724e7ef73e')

print(listings)

 

This should be much better documented. I'll raise an github issue and notify team about this. 

szymon_dybczak_0-1756582096455.png

As a bonus, I think I've found bug within ConsumerListings search function. So it seems python sdk requires a bit work to make it usable for users 😄

View solution in original post

3 REPLIES 3

szymon_dybczak
Esteemed Contributor III

Hi @ScottH ,

It took me about 2 hours to make it right, but here it is. You need to provide valid date.

szymon_dybczak_0-1756582313910.png

 

And you can ask, from where that date is coming from? It's coming from consumer listing:

 

listings = w.consumer_listings.get(id= 'e913bea3-9a37-446c-a667-73724e7ef73e')

print(listings)

 

This should be much better documented. I'll raise an github issue and notify team about this. 

szymon_dybczak_0-1756582096455.png

As a bonus, I think I've found bug within ConsumerListings search function. So it seems python sdk requires a bit work to make it usable for users 😄

Wow. Well done. I would not have figured that out. Thanks so much.

szymon_dybczak
Esteemed Contributor III

No problem @ScottH , glad that I could help 🙂