No module named 'hubspot.crm' error when using 'from hubspot.crm.deals import ...'

WSuren
Member

Hello there,

 

I'd like to use Hubspot's newest API and I really would like some help. I have a Cloud Function (python) on Google Cloud Platform where I run the following code (to test):

 

Code

def hello_world(request):
import hubspot
from hubspot.crm.deals import BatchInputSimplePublicObjectBatchInput
return 'Success'
 
And I get the following error:
from hubspot.crm.deals import BatchInputSimplePublicObjectBatchInput

ModuleNotFoundError: No module named 'hubspot.crm'

 

The installed packages are
hubspot
simplejson
requests
delorean
 
Do I need to install an extra package? Thanks for your help!
0 Upvotes
1 Reply 1
dennisedson
Community Manager

@JBeatty , could you lend a hand here?

Thanks,

Dennis




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
0 Upvotes