Sticky

Changes to Code by Zapier that affect Zaps using Python 2.7 code steps

  • 7 May 2021
  • 1 reply
  • 593 views

If you are using Code by Zapier, some changes may affect your Zaps that use Python 2.7 code steps.

You're still able to use Python code in your Zaps, but some Zaps will be automatically updated to use the current version of Python by June 1, 2021.

There is no action required.

By June 1, 2021, Zapier will attempt to automatically convert these code steps to Python 3 (specifically, the Python program 2to3 will be run against the code). The steps to be automatically converted are called “Run Python (Legacy).”  Most will be updated without issue, but at any time, you may choose to manually update these Zaps to use “Run Python” instead if you like.

If you choose to manually update from the Legacy version to the current version, it will clear the code you have entered, so be sure to follow the steps outlined in this post.

You'll need to edit each individual Zap that uses a “Run Python (Legacy)” trigger or action so it uses a “Run Python” trigger or action instead.

O18ExJIltjyTGpfYvDT85QFooEa9HEyvZXnSktV-3pNxJzgqwguCJhM_ISo2-C1yiE6Vgu8cF3V1SpJDXmotMsYFZq63dlwFyCz8j-8wthM-wJsipIsPjMbvF-7K3nEsdn3h3xYp

How to do this:

  1. Make a copy of your Zap and open it in a new window so you can refer to it as you make changes.

  2. In your original Zap, change the "Run Python (Legacy)" trigger or action step to use a "Run Python" trigger or action. Then click continue

  3. Referring to the copy of your Zap that you opened in a new window, copy the code itself and paste it into your original Zap as needed.

  4. Confirm all the following steps in your Zap are set up as expected, then test and turn on your Zap.

Here are your Zaps that are using “Run Python (Legacy)” steps.

What do I need to do?

No action is required. You may choose to manually update any Zaps that use a "Run Python (Legacy)" step, but this is not necessary at this time.

What’s going to happen on June 1, 2021?

On this date, Zapier’s systems will no longer support running code written in Python 2.7. Sometime before then, we will automatically attempt to convert any Python 2.7 code to its corresponding code in Python 3 so Zaps will run interrupted. In some cases, it’s possible that the resulting code will cause an error, and based on your error notification settings, an email will be sent to let you know.

What if I need some help with my Python code?

Python is an advanced programming language. If you're not familiar with Python, we recommend asking a developer to help update your Zaps. You can also hire a Zapier Expert to help. Zapier does not offer email support for code steps.

 

If you have questions about these changes to Code by Zapier, please reach out to our support team.


1 reply

Userlevel 1

As of my knowledge cutoff in September 2021, Code by Zapier does not officially support Python 2.7. However, if there are any changes to the Code by Zapier platform that affect Zaps using Python 2.7 code steps, it is best to refer to the official documentation or contact the Zapier support team for the most up-to-date information.

That being said, it's worth noting that Python 2.7 reached its end of life in January 2020, and the Python community strongly encourages migrating to Python 3.x versions for improved security, performance, and language features. If you have existing Python 2.7 code in your Zaps, Bageshwar Dham Sarkar Balaji Chhatarpur it is recommended to update it to Python 3.x to ensure compatibility with the latest platforms and libraries.

To update your Python code to Python 3.x, you may need to address any syntax differences, deprecated features, or library compatibility issues. The specific changes required will depend on the code you are using, so it's essential to review the Python documentation and seek guidance from the Python community or a developer familiar with Python migration.

Additionally, when making changes to your Zap's code steps, be sure to test and validate the updated code to ensure it functions as expected with the new Python version and any other services or APIs involved in your Zap.

Reply