Can't deploy the python balena-sdk to devices

When trying to install the balena-SDK with:

RUN pip install pytz && pip install protobuf==3.9.0 && pip install psutil==5.6.3 && pip install balena-sdk

The following appears in the builder.

Could not find a version that satisfies the requirement cffi!=1.11.3,>=1.8 (from versions: )
[main]
[main] No matching distribution found for cffi!=1.11.3,>=1.8

Build logs here, support access granted to application.

I want to use the sdk to update a devices’s tags from that device. If this isn’t possible, I can go back to using API routes, but I would prefer not to.

Thanks
-Thomas

Hi there, it seems the reason is with some base images pip is outdated and it cannot resolve cffi correctly. If you run pip install --upgrade pip before trying to install the sdk it should work fine. Let me know how it goes.

Hey @sradevski

That method worked. Thanks!

-Thomas