# Some issues when using the Ray Client

**URL:** <https://discuss.ray.io/t/some-issues-when-using-the-ray-client/517>\
**Category:** Uncategorized\
**Created:** [January 21, 2021, 3:14pm UTC](https://discuss.ray.io/t/some-issues-when-using-the-ray-client/517 "2021-01-21T15:14:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andee96](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/andee96/32/287_2.png) [@andee96](https://discuss.ray.io/u/andee96)\
**Post date:** [January 21, 2021, 3:14pm UTC](https://discuss.ray.io/t/some-issues-when-using-the-ray-client/517/1 "2021-01-21T15:14:29Z")

</div>

Hey everyone, I have been trying to connect to a ray cluster I setup on Kubernetes (using the relevant instructions in the docs) from a Jupyter notebook. I was directed to the Ray Client feature still in beta), which proved to be the perfect thing for what I needed.

I had to run the command specified in the [docs](https://docs.ray.io/en/master/ray-client.html), make sure that the `50051` port was exposed and then `kubectl port-forward`ed to my local machine. There I used the `ray.util.connect` function to connect to the ray server.

I initially ran into some issues that I would like to share. I encountered the following error:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ray/original/1X/ddbeeb2a3a8774c7961524e364e4edb35fd3ca05.jpeg)  
The connection to the client seemed to work fine but actually trying to run something failed.

Turns out the issue was that both the python and ray versions need to be the same between the client and server (python 3.7.7 and ray 2.0.0.dev0 in this case). Just wanted to let everyone know in case someone uses this feature! Is this expected behaviour? Do people know when this feature might come out of beta?

Thanks a lot!  
Andy

---

<div class="post-metadata">

**Author:** ![barakmich](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/barakmich/32/149_2.png) [@barakmich](https://discuss.ray.io/u/barakmich)\
**Post date:** [January 21, 2021, 6:06pm UTC](https://discuss.ray.io/t/some-issues-when-using-the-ray-client/517/2 "2021-01-21T18:06:42Z")

</div>

I’d be surprised if the Python version mattered (if it does, that’d be a really good bug to reproduce!) but the client versions needing to match is, for the moment, expected – part of why it’s beta is that the protocol between the two is maturing rapidly. The error you posted _looks_ (without having a full reproduction) like exactly that problem – that, I think, the server looks like it’s a little older than the client.

We’re evolving it quickly and we’ll remove beta when there’s a release (not a nightly) that we’re comfortable supporting long-term.

Hang in there 🙂 – but let me know how it works for you, and if you hit bugs do file issues!
