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

FAILED tests/test_troubleshoot.py::test_troubleshoot #363

Open
tornaria opened this issue Sep 28, 2023 · 1 comment
Open

FAILED tests/test_troubleshoot.py::test_troubleshoot #363

tornaria opened this issue Sep 28, 2023 · 1 comment

Comments

@tornaria
Copy link

This test presumes pip is installed. If not:

FAILED tests/test_troubleshoot.py::test_troubleshoot - AssertionError: assert 'pip list' in '$PATH:\n\t/builddir/python3-jupyter_c...

Here's the full output of jupyter_core.troubleshoot.main():

$ python -c 'from jupyter_core.troubleshoot import main ; main()'
/usr/bin/python: No module named pip
$PATH:
	/usr/local/sbin
	/usr/local/bin
	/usr/bin
	/usr/sbin
	/sbin
	/bin

sys.path:
	
	/usr/lib/python311.zip
	/usr/lib/python3.11
	/usr/lib/python3.11/lib-dynload
	/usr/lib/python3.11/site-packages

sys.executable:
	/usr/bin/python

sys.version:
	3.11.5 (main, Aug 27 2023, 03:49:50) [GCC 12.2.0]

platform.platform():
	Linux-6.4.15_1-x86_64-with-glibc2.36

which -a jupyter:
	/usr/bin/jupyter
	/usr/sbin/jupyter
	/sbin/jupyter
	/bin/jupyter

BTW, which is not in posix. The posix way is to use command -v jupyter.

@matoro
Copy link

matoro commented Nov 7, 2023

I also ran into this, seems having pip installed is a mandatory test dependency.

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

No branches or pull requests

2 participants