# TypeError on Ray Cluster with Ray 1.2.0

**URL:** <https://discuss.ray.io/t/typeerror-on-ray-cluster-with-ray-1-2-0/883>\
**Category:** Kubernetes\
**Created:** [February 15, 2021, 9:48am UTC](https://discuss.ray.io/t/typeerror-on-ray-cluster-with-ray-1-2-0/883 "2021-02-15T09:48:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rico-ci](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/rico-ci/32/458_2.png) [@rico-ci](https://discuss.ray.io/u/rico-ci)\
**Post date:** [February 15, 2021, 9:48am UTC](https://discuss.ray.io/t/typeerror-on-ray-cluster-with-ray-1-2-0/883/1 "2021-02-15T09:48:54Z")

</div>

Hi there,

I tried to run the code from the official documentation ([Quick Start Cluster Autoscaling Demo — Ray v2.0.0.dev0](https://docs.ray.io/en/master/cluster/quickstart.html)) on one of my Ray worker nodes. However, I am running into the following type error when defining the remote function. Probably I’m doing something wrong but I thought it might be better to flag it up here as it might be related to Ray 1.2.0.

My Ray Cluster runs on EKS K8S with the Autoscaler Kubernetes Operator.

[EDIT]  
This happens **only** when using the django shell, not the vanilla python interactive shell.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ray/original/1X/955f1ea75b38b44437e2d46d0ebfbb781a553c1c.png)

---

<div class="post-metadata">

**Author:** ![Dmitri](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/dmitri/32/657_2.png) [@Dmitri](https://discuss.ray.io/u/Dmitri)\
**Post date:** [February 15, 2021, 11:06pm UTC](https://discuss.ray.io/t/typeerror-on-ray-cluster-with-ray-1-2-0/883/2 "2021-02-15T23:06:33Z")

</div>

hmm…Doesn’t look like a Ray-on-K8s issue per-se.  
@barakmich or @ericl might have a better idea of what’s going on here.

---

<div class="post-metadata">

**Author:** ![rico-ci](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/rico-ci/32/458_2.png) [@rico-ci](https://discuss.ray.io/u/rico-ci)\
**Post date:** [February 15, 2021, 11:20pm UTC](https://discuss.ray.io/t/typeerror-on-ray-cluster-with-ray-1-2-0/883/3 "2021-02-15T23:20:45Z")

</div>

I guess it might be some Django internal dependency managing or something along those lines. But good to know where I should start looking into! Thanks!
