cmake-build-extension icon indicating copy to clipboard operation
cmake-build-extension copied to clipboard

Python 3.7 on Windows fails in CI

Open diegoferigo opened this issue 1 year ago • 0 comments

This issue is a reminder of the failure in CI related to the Python 3.7 job on Windows. Refer to https://github.com/diegoferigo/cmake-build-extension/pull/38 for the PR that marked this job as optional in CI.

Failure
============================= test session starts =============================
platform win32 -- Python 3.7.9, pytest-7.1.3, pluggy-1.0.0 -- c:\hostedtoolcache\windows\python\3.7.9\x64\python.exe
cachedir: .pytest_cache
rootdir: D:\a\cmake-build-extension\cmake-build-extension\example, configfile: setup.cfg, testpaths: tests
plugins: icdiff-0.6
Windows fatal exception: code 0xc0000139

Thread 0x00001094 (most recent call first):
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 1043 in create_module
  File "<frozen importlib._bootstrap>", line 583 in module_from_spec
  File "<frozen importlib._bootstrap>", line 670 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1035 in _handle_fromlist
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\mymath_pybind11\__init__.py", line 4 in <module>
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 728 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 953 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "D:\a\cmake-build-extension\cmake-build-extension\example\tests\test_pybind11.py", line 3 in <module>
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\assertion\rewrite.py", line 168 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006 in _gcd_import
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\importlib\__init__.py", line 127 in import_module
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\pathlib.py", line 533 in import_path
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\python.py", line 608 in _importtestmodule
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\python.py", line 519 in _getobj
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\python.py", line 301 in obj
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\python.py", line 536 in _inject_setup_module_fixture
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\python.py", line 522 in collect
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\runner.py", line 369 in <lambda>
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\runner.py", line 338 in from_call
  File "D:\a\cmake-build-extension\cmake-build-extension\example\tests\test_swig.py", line 3 in <module>
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\assertion\rewrite.py", line 168 in exec_module
  File "<frozen importlib._bootstrap>", line 677 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 967 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 983 in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006 in _gcd_import
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\importlib\__init__.py", line 127 in import_module
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\pathlib.py", line 533 in import_path
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\python.py", line 608 in _importtestmodule
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\python.py", line 519 in _getobj
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\python.py", line 301 in obj
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\python.py", line 536 in _inject_setup_module_fixture
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\python.py", line 522 in collect
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\runner.py", line 369 in <lambda>
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\runner.py", line 338 in from_call
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\runner.py", line 369 in pytest_make_collect_report
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\pluggy\_callers.py", line 39 in _multicall
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\pluggy\_manager.py", line 80 in _hookexec
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\pluggy\_hooks.py", line 265 in __call__
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\runner.py", line 537 in collect_one_node
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\main.py", line 824 in genitems
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\main.py", line 657 in perform_collect
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\main.py", line 332 in pytest_collection
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\pluggy\_callers.py", line 39 in _multicall
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\pluggy\_manager.py", line 80 in _hookexec
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\pluggy\_hooks.py", line 265 in __call__
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\main.py", line 321 in _main
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\main.py", line 268 in wrap_session
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\main.py", line 315 in pytest_cmdline_main
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\pluggy\_callers.py", line 39 in _multicall
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\pluggy\_manager.py", line 80 in _hookexec
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\pluggy\_hooks.py", line 265 in __call__
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\config\__init__.py", line 165 in main
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\_pytest\config\__init__.py", line 187 in console_main
  File "C:\hostedtoolcache\windows\Python\3.7.9\x64\Scripts\pytest.exe\__main__.py", line 7 in <module>
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\runpy.py", line 85 in _run_code
  File "c:\hostedtoolcache\windows\python\3.7.9\x64\lib\runpy.py", line 193 in _run_module_as_main
collecting ... collected 0 items / 2 errors

=================================== ERRORS ====================================
___________________ ERROR collecting tests/test_pybind11.py ___________________
ImportError while importing test module 'D:\a\cmake-build-extension\cmake-build-extension\example\tests\test_pybind11.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
c:\hostedtoolcache\windows\python\3.7.9\x64\lib\importlib\__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests\test_pybind11.py:3: in <module>
    import mymath_pybind11.bindings as mymath
c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\mymath_pybind11\__init__.py:4: in <module>
    from . import bindings
E   ImportError: DLL load failed: The specified procedure could not be found.
_____________________ ERROR collecting tests/test_swig.py _____________________
ImportError while importing test module 'D:\a\cmake-build-extension\cmake-build-extension\example\tests\test_swig.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
c:\hostedtoolcache\windows\python\3.7.9\x64\lib\importlib\__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests\test_swig.py:3: in <module>
    import mymath_swig.bindings as mymath
c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\mymath_swig\__init__.py:4: in <module>
    from . import bindings
c:\hostedtoolcache\windows\python\3.7.9\x64\lib\site-packages\mymath_swig\bindings.py:18: in <module>
    from . import _swig_bindings
E   ImportError: DLL load failed: The specified procedure could not be found.
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!
============================== 2 errors in 0.45s ==============================
Error: Process completed with exit code 1.

diegoferigo avatar Sep 19 '22 07:09 diegoferigo