jupyter_core icon indicating copy to clipboard operation
jupyter_core copied to clipboard

FAILED tests/test_troubleshoot.py::test_troubleshoot

Open tornaria opened this issue 1 year ago • 1 comments

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.

tornaria avatar Sep 28 '23 01:09 tornaria