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

Invalid environment error with conda environment #704

Closed
tleyden opened this issue Sep 11, 2023 · 7 comments
Closed

Invalid environment error with conda environment #704

tleyden opened this issue Sep 11, 2023 · 7 comments

Comments

@tleyden
Copy link

tleyden commented Sep 11, 2023

Description

When trying to set a custom conda environment, I get this error:

Screenshot 2023-09-11 at 2 29 25 PM

Reproduce

  1. Download install the OSX (mac silicon) version of jupyterlab-desktop
  2. Create a conda env with conda create --name my-conda-env python=3.11
  3. Open JupyterLab desktop and create a new session in a directory
  4. In the top right conda env picker menu (screenshot below) choose that conda env by navigating to /opt/miniconda/envs/my-conda-env/bin and choosing python
  5. It gives an error about the conda env not being valid, but no other reasons about why it wasn't valid
Screenshot 2023-09-11 at 2 31 23 PM

Expected behavior

It should be a valid conda environment, so I wouldn't expect an error.

Context

  • Operating System and version: OSX Ventura
  • JupyterLab-Desktop version: 4.05-1
  • Installer: .dmg
Troubleshoot Output
[Paste the output from running `jupyter troubleshoot` from the terminal inside of JupyterLab Desktop here.
You may want to sanitize the paths in the output.](zsh: command not found: jupyter)
Browser Output (required for interface issues after loading)
Paste the output from the DevTools JavaScript console here, if applicable.
Logs (required for issues with loading, server and startup)

@tleyden tleyden added the bug label Sep 11, 2023
@welcome
Copy link

welcome bot commented Sep 11, 2023

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! 🎉

@krassowski
Copy link
Member

@tleyden I edited your issue to remove some values from the logs, I hope this is ok. You may want to check if there is anything else that needs to be sanitised.

@tleyden
Copy link
Author

tleyden commented Sep 11, 2023

Ok thank you. I went ahead and deleted the logs. Let me know if you can still look at the issue without them

@krassowski
Copy link
Member

Is jupyterlab package installed in your environment? my-conda-env or self-query-experiment? If so what version?

@tleyden
Copy link
Author

tleyden commented Sep 11, 2023

No it's not in my base conda env or in self-query-experiment, do I need to add it to either/both?

@krassowski
Copy link
Member

Yes, as per https://github.com/jupyterlab/jupyterlab-desktop/blob/master/troubleshoot.md#dealing-with-custom-environment-server-launch-errors. This really should be shown in the UI though, the current error is not useful at all - this looks like regression. Can you confirm that installing the package fixes it?

@tleyden
Copy link
Author

tleyden commented Sep 11, 2023

Yes that fixed it. I did the following:

conda activate self-query-experiment
pip install jupyterlab 
pip install ipykernel
python -m ipykernel install --user --name=self-query-experiment

And now in the jupyterlab desktop UI I'm able to to switch to that conda env.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants