-
Notifications
You must be signed in to change notification settings - Fork 35
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
PYD libraries can't be loaded in 32bit Python on Windows #176
Comments
Hi @mstarecek! Sorry we missed this issue until now. Thanks very much for the report. I believe I only tested with 64-bit Windows. |
Fwiw, you can probably work around this by forcing a full reinstall and building from source.
You'll need Rust installed, but that's easy to set up with rustup. |
@mstarecek Could you test to see if CPM v0.40 that was just released fixes the problem with Win32? We upgraded to the latest cibuildwheel version, so I'm hoping they fixed whatever the issue is. (Sorry, I haven't had time to investigate the root cause.) |
CPM v0.4.0 build with cibuildwheel 2.x did not fix this issue. What's weird is that the
For a temporary workaround so pyocd will at least work, I'll add an exception handler to catch OSError when pyocd tries to load CPM. Pyocd will run, but the pack subcommand won't work. |
Hello Chris, I tried to check the package compiler if I'm able to fix it on my own, but without investigating a lot of time, I'm not. So we you find some time to check it, you make so guys in NXP happy :-) Petr |
Do we even tell CI to build 32-bit wheels? I see them being built - despite -win32 flag being set. https://stackoverflow.com/a/71754959 seems to suggest the need to additionally specify
https://rust-lang.github.io/rustup/installation/windows.html?highlight=target#windows notes
|
@saper Thanks for the suggestion! 🙏🏽 I'll give it a try as soon as I have a chance. |
Hello @flit, it has been a while :) |
Hello @flit, |
Could someone check if the wheels build with maturin (see #195) work on Windows 32bit https://github.com/pyocd/cmsis-pack-manager/actions/runs/3509644772 |
Hello @mathias-arm, |
Thanks a lot for your tests! |
Hello,
In version 0.3.0 I'm getting the following error when starting 'pack-manager' (or more generally 'pyocd')
OSError: cannot load library '...venv_39_32\lib\site-packages\cmsis_pack_manager_native__lib.cp39-win32.pyd': error 0xc1
This error occurs on Python 3.6 up to 3.9, but only in the 32bit versions.
It would seem that the 32bit versions of wheels contain 64bit libraries because on 64bit Python everything works just fine (I've tried Python 3.6 up to 3.9)
Best Regards,
Michal
The text was updated successfully, but these errors were encountered: