zapier-platform icon indicating copy to clipboard operation
zapier-platform copied to clipboard

[Bug]: Impossible to install with Python 3.12+

Open pascal-botpress opened this issue 4 months ago • 0 comments

Bug Description

Because of outdated dependencies, it is impossible to install the zapier-platform-core or zapier-platform-cli packages with recent versions of Python 3.

zapier-platform-cli depends on the package [email protected], which in turn depends on @npmcli/[email protected], which depends on @npmcli/[email protected], which depends on [email protected]. Unfortunately, because Python 3.12 removed distutils, node-gyp is unable to run, which fails the entire install.

The good news, however, is that this was fixed in node-gyp version 10+. Furthermore, yeoman-environment completely dropped its dependency on @npmcli/arborist in version 4+.

Thus, this issue can be fixed by upgrading the yeoman-environment dependency of zapier-platform-cli.

Reproduction Steps

  1. Install any stable version of Python 3 that is more recent than October of last year: all versions starting from 3.12 are affected.
  2. Set this version as your default Python version.
  3. Attempt to install zapier-platform-core with NPM.

Zapier Platform version

15.16.1

Node.js version

18.20.4

Your Operating System

Fedora 40 in WSL2 on Windows 11 Pro 23H2

npm/yarn version

10.7.0

App ID

No response

More Details

image

pascal-botpress avatar Oct 07 '24 15:10 pascal-botpress