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

Jupyter AI Installation Failure #593

Closed
YashzAlphaGeek opened this issue Jan 22, 2024 · 10 comments
Closed

Jupyter AI Installation Failure #593

YashzAlphaGeek opened this issue Jan 22, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@YashzAlphaGeek
Copy link

The installation of the jupyter ai fails in the notebook as shown below,

2024-01-23_01h15_44
@YashzAlphaGeek YashzAlphaGeek added the bug Something isn't working label Jan 22, 2024
Copy link

welcome bot commented Jan 22, 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! 🎉

@YashzAlphaGeek YashzAlphaGeek changed the title Jupyter AI Installion Failure Jupyter AI Installation Failure Jan 22, 2024
@JasonWeill
Copy link
Collaborator

JasonWeill commented Jan 22, 2024

@YashzAlphaGeek Thanks for opening this issue! What version of Python are you using and what OS and CPU type are you running? If you're on Python 3.12 and on an Apple Silicon Mac, this is likely the issue we've observed in #538.

@YashzAlphaGeek
Copy link
Author

YashzAlphaGeek commented Jan 23, 2024

@JasonWeill I am using Python 3.12 in Windows 10 Pro. During my first time installation I do got few pre-requisities

NodeJS
Jupyter Lab

All the pre-requisties were installed. Now I do face a problem in the installation again.

@JasonWeill
Copy link
Collaborator

@YashzAlphaGeek Thanks for your response! If you create and activate a new Conda environment with Python 3.8 through 3.11, do you still see the problem? If you don't, it's likely related to one of our upstream dependencies, FAISS, not having Python 3.12 compatible wheels.

@YashzAlphaGeek
Copy link
Author

YashzAlphaGeek commented Jan 23, 2024

@JasonWeill Thanks for your quick response. I do have 3.8 version of Python installed in my machine let me try it and let you know if it works or not.

@YashzAlphaGeek
Copy link
Author

@JasonWeill With Python 3.8 I came across the problem

No version of @jupyter-ai/chatgpt could be found that is compatible with the current version of JupyterLab. However, it seems to support a new version of JupyterLab. Consider upgrading JupyterLab.

Conflicting Dependencies:
JupyterLab Extension Package

=2.3.1 <2.4.0 >=3.1.0 <4.0.0 @jupyterlab/application

@YashzAlphaGeek
Copy link
Author

YashzAlphaGeek commented Jan 23, 2024

@JasonWeill Now it is working fine with the below mentioned configuration

Selected Jupyter core packages...
IPython : 8.20.0
ipykernel : 6.29.0
ipywidgets : not installed
jupyter_client : 8.6.0
jupyter_core : 5.5.0
jupyter_server : 2.12.5
jupyterlab : 4.0.11
nbclient : 0.8.0
nbconvert : 7.14.2
nbformat : 5.9.2
notebook : 6.5.4
qtconsole : not installed
traitlets : 5.9.0

Do you have the public API key for the ChatGPT 3.5 ?

@JasonWeill
Copy link
Collaborator

Thanks for the update! You'll need to get your own OpenAI API key if you want to use OpenAI models with Jupyter AI. See this page for more: https://platform.openai.com/account/api-keys

@dlqqq
Copy link
Member

dlqqq commented Jan 23, 2024

@YashzAlphaGeek Thank you for filing an issue. I see that you're trying to install Jupyter AI via the extension manager, which doesn't work for more complex extensions like Jupyter AI. You're also trying to install a very old @jupyter-ai/chatgpt package for JupyterLab 3, which was dropped shortly during the initial development of Jupyter AI.

Please follow the user documentation for instructions on how to install Jupyter AI. Since I see that you're running JupyterLab 4, you will most likely want to run:

pip install jupyter_ai[all]

Then, follow the user documentation for adding an OpenAI API key, and start chatting!

I'm going to close this issue for now, but please feel free to reply if you have any additional concerns. Thank you for trying out Jupyter AI! 👋

@dlqqq dlqqq closed this as completed Jan 23, 2024
@YashzAlphaGeek
Copy link
Author

YashzAlphaGeek commented Jan 24, 2024

@dlqqq

While using the command pip install jupyter_ai[all] in cmd I do see the issue.
2024-01-24_22h36_58

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