-
-
Notifications
You must be signed in to change notification settings - Fork 353
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
Setting a custom Python environment does not work on first launch #473
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
I have a hunch that this was due to a stray symlink under |
It appears to be the same issue as in #454 (which should not get closed as the problem was not resolved). The relevant log is:
and corresponding section in code: jupyterlab-desktop/src/main/main.ts Lines 195 to 216 in 59519ab
As for failing to save the state, this is what I think the logs suggest:
@Feuermurmel would you be able to check if |
And yes, App Translocation was definitely active in that circumstance as I did not move the app out of |
@Feuermurmel this should be fixed now with v3.5.1-1. could you test and update the issue? |
@Feuermurmel looks like JupyterLab Server is failing to launch from your custom environment. We will be improving the error handling for the case you are running into. Can you check couple of things:
|
@mbektas I am also encoutering the same "Failed to find a compatible Python environment…" issue when attempting to do a clean install of "JupyterLab.app" such that it uses an existing homebrew installation of Python3. If possible, I am attempting minimize the number of Python installations on my system. Here is the information that I have related to your questions.
No spaces. /opt/homebrew/bin/python3 Each of the following also produced the same error: /opt/homebrew/bin/python3.11
/opt/homebrew/Cellar/python@3.10/3.10.9/bin/python3
/opt/homebrew/Cellar/python@3.11/3.11.1/bin/python3.11
main.log
Is there a link somewhere for a JupyterLab dmg installer?? (I was only finding pip instructions, a homebrew formula and a homebrew application cask.) brew info --cask jupyterlab
# ==> jupyterlab: 3.5.1-1
# https://github.com/jupyterlab/jupyterlab-desktop
# /opt/homebrew/Caskroom/jupyterlab/3.5.1-1 (124B)
# From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/jupyterlab.rb
# ==> Name
# JupyterLab App
# ==> Description
# Desktop application for JupyterLab
# ==> Artifacts
# JupyterLab.app (App) I installed
The homebrew cask desktop application install does put the app in
I am working with a clean install such that "pythonPath":""
Note: which -a python
# python not found
which -a python3
# /opt/homebrew/bin/python3
# /usr/bin/python3
python3 --version
# Python 3.10.9
which -a python3.11
# /opt/homebrew/bin/python3.11
python3.11 --version
# Python 3.11.1 So, using python3 -m jupyterlab --no-browser --expose-app-in-browser …
# /opt/homebrew/opt/python@3.10/bin/python3.10: No module named jupyterlab python3.11 -m jupyterlab --no-browser --expose-app-in-browser …
/opt/homebrew/opt/python@3.11/bin/python3.11: No module named jupyterlab Should it be somehow possible for JupyterLab.app to use a homebrew python installation? |
@marc-medley you can get dmg installers from here, and macOS version already has auto-update feature, it can automatically upgrade to latest version released. but that is not your issue here. JupyterLab Desktop requires a Python environment with jupyterlab (>=3.4.5) Python package. It ships with a bundled installer to create that required environment. Your python installation created using homebrew doesn't have jupyterlab python package. You should be able to install using |
I have the same issue (home-brew on Mac Intel). I would have loved to use jupyterlab desktop for teaching, and have people with no computer skills to get up and working with Jupyter. It does not seem to be the case yet. Thank you anyway for this project I will keep an eye on it. |
@mgiugliano would you mind filling in the issue template with full details? There were major changes since and there is a chance that your issue is different. Have you confirmed that the custom environment has the latest JupyterLab version installed? |
Can this be mentioned somewhere in the steps to install. JupyterLab Desktop recognized my python environment only when I installed jupyterlab in it. |
What's the point of Jupyter Desktop if you need to have a python + jupyterlab environment? Apologies for my stupid question, as I certainly missed or misunderstood key information. |
JupyterLab Desktop ships with a Python environment which includes JupyterLab, but as you mention, using JupyterLab from a custom environment currently requires having JupyterLab installed in that environment (I am not a fan of this either). Two points:
@mbektas who is the main maintainer may have a different opinion based on their in-and-out knowledge of the underlying machinery, but again, I agree that from the UX point we should not require installing JupyterLab in every environment (or if it absolutely has to be done, we should be able to silently install/update it after user's consent). |
UX-wise I proposed how the requirements communication could be improved in #479. |
i have the problem too.when i set the python path, i open the app , it will quit `/Applications/JupyterLab.app/Contents/MacOS/JupyterLab ; exit; Saving session...completed.` |
I'm getting essentially the same error, also on MacOS, but from a "clean" installation (I think) of 4.0.1-1, without a custom python environment or installation from HomeBrew. I did have a previous version installed at one point and I think I got rid of all the traces of it, but can't guarantee that. Should I start a separate ticket or discuss it here? When I try to start the application by clicking on the icon, it pops up briefly and then disappears. Starting from the command line, I get this:
The log file (
|
@ewa are you still having this problem with the latest JupyterLab Desktop version? You can also checkout this guide on macOS permission issues. |
I abandoned it and have just been using the "regular" web interface version, but I'll revisit it and let you know. |
closing this issue since it should be fixed with latest version. please create a new issue if needed. |
Description
I'm running JupyterLab 3.3.4-2 for the first time and trying to re-use my existing Python 3.10 environment installed via Homebrew but after selecting the Python interpreter and selecting Apply and restart, the dialog simply re-appears.
When starting JupyterLab, this dialog is shown:
There, I select the Python binary from my Python 3.10 installation with
jupyterlab
3.4.4 installed and select Apply and restart. JupyterLab closes and re-opens and displays the same dialog again. The message stays the same:So maybe the configured path doesn't get saved before re-opening the application?
Context
I'm running macOS 12.4 on an Apple M1 Mac. I've installed Python with the usual
brew install python@3.10
andbrew link python@3.10
. I'm using a custom Homebrew prefix to workaround an issue in Homebrew.Troubleshoot Output
Browser Output (required for interface issues after loading)
(I'm not sure if this helps)
Logs (required for issues with loading, server and startup)
I didn't find
jlab
on my$PATH
so I used this command instead:The text was updated successfully, but these errors were encountered: