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: ModuleNotFoundError: No module named 'pybind11_tests' #18

Open
yurivict opened this issue Oct 4, 2022 · 3 comments

Comments

@yurivict
Copy link

yurivict commented Oct 4, 2022

===>   py39-mmcif-0.79 depends on file: /usr/local/bin/python3.9 - found
cd /disk-samsung/freebsd-ports/science/py-mmcif/work-py39/mmcif-0.79 && /usr/bin/env XDG_DATA_HOME=/disk-samsung/freebsd-ports/science/py-mmcif/work-py39  XDG_CONFIG_HOME=/disk-samsung/freebsd-ports/science/py-mmcif/work-py39  XDG_CACHE_HOME=/disk-samsung/freebsd-ports/science/py-mmcif/work-py39/.cache  HOME=/disk-samsung/freebsd-ports/science/py-mmcif/work-py39 PATH=/usr/local/libexec/ccache:/disk-samsung/freebsd-ports/science/py-mmcif/work-py39/.bin:/home/yuri/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/disk-samsung/freebsd-ports/science/py-mmcif/work-py39/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES LDSHARED="cc -shared" PYTHONDONTWRITEBYTECODE= PYTHONOPTIMIZE= PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe -fno-omit-frame-pointer  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-fno-omit-frame-pointer"  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fno-omit-frame-pointer -fstack-protector-strong -fno-strict-aliasing -fno-omit-frame-pointer  "  MANPREFIX="/usr/local" 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" /usr/local/bin/python3.9 -m pytest -k '' -rs -v -o addopts= 
==================================================================================== test session starts =====================================================================================
platform freebsd13 -- Python 3.9.13, pytest-7.1.3, pluggy-1.0.0 -- /usr/local/bin/python3.9
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/disk-samsung/freebsd-ports/science/py-mmcif/work-py39/mmcif-0.79/.hypothesis/examples')
rootdir: /disk-samsung/freebsd-ports/science/py-mmcif/work-py39/mmcif-0.79
plugins: forked-1.4.0, hypothesis-6.54.5, cov-2.9.0, rerunfailures-10.1, xdist-2.5.0, flaky-3.7.0, mock-1.10.4, typeguard-2.13.3
collected 0 items / 1 error                                                                                                                                                                  

=========================================================================================== ERRORS ===========================================================================================
_______________________________________________________________________________ ERROR collecting test session ________________________________________________________________________________
/usr/local/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/usr/local/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:168: in exec_module
    exec(co, module.__dict__)
modules/pybind11/tests/conftest.py:19: in <module>
    import pybind11_tests  # noqa: F401
E   ModuleNotFoundError: No module named 'pybind11_tests'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================================================== 1 error in 1.21s ======================================================================================
*** Error code 2

Python-3.9
Version: 0.79
FreeBSD 13.1

@epeisach
Copy link
Collaborator

epeisach commented Dec 2, 2022

I just noticed this report.

Did you checkout from git and include the submodules?
git clone --recursive....

@yurivict
Copy link
Author

yurivict commented Apr 9, 2023

Did you checkout from git and include the submodules?
git clone --recursive....

No, I downloaded the tarball https://pypi.org/packages/source/m/mmcif/mmcif-0.81.tar.gz
It already contains all git submodules.

@yurivict
Copy link
Author

0.90.0 still has the same problem.

Where is the module pybind11_tests expected to come from?

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