'Invoke Python Method' Openai import error related

We are currently conducting OpenAI API linkage tests through the ‘Inoke Python Method’ in UiPath.

Here, the problematic part is that there is no problem with other library imports, but the openai library is not imported.

The Python code is the same, and it works normally when importing other libraries such as Pandas, but the openai library itself is not being imported.

If anyone has experienced an issue with this content or knows a solution, I would really appreciate it if you could let me know.

Thank you.

Hi @pkse76 ,
You can try activity Chat GPT Activity - RPA Component | UiPath Marketplace | Overview
Regards,
LNV

Thanks for pointing out another way. By the way, if a specific library fails to import and an error occurs, could an error occur depending on the version of UiPath?

Hi @pkse76 ,
In fact, I have not encountered this situation,
However make sure that we have the same project dependencies version in both the studio
Go to design tab → manage packages and there in project dependencies the packages must be of same Version.
Regards,
LNV

All right! I’ll check once more with what you said. Have a good day. Thank you!
If I have more questions later, I’ll ask again!

Thanks @pkse76
Happy automation