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

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

Open
yurivict opened this issue Sep 4, 2024 · 2 comments
Open

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

yurivict opened this issue Sep 4, 2024 · 2 comments

Comments

@yurivict
Copy link

yurivict commented Sep 4, 2024

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

@yurivict yurivict added bug status:Needs Triage Applied to issues that need triage labels Sep 4, 2024
@RRosio RRosio changed the title Tests fail to run: ./work-py311/notebook-7.2.2/tests/conftest.py Tests fail to run: tests/conftest.py Sep 10, 2024
@RRosio
Copy link
Collaborator

RRosio commented Sep 10, 2024

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

@RRosio
Copy link
Collaborator

RRosio commented Sep 10, 2024

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.

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