-
Notifications
You must be signed in to change notification settings - Fork 120
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
Buffer dtype mismatch, expected 'long' but got 'long long' #14
Comments
Didn't test the latest release on windows. I'll post an update shortly. |
thanks for your effort. I like it . |
Fixed the code. Thanks for posting the bug reports! |
I install the update, but the bug is still there. File "", line 1, in File "C:\Users\zxmy\Anaconda3\lib\site-packages\pyansys\binary_reader.py", line 979, in NodalStress File "pyansys\cython_rstHelper.pyx", line 192, in pyansys._rstHelper.LoadStress ValueError: Buffer dtype mismatch, expected 'long' but got 'long long'` |
Try the new version 0.22.3 please. It’s here and on pypi. |
yes. it is perfect. thank you very much. |
Ok. I'm closing this issue then. Thanks for testing it out. I'll be a bit more diligent about keeping cython platform independent. To anyone out there who's looking to make platform independent code when using numpy and cython, use the following: from libc.stdint cimport int32_t, int64_t
# instead of int and long Otherwise, you'll run into issues where an |
Hi @akaszynski , I am facing similar issue while running a git code on windows, posted issue here . Could you please help me. |
hi, there is an error when I get nodal stress using NodalStress() method. I use the rst file in your closed issues "test_pyansys.rst".
I guess there is something wrong with numpy.int64 type.
the code is below:
The text was updated successfully, but these errors were encountered: