Skip to content

DLL load failure on Windows+py3.13 only (everything else works, including Windows+py3.{10,11,12}) #2378

Open
@joaospinto

Description

@joaospinto

Description

Any idea on what could be causing this?

  =================================== ERRORS ====================================
  __________________ ERROR collecting tests/test_simple_nlp.py __________________
  ImportError while importing test module 'D:\a\sip_python\sip_python\tests\test_simple_nlp.py'.
  Hint: make sure your test modules/packages have valid Python names.
  Traceback:
  ..\..\..\..\pypa\cibuildwheel\Cache\nuget-cpython\python.3.13.2\tools\Lib\importlib\__init__.py:88: in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
  D:\a\sip_python\sip_python\tests\test_simple_nlp.py:1: in <module>
      from sip_python import (
  ..\venv-test\Lib\site-packages\sip_python\__init__.py:12: in <module>
      from .sip_python_ext import *
  E   ImportError: DLL load failed while importing sip_python_ext: The specified module could not be found.
  __________________ ERROR collecting tests/test_simple_qp.py ___________________
  ImportError while importing test module 'D:\a\sip_python\sip_python\tests\test_simple_qp.py'.
  Hint: make sure your test modules/packages have valid Python names.
  Traceback:
  ..\..\..\..\pypa\cibuildwheel\Cache\nuget-cpython\python.3.13.2\tools\Lib\importlib\__init__.py:88: in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
  D:\a\sip_python\sip_python\tests\test_simple_qp.py:1: in <module>
      from sip_python import (
  ..\venv-test\Lib\site-packages\sip_python\__init__.py:12: in <module>
      from .sip_python_ext import *
  E   ImportError: DLL load failed while importing sip_python_ext: The specified module could not be found.
  =========================== short test summary info ===========================
  ERROR D:\a\sip_python\sip_python\tests\test_simple_nlp.py
  ERROR D:\a\sip_python\sip_python\tests\test_simple_qp.py
  !!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!
  ============================== 2 errors in 0.31s ==============================

Interestingly, the build step in this case (and only this case) is skipped, due to:

Found previously built wheel sip_python-0.0.1-cp312-abi3-win_amd64.whl, that's compatible with cp313-win_amd64. Skipping build step...

I couldn't immediately find any relevant pointers/information, so I figured it might be a good idea to post here.
Thanks!

Build log

https://github.com/joaospinto/sip_python/actions/runs/14787739762/job/41519089621

CI config

https://github.com/joaospinto/sip_python/blob/main/.github/workflows/wheels.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions