cubed
cubed copied to clipboard
Lithops version mismatch
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.
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`
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.1I can't seem to get these numbers to change - re-installing the local version of lithops via pip, or changing the
requirements.txtfile 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
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
Closing this as it's quite old - please reopen if it's still a problem