Alteryx IO Discussions

Customize and extend the power of Alteryx with SDKs, APIs, custom tools, and more.
GELÖST

Custom Tool SDK Problem

cviki767
Atom

Hello guys, I'm having trouble importing openai library into my plugin. When i run my plugin with the sdk-cli test commands the openai library works and i get my results. But when i try installing the .yxi into designer after creating it i get these errors:

 

1. If i put the library import openai like in the first picture(cause1) i get the error in the second picture(error1)

2. If i put the library import openai like in the third picture(cause2) i get the error in the fourth picture(error2)

 

After installing the plugin into the designer, I've tried unzipping the main.pyz file from the Roaming/Alteryx/Tools/MyPlugin folder and there is no openai library present in the site-packages folder at all.(both examples)

Any help?

 

Thanks in advance 😀

2 ANTWORTEN 2
aneeshnazar
Alteryx
Alteryx

Did you add the openai library to your requirements-thirdparty.txt?

cviki767
Atom

I did not, thank you 😅