Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel crashed for simple task #230

Open
chenyangkang opened this issue Jan 25, 2024 · 0 comments
Open

Kernel crashed for simple task #230

chenyangkang opened this issue Jan 25, 2024 · 0 comments

Comments

@chenyangkang
Copy link

I got kernal crashed with simple task, in jupyter environment, using swifter v1.4.0 and ray v2.9.1:

# face data
dat = pd.DataFrame({
    'x':np.random.uniform(0,1000, 100000),
    'label':[int(i) for i in np.random.uniform(0,10, 100000)]
})

dat.swifter.groupby('label').apply(lambda x:print(x))

output:

2024-01-25 17:13:36,271	ERROR services.py:1329 -- Failed to start the dashboard , return code 1
2024-01-25 17:13:36,273	ERROR services.py:1354 -- Error should be written to 'dashboard.log' or 'dashboard.err'. We are printing the last 20 lines for you. See 'https://docs.ray.io/en/master/ray-observability/ray-logging.html#logging-directory-structure' to find where the log file is.
2024-01-25 17:13:36,293	ERROR services.py:1398 -- 
The last 20 lines of [/tmp/ray/session_2024-01-25_17-13-34_550518_9979/logs/dashboard.log](https://file+.vscode-resource.vscode-cdn.net/tmp/ray/session_2024-01-25_17-13-34_550518_9979/logs/dashboard.log) (it contains the error message from the dashboard): 
  File "/Users/chenyangkang/miniforge3/lib/python3.9/site-packages/ray/dashboard/modules/log/log_manager.py", line 8, in <module>
    from ray.util.state.common import (
  File "/Users/chenyangkang/miniforge3/lib/python3.9/site-packages/ray/util/state/__init__.py", line 1, in <module>
    from ray.util.state.api import (
  File "/Users/chenyangkang/miniforge3/lib/python3.9/site-packages/ray/util/state/api.py", line 17, in <module>
    from ray.util.state.common import (
  File "/Users/chenyangkang/miniforge3/lib/python3.9/site-packages/ray/util/state/common.py", line 416, in <module>
    class ActorState(StateSchema):
  File "pydantic/dataclasses.py", line 260, in pydantic.dataclasses.dataclass.wrap
  File "pydantic/dataclasses.py", line 186, in pydantic.dataclasses._process_class
  File "pydantic/main.py", line 1006, in pydantic.main.create_model
  File "pydantic/main.py", line 205, in pydantic.main.ModelMetaclass.__new__
  File "pydantic/fields.py", line 491, in pydantic.fields.ModelField.infer
  File "pydantic/fields.py", line 421, in pydantic.fields.ModelField.__init__
  File "pydantic/fields.py", line 537, in pydantic.fields.ModelField.prepare
  File "pydantic/fields.py", line 641, in pydantic.fields.ModelField._type_analysis
  File "/Users/chenyangkang/miniforge3/lib/python3.9/typing.py", line 847, in __subclasscheck__
    return issubclass(cls, self.__origin__)
TypeError: issubclass() arg 1 must be a class
2024-01-25 17:13:36,416	INFO worker.py:1724 -- Started a local Ray instance.
The Kernel crashed while executing code in the the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. Click [here](https://aka.ms/vscodeJupyterKernelCrash) for more info. View Jupyter [log](command:jupyter.viewOutput) for further details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant