-
Notifications
You must be signed in to change notification settings - Fork 12
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
OSError with "The operation completed successfully." #51
Comments
That's a strange error. Is this error intermittent? How frequently does it happen? |
Not very frequently, but I have seen this message several times. When searching on GitHub, I also see someone got the same error message in a different package: rdkit/rdkit#7072 |
…ly.` When LoadLibraryExW() is called from `ctypes`, the 64-bit void* return value is cast to a 32-bit C int by default. If the base address of the loaded DLL is a multiple of 2**32, then the lower 32 bits are 0, so Python sees a return value of 0 and assumes that the DLL failed to load. Set the return type properly so that the downcast is not done. This fixes an intermittent issue with Python <= 3.7 or Conda Python <= 3.10 where an `OSError` is raised saying that a DLL failed to load but also that the operation completed successfully. Fix #51
I have found the cause of the error. Unless told otherwise, The solution is to tell |
thanks for the timely fix @adang1345! 👍 |
We got this error message in the GitHub Actions (see log):
which is a piece of code in the
netCDF4
package generated bydelvewheel
.delvewheel/delvewheel/_wheel_repair.py
Lines 73 to 74 in e746862
According to the Windows documentation, this error message means no error:
So the error message does not make sense to me.
The text was updated successfully, but these errors were encountered: