<@ULVA73B9P> is there a released version of prefec...
# ask-community
j
@Marvin is there a released version of prefect-kubernetes compatible with Prefect 3?
m
Yes, there is a released version of
prefect-kubernetes
that is compatible with Prefect 3.x. You can install it using the following command, which will ensure compatibility with your installed version of Prefect:
Copy code
bash
pip install prefect-kubernetes
If you don't have Prefect installed, this command will also install the latest version of Prefect. For more details, you can refer to the Prefect Kubernetes documentation.
j
That is what I've done. Here's a snippet from my requirments.txt: prefect==3.1.3 prefect-kubernetes But when my worker starts, I'm getting: Discovered type 'kubernetes' for work pool 'k8s'. Warning! Failed to load collection 'prefect_kubernetes': ImportError: cannot import name 'PrefectFlowRunFuture' from 'prefect.futures' (/usr/local/lib/python3.9/dist-packages/prefect/futures.py) Unable to start worker. Please ensure you have the necessary dependencies installed to run your desired worker type.
n
hi @Joe Blauer - can you upgrade prefect 3.1.3?
j
I was hoping to avoid it because the server I don't control is running 3.1.3, but it's beginning to look like I'll have to...
n
well, you could also use an earlier version of prefect-kubernetes right? like 0.5.3 for example we should update `prefect-kubernetes`'s dependency on
prefect
to avoid this error though generally speaking, these types of things are why i would recommend pinning versions when possible
j
Agree, I was looking for what version to pin to. I'll try 0.5.3
👍 1
While I have you, if I can swing it, can I go straight from 3.1.3 to 3.2.9 on the server? Will it upgrade the catalog accordingly?
n
here's that update I mentioned and yeah that should be fine, not sure what you mean by catalog but I'd just run any migrations with
prefect server database upgrade
and you should be good to go
j
yeah, I meant the server database. thanks!
catjam 1