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

scenario where jupyter ai extension fails to load #562

Closed
jharonfe opened this issue Jan 3, 2024 · 4 comments
Closed

scenario where jupyter ai extension fails to load #562

jharonfe opened this issue Jan 3, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@jharonfe
Copy link

jharonfe commented Jan 3, 2024

Description

Encountering an issue where the jupyter_ai extension fails to load and emits the following set of messages, error message at the bottom. All the extension log messages are included for context.

[I 2024-01-03 15:35:27.185 AiExtension] Configured provider allowlist: None
[I 2024-01-03 15:35:27.185 AiExtension] Configured provider blocklist: None
[I 2024-01-03 15:35:27.185 AiExtension] Configured model allowlist: None
[I 2024-01-03 15:35:27.185 AiExtension] Configured model blocklist: None
[I 2024-01-03 15:35:27.185 AiExtension] Configured model parameters: {}
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider ai21.
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider bedrock.
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider bedrock-chat.
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider anthropic.
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider anthropic-chat.
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider azure-chat-openai.
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider cohere.
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider gpt4all.
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider huggingface_hub.
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider openai.
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider openai-chat.
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider openai-chat-new.
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider qianfan.
[I 2024-01-03 15:35:27.202 AiExtension] Registered model provider sagemaker-endpoint.
[I 2024-01-03 15:35:27.219 AiExtension] Registered embeddings model provider bedrock.
[I 2024-01-03 15:35:27.219 AiExtension] Registered embeddings model provider cohere.
[I 2024-01-03 15:35:27.219 AiExtension] Registered embeddings model provider gpt4all.
[I 2024-01-03 15:35:27.219 AiExtension] Registered embeddings model provider huggingface_hub.
[I 2024-01-03 15:35:27.219 AiExtension] Registered embeddings model provider openai.
[I 2024-01-03 15:35:27.219 AiExtension] Registered embeddings model provider qianfan.
[I 2024-01-03 15:35:27.228 AiExtension] Registered providers.
[I 2024-01-03 15:35:27.228 AiExtension] Registered jupyter_ai server extension
[W 2024-01-03 15:35:27.245 SingleUserLabApp manager:356] jupyter_ai | extension failed loading with message: 'LargeFileManager' object has no attribute 'preferred_dir'

It appears some python package dependency is not being fulfilled. But the python environment listed in the context appears to meet the minimal requirements specified in the documentation. I must be missing something. Feedback on this would be appreciated. Thanks.

Reproduce

This extension error occurs during the jupyterlab server start. The server as a whole starts fine. Other jupyterlab extensions are loaded correctly.

Expected behavior

Expected behavior is for this extension to load without error.

Context

  • OS: Debian GNU/Linux 10 (buster)
  • Python: 3.10.5
  • Python Environment
    • jupyterlab==3.5.0
    • jupyterhub==3.1.1
    • jupyter_ai==1.8.1
@jharonfe jharonfe added the bug Something isn't working label Jan 3, 2024
Copy link

welcome bot commented Jan 3, 2024

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@dlqqq
Copy link
Member

dlqqq commented Jan 3, 2024

This likely is because of an outdated JupyterLab 3.x version. The latest release is v3.6.6. v3.6.0 introduced a lot of changes to JupyterLab, so using a v3.6.x version is definitely preferable.

@jharonfe
Copy link
Author

jharonfe commented Jan 3, 2024

Noted. Thanks.

@JasonWeill
Copy link
Collaborator

Closing this issue due to inactivity. If you still see this bug in Lab 3.6.x or 4.x, please reopen this issue or open a new one. Thank you for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants