Alteryx IO Discussions

Customize and extend the power of Alteryx with SDKs, APIs, custom tools, and more.
SOLVED

Version 3.8 was not found on our alteryx distribution

bb8000
6 - Meteoroid

Hello everyone, 

 

I am currently working on building a plugin for Alteryx Designer 2024.1. I upgraded my python version from 3.8 to 3.10.13 as instructed on Alteryx's website. I have already created a new conda environment (python 3.10.13, node 14, ayx_python_sdk: 2.4.1), updated my requirements-thirdparty.txt, and changed my python version to 3.10.13 in the ayx_workspace.json file. I built the YXI successfully with no error, however, when I tried running it on Alteryx, I received this error: 

 

" Version 3.8 was not found on our alteryx distribution. Please select another version."

 

I wonder if I am missing a file that I have to update as well, or this is an error with the new libraries.

 

Thank you for your help! 

 

UPDATE: I tried using the new environment (python 3.10.13, node 14, ayx_python_sdk: 2.4.1) to build the YXI into Alteryx Designer 2023.2 to see if it is running, since Alteryx Designer 2024.1 is giving me the error above. However, Alteryx Designer 2023.2 is giving me this error: 

 

" Version 3.10 was not found on our alteryx distribution. Please select another version."

 

This is strange because 2024.1 is telling me that I am using python 3.8, but 2023.2 is telling me that I am using 3.10, even though I am using the same conda environment (python 3.10.13, node 14, ayx_python_sdk: 2.4.1) to build the YXI. 

4 REPLIES 4
dandreis
Alteryx
Alteryx

There are a couple things that could be going wrong here:

 

1. There could be an old installation of the tool hanging around in your APPDATA. Try deleting all instances of your tool found here: 

 

C:\Users\<<YOUR ID>>\AppData\Roaming\Alteryx\Tools\<<TOOL NAME>>

 

you should also check the admin path:

 

C:\ProgramData\Alteryx\...\<<ToolName>​>

 

 

2. You could still be building the tool from a python 3.8 environment instead of a 3.10 one. Double check when you are running create_yxi that you are doing so from the python 3.10.13 environment!

Hope this helps!

bb8000
6 - Meteoroid

Hello dandreis, 

 

I tried what you said, and it does not pop up that same error anymore. However, it is giving me this error: "Failed to read port assignment". 

 

I have searched on the community and seems like it was because of protobuf, but I believe with the new sdk version 2.4.1, protobuf is not an issue anymore. I wonder if this is related to one of the libraries in SDK 2.4.1?

 

Thank you! 

bb8000
6 - Meteoroid

Hello dandreis, 

 

I tried what you said, and it does not pop up that same error anymore. However, it is giving me this error: "Failed to read port assignment". 

 

I have searched on the community and seems like it was because of protobuf, but I believe with the new sdk version 2.4.1, protobuf is not an issue anymore. I wonder if this is related to one of the libraries in SDK 2.4.1?

 

Thank you! 

dandreis
Alteryx
Alteryx

This could be due to a few reasons, the best way to debug it would be by running the following command:

 

python main.pyz start-sdk-tool-service ayx_plugins ToolName

 

This should give a more specific error and tell you if it's something related to a library issue or syntax errors in your python code.