You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---------------------------------------------------------------------------RaySerializationExceptionTraceback (mostrecentcalllast)
~/Workspace/ray/python/ray/worker.pyinstore_and_register(self, object_id, value, depth)
303ray.numbuf.store_list(object_id.id(), self.plasma_client.conn,
-->304 [value])
305break~/Workspace/ray/python/ray/serialization.pyinserialize(obj)
127 .format(type(obj)),
-->128obj)
129class_id=type_to_class_id[type(obj)]
RaySerializationException: Raydoesnotknowhowtoserializeobjectsoftype<class'xarray.core.dataarray.DataArray'>.
Duringhandlingoftheaboveexception, anotherexceptionoccurred:
RecursionErrorTraceback (mostrecentcalllast)
<ipython-input-1-002206058974>in<module>()
78data=xr.DataArray(np.random.randn(2, 3), coords={'x': ['a', 'b']}, dims=('x', 'y'))
---->9ray.put(data)
~/Workspace/ray/python/ray/worker.pyinput(value, worker)
1687object_id=worker.local_scheduler_client.compute_put_id(
1688worker.current_task_id, worker.put_index)
->1689worker.put_object(object_id, value)
1690worker.put_index+=11691returnobject_id~/Workspace/ray/python/ray/worker.pyinput_object(self, object_id, value)
348# Serialize and put the object in the object store.349try:
-->350self.store_and_register(object_id, value)
351exceptray.numbuf.numbuf_plasma_object_exists_errorase:
352# The object already exists in the object store, so there is no~/Workspace/ray/python/ray/worker.pyinstore_and_register(self, object_id, value, depth)
306exceptserialization.RaySerializationExceptionase:
307try:
-->308_register_class(type(e.example_object))
309warning_message= ("WARNING: Serializing objects of type "310"{} by expanding them as dictionaries "~/Workspace/ray/python/ray/worker.pyin_register_class(cls, pickle, worker)
1544ifnotpickle:
1545# Raise an exception if cls cannot be serialized efficiently by Ray.->1546serialization.check_serializable(cls)
1547worker.run_function_on_all_workers(register_class_for_serialization)
1548else:
~/Workspace/ray/python/ray/serialization.pyincheck_serializable(cls)
60"Ray cannot serialize it "61"efficiently.".format(cls))
--->62ifhasattr(obj, "__slots__"):
63raiseRayNotDictionarySerializable("The class {} uses '__slots__', so "64"Ray may not be able to serialize "~/anaconda3/lib/python3.6/site-packages/xarray/core/common.pyin__getattr__(self, name)
162# this avoids an infinite loop when pickle looks for the163# __setstate__ attribute before the xarray object is initialized-->164forsourceinself._attr_sources:
165withsuppress(KeyError):
166returnsource[name]
~/anaconda3/lib/python3.6/site-packages/xarray/core/dataarray.pyin_attr_sources(self)
485def_attr_sources(self):
486"""List of places to look-up items for attribute-style access"""-->487return [self.coords, LevelCoordinatesSource(self), self.attrs]
488489def__contains__(self, key):
~/anaconda3/lib/python3.6/site-packages/xarray/core/dataarray.pyinattrs(self)
499defattrs(self):
500"""Dictionary storing arbitrary metadata with this array."""-->501returnself.variable.attrs502503 @attrs.setter~/anaconda3/lib/python3.6/site-packages/xarray/core/dataarray.pyinvariable(self)
364 @property365defvariable(self):
-->366returnself._variable367368 @property
... last4framesrepeated, fromtheframebelow ...
~/anaconda3/lib/python3.6/site-packages/xarray/core/common.pyin__getattr__(self, name)
162# this avoids an infinite loop when pickle looks for the163# __setstate__ attribute before the xarray object is initialized-->164forsourceinself._attr_sources:
165withsuppress(KeyError):
166returnsource[name]
RecursionError: maximumrecursiondepthexceededincomparison
The text was updated successfully, but these errors were encountered:
The following fails (Python 3.6, Anaconda 4.3, MacOS). This requires
pip install xarray
.The error is the following.
The text was updated successfully, but these errors were encountered: