groupeLIAMG / ttcr

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

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

Closed tgautam03 closed 3 years ago

tgautam03 commented 3 years ago

Hi

I just installed ttcrpy using pip and when I try to run the simple examples notebook, I get an error while importing tmesh.

I hope someone can help me with this.

maher-nasr commented 3 years ago

Hi; Try to install a more recent version of numpy (1.20.0 for example). To do that, reinstall numpy by successively running these 2 lines in a terminal: pip uninstall numpy pip install numpy

On Apr 15, 2021, at 7:39 AM, Tushar03 @.**@.>> wrote:

Attention : ce courriel provient d'un expéditeur externe.

Hi

I just installed ttcrpy using pip and when I try to run the simple examples notebook, I get an error while importing tmesh.

I hope someone can help me with this.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/groupeLIAMG/ttcr/issues/38, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEHQBXYMAEPLLXMPLH6PWW3TI3F6FANCNFSM427J5LWA.

bernard-giroux commented 3 years ago

@tgautam03 Did upgrading numpy solve the problem? If not, what is the error message?

Thanks

bernard-giroux commented 3 years ago

No answer: closing issue

tgautam03 commented 3 years ago

Sorry, I didn't receive the email regarding the fix.

I reinstalled everything and now it works well. However I'm not able to figure out how to use the library. The tutorials aren't elaborative enough.

I'm trying to do refraction tomography on 2D models and need ray tracing as well as travel times for my inversion code.