# Unable to import module 'lambda\_function': No module named 'hubspot'

**URL:** <https://community.hubspot.com/t/unable-to-import-module-lambda-function-no-module-named-hubspot/80700>\
**Category:** APIs & Integrations\
**Tags:** python, oauth\
**Created:** [May 6, 2023, 1:56am UTC](https://community.hubspot.com/t/unable-to-import-module-lambda-function-no-module-named-hubspot/80700 "2023-05-06T01:56:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parvind](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/parvind/32/91257_2.png) [@Parvind](https://community.hubspot.com/u/Parvind)\
**Post date:** [May 6, 2023, 1:56am UTC](https://community.hubspot.com/t/unable-to-import-module-lambda-function-no-module-named-hubspot/80700/1 "2023-05-06T01:56:37Z")

</div>

Hello everyone,

I’m experiencing an error while trying to integrate OpenAI ChatGPT StepFunction Statemachine with Hubspot. I’ve tried several possible solutions, but unfortunately, none of them have resolved the issue.

To provide some background, I started with Lambda, but then switched to SAM as I thought it might be a local environment issue.

However, I’m still facing the same error.

If anyone has encountered a similar issue or has any suggestions for troubleshooting, please let me know. Thank you in advance for your help!

Cheers
