groupeLIAMG / ttcr

Codes to do raytracing for geophysical applications
GNU General Public License v3.0
85 stars 33 forks source link

Error: from ttcrpy.rgrid import Grid3d #48

Closed izzatum closed 2 years ago

izzatum commented 2 years ago

Hi!

I got an error when trying your example. The error occurred when the jupyter notebook ran from ttcrpy.rgrid import Grid3d.

Here is the error:


ValueError Traceback (most recent call last) /var/folders/3q/yps71nyj565b2g31vrgbwr50fztv4w/T/ipykernel_18831/2332482423.py in 7 plt.rc('font', **{'family': 'sans-serif', 'sans-serif': ['Helvetica']}) 8 ----> 9 from ttcrpy.rgrid import Grid3d

ttcrpy/rgrid.pyx in init ttcrpy.rgrid()

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

Hope to hear from you soon. Thank you!

bernard-giroux commented 2 years ago

You can get ride of that error by removing the following line in the first cell of the notebook

plt.rc('font', **{'family': 'sans-serif', 'sans-serif': ['Helvetica']})

bernard-giroux commented 2 years ago

Sorry, I was too quick to answer, ignore previous response. Your issue is most likely due to an outdated version of numpy on your system. Can you update and test again?

izzatum commented 2 years ago

I have updated the numpy version. It still doesn't solve the issue.

On Wed, Sep 8, 2021 at 1:10 AM Bernard Giroux @.***> wrote:

Sorry, I was too quick to answer, ignore previous response. Your issue is most likely due to an outdated version of numpy on your system. Can you update and test again?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/groupeLIAMG/ttcr/issues/48*issuecomment-914516038__;Iw!!Nmw4Hv0!kIbUVKSrtgP8mCc8WjS22LVZyOyOI5syDFm3laOCvKvIoxStJ4AmtZmwRoB8yHy3IHScQAu56ETh$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ALH7GBF7KE2KY6D7Y57HEOTUAZIP3ANCNFSM5DS4MK7A__;!!Nmw4Hv0!kIbUVKSrtgP8mCc8WjS22LVZyOyOI5syDFm3laOCvKvIoxStJ4AmtZmwRoB8yHy3IHScQLFiTUX2$ . Triage notifications on the go with GitHub Mobile for iOS https://urldefense.com/v3/__https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!Nmw4Hv0!kIbUVKSrtgP8mCc8WjS22LVZyOyOI5syDFm3laOCvKvIoxStJ4AmtZmwRoB8yHy3IHScQO7DZ3kv$ or Android https://urldefense.com/v3/__https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!Nmw4Hv0!kIbUVKSrtgP8mCc8WjS22LVZyOyOI5syDFm3laOCvKvIoxStJ4AmtZmwRoB8yHy3IHScQPk6W-be$.

-- Muhammad Izzatullah

King Abdullah University of Science and Technology (KAUST) Division of Physical Sciences and Engineering Bldg. 1, Desk #0202-WS023 Thuwal 23955-6900, Kingdom of Saudi Arabia

Tel.: +966 (56) 569 7388 Email: @.***

@.**> Seismic Modeling & Inversion (SMI) Research Group* https://smi.kaust.edu.sa/

--

This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.

bernard-giroux commented 2 years ago

Which platform are you on? which version of numpy are you using?

izzatum commented 2 years ago

I solved the issue. It was a conflict between conda and pip. I removed conda and update the pip, and now it works. Thanks!