Reputation: 19993
Is it possible to update Python setuptools
on Heroku?
I get this error when deploying to Heroku:
remote: ERROR: google-auth 1.18.0 has requirement setuptools>=40.3.0, but you'll have setuptools 39.0.1 which is incompatible.
Upvotes: 1
Views: 540
Reputation: 69
You can add the line setuptools==40.3.0
to your requirements.txt
file and it will work.
You could also try to update your python version in the runtime.txt
file because I think heroku update setuptools directly with python module updates.
Upvotes: 0
Reputation: 137098
The version of setuptools
appears to be hard-coded into the heroku/python
buildpack, with the latest release (tagged as v170
) using setuptools-39.0.1
. The master
branch shows the same thing, so I don't expect to see an official release upgrading setuptools
anytime soon.
The easiest solution might be to use an older version of google-auth
that doesn't require newer setuptools
. v1.6.3
looks like it should work.
You could try explicitly depending on setuptools>=40.3.0
in your requirements.txt
or Pipfile
, though I'm not sure how well that will work.
Or you could fork the heroku/python
buildpack, modify it, and use it, though the maintenance burden of doing so is likely to be high. There might even be an existing third-party buildpack that does what you want, though I didn't see one on a quick search.
Upvotes: 3