cubed icon indicating copy to clipboard operation
cubed copied to clipboard

Lithops version mismatch

Open TomNicholas opened this issue 1 year ago • 3 comments

I tried to re-run the quadratic means example with recent improvements to Cubed but got stuck on a Lithops version mismatch error

Exception: Lithops version mismatch. Host version 2.9.0 - Runtime version: 3.0.1

I can't seem to get these numbers to change - re-installing the local version of lithops via pip, or changing the requirements.txt file that should build the runtime environment doesn't seem to change either of them. I'm probably doing something dumb with my local env but it's annoying.

TomNicholas avatar Nov 15 '23 16:11 TomNicholas

That was the wrong conda env...

Now I have a new problem

FileNotFoundError: [Errno 2] No such file or directory: `/tmp/lithops_gcp_functions/cubed-runtime.zip`

TomNicholas avatar Nov 15 '23 16:11 TomNicholas

I tried to re-run the quadratic means example with recent improvements to Cubed but got stuck on a Lithops version mismatch error

Exception: Lithops version mismatch. Host version 2.9.0 - Runtime version: 3.0.1

I can't seem to get these numbers to change - re-installing the local version of lithops via pip, or changing the requirements.txt file that should build the runtime environment doesn't seem to change either of them. I'm probably doing something dumb with my local env but it's annoying.

Usually after bulding the runtime with some python version or lithops version, i.e 2.9.0, you'll have to deploy the function first. Otherwise the version mismatch error appears. lithops runtime build -f Dockerfile runtime_name lithops runtime deploy runtime_name

abourramouss avatar Nov 20 '23 10:11 abourramouss

Thanks @abourramouss.

I got it working by using the instructions at https://github.com/tomwhite/cubed/tree/main/examples/lithops/gcf, but using Python 3.9 rather than 3.8 (as that's the minimum for Cubed now):

conda create --name cubed-lithops-gcf-examples -y python=3.9

I also explicitly deleted the runtime to be sure that it was created from scratch

lithops runtime delete -b gcp_functions -d cubed-runtime

tomwhite avatar Nov 21 '23 17:11 tomwhite

Closing this as it's quite old - please reopen if it's still a problem

tomwhite avatar May 22 '24 09:05 tomwhite