-
Notifications
You must be signed in to change notification settings - Fork 264
DLL load failure on Windows+py3.13 only (everything else works, including Windows+py3.{10,11,12}) #2378
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
Comments
Looks like a collision between an extension claiming it supports ABI 3, but not providing the correct extension. What's the binary file extension inside the 3.12 wheel? Though it seems like it does know there's a binary file here, so maybe that's not it. |
I encountered a similar issue, albeit with a different error message:
In my case, 32-bit Python 3.13 failed to import an extension built with the ============================= test session starts =============================
platform win32 -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0
rootdir: D:\a\zxing-cpp\zxing-cpp\wrappers\python
configfile: pyproject.toml
collected 0 items / 1 error
=================================== ERRORS ====================================
__________________________ ERROR collecting test.py ___________________________
ImportError while importing test module 'D:\a\zxing-cpp\zxing-cpp\wrappers\python\test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
..\..\..\..\pypa\cibuildwheel\Cache\nuget-cpython\pythonx86.3.13.3\tools\Lib\importlib\__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
D:\a\zxing-cpp\zxing-cpp\wrappers\python\test.py:6: in <module>
import zxingcpp
E ImportError: DLL load failed while importing zxingcpp: %1 is not a valid Win32 application. (CI log) |
After further investigation, I realized the issue was caused by a mistake in my build configuration. I had set the This setup worked fine for Python versions 3.8 through 3.12, as the extension was rebuilt whenever the Python version or architecture changed. However, the issue arose when testing with 32-bit Python 3.13. Instead of using the installed 32-bit Python 3.12 stable ABI wheel, |
I'm also using |
Hey. I'm maintaining nanobind-bazel, which was used to build this particular wheel.
I'm currently wondering if this needs to be fixed upstream in More information (including a linker command line from Bazel) in nicholasjng/nanobind-bazel#72. |
Uh oh!
There was an error while loading. Please reload this page.
Description
Any idea on what could be causing this?
Interestingly, the build step in this case (and only this case) is skipped, due to:
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
The text was updated successfully, but these errors were encountered: