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
I installed jupyter-ai, but jupyter labextension is abnormal as below.
jupyter labextension list
JupyterLab v3.6.3
/opt/conda/share/jupyter/labextensions
jupyterlab-execute-time v2.3.1 enabled OK (python, jupyterlab_execute_time)
jupyterlab-system-monitor v0.8.0 enabled OK (python, jupyterlab-system-monitor)
jupyterlab-topbar-extension v0.6.1 enabled OK (python, jupyterlab-topbar)
jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
jupyterlab_templates v0.4.0 enabled OK (python, jupyterlab_templates)
nbdime-jupyterlab v2.2.0 enabled OK
jupyter-matplotlib v0.11.3 enabled OK
@jupyter-lsp/jupyterlab-lsp v4.1.0 enabled OK (python, jupyterlab-lsp)
@jupyter-server/resource-usage v0.7.1 enabled OK (python, jupyter-resource-usage)
@jupyterlab/git v0.41.0 enabled OK (python, jupyterlab-git)
@jupyter-ai/core v0.7.0 enabled X (python, jupyter_ai)
@jupyter-widgets/jupyterlab-manager v5.0.7 enabled OK (python, jupyterlab_widgets)
"@jupyter-ai/core@0.7.0" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLabExtension Package
When restarting jupyterlab, the following error occurs.
2023-05-11 18:39:21,368 WARNING worker.py:1986 -- WARNING: 4 PYTHON worker processes have been started on node: d37889c4426a876c48c74e69e2193c4949a10e6e3f6d66591994e494 with address: xxxxxxx. This could be a result of using a large number of actors, or due to tasks blocked in ray.get() calls (see ray-project/ray#3644 for some discussion of workarounds).
2023-05-11 18:39:24,292 WARNING worker.py:1986 -- WARNING: 6 PYTHON worker processes have been started on node: d37889c4426a876c48c74e69e2193c4949a10e6e3f6d66591994e494 with address: xxxxx. This could be a result of using a large number of actors, or due to tasks blocked in ray.get() calls (see ray-project/ray#3644 for some discussion of workarounds).
(ConfigActor pid=835) 2023-05-11 18:39:27,279 ERROR worker.py:844 -- Exception raised in creation task: The actor died because of an error raised in its creation task, ray::config:ConfigActor.init() (pid=835, ip=192.168.105.250, repr=<jupyter_ai.actors.config.ConfigActor object at 0x7f6a4a712370>)
(ConfigActor pid=835) File "/opt/conda/lib/python3.8/site-packages/jupyter_ai/actors/config.py", line 20, in init
(ConfigActor pid=835) self._load()
(ConfigActor pid=835) File "/opt/conda/lib/python3.8/site-packages/jupyter_ai/actors/config.py", line 58, in _load
(ConfigActor pid=835) self.update(GlobalConfig(), True)
(ConfigActor pid=835) File "/opt/conda/lib/python3.8/site-packages/jupyter_ai/actors/config.py", line 26, in update
(ConfigActor pid=835) self._save(config)
(ConfigActor pid=835) File "/opt/conda/lib/python3.8/site-packages/jupyter_ai/actors/config.py", line 47, in _save
(ConfigActor pid=835) with open(self.save_path, 'w') as f:
(ConfigActor pid=835) FileNotFoundError: [Errno 2] No such file or directory: '/home/notebook/.local/share/jupyter/jupyter_ai/config.json'
When I press the settings button, the error message below is displayed.
When you enter a chat, the error below is displayed on the screen and an error log is also generated on the server.
[E 2023-05-11 18:40:19.179 ServerApp] Uncaught exception GET ...api/ai/config?1683798019147
HTTPServerRequest(protocol='http', host=', method='GET', uri='/api/ai/config?1683798019147', version='HTTP/1.1', remote_ip='')
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/tornado/web.py", line 1767, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/opt/conda/lib/python3.8/site-packages/tornado/web.py", line 3264, in wrapper
return method(self, *args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/jupyter_ai/handlers.py", line 322, in get
actor = ray.get_actor(ACTOR_TYPE.CONFIG)
File "/opt/conda/lib/python3.8/site-packages/ray/_private/client_mode_hook.py", line 105, in wrapper
return func(*args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/ray/_private/worker.py", line 2761, in get_actor
return worker.core_worker.get_named_actor_handle(name, namespace or "")
File "python/ray/_raylet.pyx", line 2372, in ray._raylet.CoreWorker.get_named_actor_handle
File "python/ray/_raylet.pyx", line 205, in ray._raylet.check_status
ValueError: Failed to look up actor with name 'config'. This could because 1. You are trying to look up a named actor you didn't create. 2. The named actor died. 3. You did not use a namespace matching the namespace of the actor.
[W 2023-05-11 18:40:19.189 ServerApp] wrote error: 'Unhandled error'
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/tornado/web.py", line 1767, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/opt/conda/lib/python3.8/site-packages/tornado/web.py", line 3264, in wrapper
return method(self, *args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/jupyter_ai/handlers.py", line 322, in get
actor = ray.get_actor(ACTOR_TYPE.CONFIG)
File "/opt/conda/lib/python3.8/site-packages/ray/_private/client_mode_hook.py", line 105, in wrapper
return func(*args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/ray/_private/worker.py", line 2761, in get_actor
return worker.core_worker.get_named_actor_handle(name, namespace or "")
File "python/ray/_raylet.pyx", line 2372, in ray._raylet.CoreWorker.get_named_actor_handle
File "python/ray/_raylet.pyx", line 205, in ray._raylet.check_status
ValueError: Failed to look up actor with name 'config'. This could because 1. You are trying to look up a named actor you didn't create. 2. The named actor died. 3. You did not use a namespace matching the namespace of the actor.
What can I do to make it work fine?
Reproduce
Go to '...'
Click on '...'
Scroll down to '...'
See error '...'
Expected behavior
Context
jupyter-ai version: 0.7.0
JupyterLab version: 3.6.3
Python version: 3.8
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.
The text was updated successfully, but these errors were encountered:
messiah1030k
changed the title
No such file or directory: '/home/notebook/.local/share/jupyter/jupyter_ai/config.json'
No such file or directory: '/home/notebook/.local/share/jupyter/jupyter_ai/config.json' (jupyter-ai 0.7.0)
May 11, 2023
@messiah1030k
It looks like the server is having problem writing the config file to your local disk. Can you check if the user launching JupyterLab has permissions writing to this path or the parent directories?
ls -l /home/notebook/.local/share/jupyter/jupyter_ai
@messiah1030k
I just noticed, issue #153 might be related. I have submitted fix in PR #161, that should fix this. We will cut a release shortly with this fix.
The problem was owner of that path.
I run pip install jupyter-ai as the root user, and run jupyterlab as another account, so it seems that the file is not written to that path.
After changing the owner of /home/notebook/.local/share/jupyter/jupyter_ai to a jupyterlab account, it works well.
Description
I installed jupyter-ai, but jupyter labextension is abnormal as below.
jupyter labextension list
JupyterLab v3.6.3
/opt/conda/share/jupyter/labextensions
jupyterlab-execute-time v2.3.1 enabled OK (python, jupyterlab_execute_time)
jupyterlab-system-monitor v0.8.0 enabled OK (python, jupyterlab-system-monitor)
jupyterlab-topbar-extension v0.6.1 enabled OK (python, jupyterlab-topbar)
jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
jupyterlab_templates v0.4.0 enabled OK (python, jupyterlab_templates)
nbdime-jupyterlab v2.2.0 enabled OK
jupyter-matplotlib v0.11.3 enabled OK
@jupyter-lsp/jupyterlab-lsp v4.1.0 enabled OK (python, jupyterlab-lsp)
@jupyter-server/resource-usage v0.7.1 enabled OK (python, jupyter-resource-usage)
@jupyterlab/git v0.41.0 enabled OK (python, jupyterlab-git)
@jupyter-ai/core v0.7.0 enabled X (python, jupyter_ai)
@jupyter-widgets/jupyterlab-manager v5.0.7 enabled OK (python, jupyterlab_widgets)
"@jupyter-ai/core@0.7.0" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLabExtension Package
When restarting jupyterlab, the following error occurs.
2023-05-11 18:39:21,368 WARNING worker.py:1986 -- WARNING: 4 PYTHON worker processes have been started on node: d37889c4426a876c48c74e69e2193c4949a10e6e3f6d66591994e494 with address: xxxxxxx. This could be a result of using a large number of actors, or due to tasks blocked in ray.get() calls (see ray-project/ray#3644 for some discussion of workarounds).
2023-05-11 18:39:24,292 WARNING worker.py:1986 -- WARNING: 6 PYTHON worker processes have been started on node: d37889c4426a876c48c74e69e2193c4949a10e6e3f6d66591994e494 with address: xxxxx. This could be a result of using a large number of actors, or due to tasks blocked in ray.get() calls (see ray-project/ray#3644 for some discussion of workarounds).
(ConfigActor pid=835) 2023-05-11 18:39:27,279 ERROR worker.py:844 -- Exception raised in creation task: The actor died because of an error raised in its creation task, ray::config:ConfigActor.init() (pid=835, ip=192.168.105.250, repr=<jupyter_ai.actors.config.ConfigActor object at 0x7f6a4a712370>)
(ConfigActor pid=835) File "/opt/conda/lib/python3.8/site-packages/jupyter_ai/actors/config.py", line 20, in init
(ConfigActor pid=835) self._load()
(ConfigActor pid=835) File "/opt/conda/lib/python3.8/site-packages/jupyter_ai/actors/config.py", line 58, in _load
(ConfigActor pid=835) self.update(GlobalConfig(), True)
(ConfigActor pid=835) File "/opt/conda/lib/python3.8/site-packages/jupyter_ai/actors/config.py", line 26, in update
(ConfigActor pid=835) self._save(config)
(ConfigActor pid=835) File "/opt/conda/lib/python3.8/site-packages/jupyter_ai/actors/config.py", line 47, in _save
(ConfigActor pid=835) with open(self.save_path, 'w') as f:
(ConfigActor pid=835) FileNotFoundError: [Errno 2] No such file or directory: '/home/notebook/.local/share/jupyter/jupyter_ai/config.json'
When I press the settings button, the error message below is displayed.
When you enter a chat, the error below is displayed on the screen and an error log is also generated on the server.
[E 2023-05-11 18:40:19.179 ServerApp] Uncaught exception GET ...api/ai/config?1683798019147
HTTPServerRequest(protocol='http', host=', method='GET', uri='/api/ai/config?1683798019147', version='HTTP/1.1', remote_ip='')
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/tornado/web.py", line 1767, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/opt/conda/lib/python3.8/site-packages/tornado/web.py", line 3264, in wrapper
return method(self, *args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/jupyter_ai/handlers.py", line 322, in get
actor = ray.get_actor(ACTOR_TYPE.CONFIG)
File "/opt/conda/lib/python3.8/site-packages/ray/_private/client_mode_hook.py", line 105, in wrapper
return func(*args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/ray/_private/worker.py", line 2761, in get_actor
return worker.core_worker.get_named_actor_handle(name, namespace or "")
File "python/ray/_raylet.pyx", line 2372, in ray._raylet.CoreWorker.get_named_actor_handle
File "python/ray/_raylet.pyx", line 205, in ray._raylet.check_status
ValueError: Failed to look up actor with name 'config'. This could because 1. You are trying to look up a named actor you didn't create. 2. The named actor died. 3. You did not use a namespace matching the namespace of the actor.
[W 2023-05-11 18:40:19.189 ServerApp] wrote error: 'Unhandled error'
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/site-packages/tornado/web.py", line 1767, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/opt/conda/lib/python3.8/site-packages/tornado/web.py", line 3264, in wrapper
return method(self, *args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/jupyter_ai/handlers.py", line 322, in get
actor = ray.get_actor(ACTOR_TYPE.CONFIG)
File "/opt/conda/lib/python3.8/site-packages/ray/_private/client_mode_hook.py", line 105, in wrapper
return func(*args, **kwargs)
File "/opt/conda/lib/python3.8/site-packages/ray/_private/worker.py", line 2761, in get_actor
return worker.core_worker.get_named_actor_handle(name, namespace or "")
File "python/ray/_raylet.pyx", line 2372, in ray._raylet.CoreWorker.get_named_actor_handle
File "python/ray/_raylet.pyx", line 205, in ray._raylet.check_status
ValueError: Failed to look up actor with name 'config'. This could because 1. You are trying to look up a named actor you didn't create. 2. The named actor died. 3. You did not use a namespace matching the namespace of the actor.
What can I do to make it work fine?
Reproduce
Expected behavior
Context
Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: