jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.59k stars 4.86k forks source link

Tests fail to run: tests/conftest.py #7451

Open yurivict opened 2 weeks ago

yurivict commented 2 weeks ago

Tests fail to run:

cd /usr/ports/www/py-notebook/work-py311/notebook-7.2.2/tests && /usr/bin/env -i HOME=/usr/ports/www/py-notebook/work-py311  PWD="${PWD}"  __MAKE_CONF=/nonexistent OSVERSION=1401500 PATH=/usr/local/libexec/ccache:/usr/ports/www/py-notebook/work-py311/.bin:/home/yuri/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin TERM=xterm-256color XDG_DATA_HOME=/usr/ports/www/py-notebook/work-py311  XDG_CONFIG_HOME=/usr/ports/www/py-notebook/work-py311  XDG_CACHE_HOME=/usr/ports/www/py-notebook/work-py311/.cache  HOME=/usr/ports/www/py-notebook/work-py311 PATH=/usr/local/libexec/ccache:/usr/ports/www/py-notebook/work-py311/.bin:/home/yuri/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/usr/ports/www/py-notebook/work-py311/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  " CCACHE_DIR="/tmp/.ccache" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444" PYTHONPATH=/usr/ports/www/py-notebook/work-py311/stage/usr/local/lib/python3.11/site-packages /usr/local/bin/python3.11 -m pytest -k '' -rs -v -o addopts= 
ImportError while loading conftest '/usr/ports/www/py-notebook/work-py311/notebook-7.2.2/tests/conftest.py'.
conftest.py:16: in <module>
    from notebook.app import JupyterNotebookApp
../../stage/usr/local/lib/python3.11/site-packages/notebook/app.py:17: in <module>
    from jupyter_server.serverapp import flags
/usr/local/lib/python3.11/site-packages/jupyter_server/serverapp.py:114: in <module>
    from jupyter_server.services.contents.filemanager import (
/usr/local/lib/python3.11/site-packages/jupyter_server/services/contents/filemanager.py:25: in <module>
    from send2trash import send2trash
/usr/local/lib/python3.11/site-packages/send2trash/__init__.py:18: in <module>
    from send2trash.plat_gio import send2trash
/usr/local/lib/python3.11/site-packages/send2trash/plat_gio.py:7: in <module>
    from gi.repository import GObject, Gio
E   ImportWarning: DynamicImporter.exec_module() not found; falling back to load_module()

Version: 7.2.2 Python-3.11 FreeBSD 14.1

RRosio commented 1 week ago

Per triage: I will try replicating this issue and update with results shortly!

RRosio commented 1 week ago

I was not able to replicate this issue on a Apple M1. This issue might be OS specific, I don't have access to test on FreeBSD.