This topic was automatically generated from Slack. You can find the original thread here.
Is it possible to use a python version that is not 12. I need to use Snowflake Snowpark that only works with versions < 12.
This topic was automatically generated from Slack. You can find the original thread here.
Is it possible to use a python version that is not 12. I need to use Snowflake Snowpark that only works with versions < 12.
You should visit Pipedream’s Python documentation for the latest details on Python support, but I’ll do my best to answer. Pipedream currently supports Python 3.8 for running Python code in workflows. If you need to use a specific version of a Python package, you can specify the version using a magic comment in your code. However, you cannot change the Python runtime version itself in Pipedream workflows. For your requirement to use Snowflake Snowpark, which requires a Python version less than 12, you should be able to use it with the current Python 3.8 environment provided by Pipedream. If you encounter any issues or need further assistance, please visit Pipedream Support for more options.
“However, you cannot change the Python runtime version itself in Pipedream workflows.”
I’d need to change it for one of my workflows… How to do that ?
Hi currently you can’t use another Python version
was there a workaround for this? I can’t remember
you can pin older versions of Python / Node.js modules so that way you can use a version that is compatible with <12 Python
Well, at least you definitely can in Node.js, but I’m not 100% sure if Python package pinning is out yet based on this GH issue: [FEATURE] Pin specific versions of Python packages · Issue #7509 · PipedreamHQ/pipedream · GitHub
I get an error when adding # pipedream add-package snowflake-snowpark-python
Command failed: python3 -m pip install --target=/tmp/pdg/dist/python -r requirements.txt --upgrade WARNING: The directory ‘/home/sbx_user1051/.cache/pip’ or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo’s -H flag. ERROR: Ignored the following versions that require a different python version: 0.10.0 Requires-Python ==3.8.; 0.11.0 Requires-Python ==3.8.; 0.12.0 Requires-Python ==3.8.; 0.6.0 Requires-Python ==3.8.; 0.7.0 Requires-Python ==3.8.; 0.8.0 Requires-Python ==3.8.; 0.9.0 Requires-Python ==3.8.; 1.0.0 Requires-Python ==3.8.; 1.1.0 Requires-Python ==3.8.; 1.10.0 Requires-Python >=3.8, <3.12; 1.11.0 Requires-Python >=3.8, <3.12; 1.11.1 Requires-Python >=3.8, <3.12; 1.12.0 Requires-Python >=3.8, <3.12; 1.12.1 Requires-Python >=3.8, <3.12; 1.13.0 Requires-Python >=3.8, <3.12; 1.14.0 Requires-Python <3.12,>=3.8; 1.15.0 Requires-Python <3.12,>=3.8; 1.16.0 Requires-Python <3.12,>=3.8; 1.17.0 Requires-Python <3.12,>=3.8; 1.18.0 Requires-Python <3.12,>=3.8; 1.19.0 Requires-Python <3.12,>=3.8; 1.2.0 Requires-Python ==3.8.; 1.20.0 Requires-Python <3.12,>=3.8; 1.21.0 Requires-Python .12,>=3.8; 1.21.1 Requires-Python <3.12,>=3.8; 1.22.0 Requires-Python <3.12,>=3.8; 1.22.1 Requires-Python <3.12,>=3.8; 1.23.0 Requires-Python <3.12,>=3.8; 1.24.0 Requires-Python <3.12,>=3.8; 1.3.0 Requires-Python ==3.8.; 1.4.0 Requires-Python ==3.8.; 1.5.0 Requires-Python >=3.8, <3.10; 1.5.1 Requires-Python >=3.8, <3.11; 1.6.0 Requires-Python >=3.8, <3.11; 1.6.1 Requires-Python >=3.8, <3.11; 1.7.0 Requires-Python >=3.8, <3.11; 1.8.0 Requires-Python >=3.8, <3.11; 1.9.0 Requires-Python >=3.8, <3.12 ERROR: Could not find a version that satisfies the requirement snowflake-snowpark-python==1.24.0 (from versions: none) [notice] A new release of pip is available: 24.2 → 24.3.1 [notice] To update, run: pip install --upgrade pip ERROR: No matching distribution found for snowflake-snowpark-python==1.24.0
Support for pinning Python package versions should be out! I forgot to close that ticket, but that should work. Take a look at this comment for directions on how to use that. You should be able to pin that package to an older version to see if that helps