---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-15-ecf03dc65c19> in <module>
----> 1 cam.focuser.position
/opt/conda/lib/python3.9/site-packages/huntsman/pocs/focuser/pyro.py in position(self)
19 def position(self):
20 """ Current encoder position of the focuser """
---> 21 return self._proxy.get("position", "focuser")
22
23 @position.setter
/opt/conda/lib/python3.9/site-packages/Pyro5/client.py in __call__(self, *args, **kwargs)
474 for attempt in range(self.__max_retries + 1):
475 try:
--> 476 return self.__send(self.__name, args, kwargs)
477 except (errors.ConnectionClosedError, errors.TimeoutError):
478 # only retry for recoverable network errors
/opt/conda/lib/python3.9/site-packages/Pyro5/client.py in _pyroInvoke(self, methodname, vargs, kwargs, flags, objectId)
241 return _StreamResultIterator(streamId, self)
242 if msg.flags & protocol.FLAGS_EXCEPTION:
--> 243 raise data # if you see this in your traceback, you should probably inspect the remote traceback as well
244 else:
245 return data
TypeError: don't know how to serialize class <class 'numpy.int64'>. Give it vars() or an appropriate __getstate__
When running pocs, this error occurs only when using the astromechanics ->