M
Modular5mo ago
LucasG

Error when running modular install mojo

modular install mojo always throws the error no module named 'jupyter_client'. Mojo is installed but no jupyter kernel is available and I can't work with Mojo in a notebook. How should I fix this error? I've already tried installing the required packages to site-packages inside the python3.12 folder in venv to no avail. Here is the full error: Traceback (most recent call last): File "/Users/lucasgranucci/.modular/pkg/packages.modular.com_mojo/jupyter/manage_kernel.py", line 14, in <module> from jupyter_client.kernelspec import KernelSpecManager ModuleNotFoundError: No module named 'jupyter_client' modular: error: failed to run script
7 Replies
Ehsan M. Kermani (Modular)
Could you share what version of modular -v and mojo are you using? Also have you tried modular clean and installing again?
LucasG
LucasG5mo ago
I have modular 0.7.1 (28ddab26) and mojo 24.2.0 (c2427bc5). I installed modular with brew install modular. Cleaning and installing again doesn't fix the issue
Ehsan M. Kermani (Modular)
Thanks! Could you try either source ~/.modular/pkg/packages.modular.com_mojo/venv/activate or python3 -m pip install notebook in your python environment to see if they resolve the issue?
LucasG
LucasG5mo ago
The directory ~/.modular/pkg/packages.modular.com_mojo/venv/activate doesn't exist. I tried with ~/.modular/pkg/packages.modular.com_mojo/venv/bin/activate and python3 -m pip install notebook but the error persists.
Ehsan M. Kermani (Modular)
The main issue is we currently support Python 3.8 to 3.11 https://docs.modular.com/engine/get-started#requirements
Get started with MAX Engine | Modular Docs
Welcome to the MAX Engine setup guide!
LucasG
LucasG5mo ago
Yes, but if I look inside the .modular/pkg/packages.modular.com_mojo/venv/bin/ folder on my computer, I see python3.12. Is there any way to change what python is installed when installing modular?
Ehsan M. Kermani (Modular)
Right! one way could be using that python to create the missing venv with python3 -m venv venv but I'm not completely sure if it solves this issue. Probably need to manually install the dependencies too. We will refine this process as we support python3.12 so stay tuned!
Want results from more Discord servers?
Add your server