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

venv selection fails #603

Closed
priamai opened this issue Mar 5, 2023 · 9 comments
Closed

venv selection fails #603

priamai opened this issue Mar 5, 2023 · 9 comments

Comments

@priamai
Copy link

priamai commented Mar 5, 2023

Description

Upon selecting an environment and choosing a venv python one.
I am getting this error.

image

Reproduce

Create a virtual environment with venv and then select it.

@welcome
Copy link

welcome bot commented Mar 5, 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! 🎉

@mbektas
Copy link
Member

mbektas commented Mar 7, 2023

@priamai do you have jupyterlab Python package installed in your custom venv? you can install using pip install jupyterlab.

@JasonWeill
Copy link

@priamai Closing this issue due to inactivity. Please reopen with an answer to @mbektas 's question or open a new issue if you still notice this after installing jupyterlab in your venv. Thanks!

@priamai
Copy link
Author

priamai commented Apr 5, 2023

Testing now, sorry I missed the message.

@priamai
Copy link
Author

priamai commented Apr 5, 2023

Installed it

(venv) robomotic@priam-thinkpad:~/DevOps/github/firstorg2023/lib$ pip show jupyterlab
Name: jupyterlab
Version: 3.6.3
Summary: JupyterLab computational environment
Home-page: https://jupyter.org
Author: Jupyter Development Team
Author-email: jupyter@googlegroups.com
License: 
Location: /home/robomotic/DevOps/github/firstorg2023/venv/lib/python3.8/site-packages
Requires: ipython, jinja2, jupyter-core, jupyter-server, jupyter-server-ydoc, jupyter-ydoc, jupyterlab-server, nbclassic, notebook, packaging, tomli, tornado
Required-by: 

But when I select the related venv still get the error:
image

@priamai
Copy link
Author

priamai commented Apr 9, 2023

@JasonWeill can you reopen please see my message above.

@mbektas mbektas reopened this Apr 9, 2023
@mbektas
Copy link
Member

mbektas commented Apr 9, 2023

@priamai the environment path which you ran pip show jupyterlab and the one in your screenshot are different.
/home/robomotic/DevOps/github/firstorg2023/venv/ vs
/home/robomotic/DevOps/firstorg2023/venv/

@priamai
Copy link
Author

priamai commented Apr 10, 2023

silly me, yes wrong path this time, it works fine with the right path. one suggestion would be to make the error more significant, maybe say folder path does not exist instead of Invalid Environment? and what about if the path is correct also remind the user that it needs to install the right packages? I know its' in the documentation but I didn't read that until I had the problem :-)

@mbektas
Copy link
Member

mbektas commented Jun 7, 2023

closing since the issue resolved

@mbektas mbektas closed this as completed Jun 7, 2023
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

3 participants