pinn_fwi icon indicating copy to clipboard operation
pinn_fwi copied to clipboard

OSerror at running pinn_fwi.ipynb

Open Ly-xiao opened this issue 9 months ago • 2 comments

Hi,

Thanks for sharing the code with us. I have been trying to run the pinn_fwi.ipynb, but there is an error when I ran the first line of the notebook: OSError: /home/usr/.cache/torch_extensions/py312_cu124/deepwave/deepwave.so: cannot open shared object file: No such file or directory.

My installation includes:

  1. Uncomment the last line of requirements.txt and run pip install -r requirements.txt ;
  2. Install the deepwave separately and build files from source according to https://ausargeo.com/deepwave/.

Do you have any idea what kind of problems can cause this ?

Best regards, Longying

Ly-xiao avatar Feb 07 '25 16:02 Ly-xiao

Hi

This seems an issue with the installation of deepwave and having access to it. Please try the following line in the terminal to see if your python can import deepwave. $ python -c "import deepwave"

AmirMardan avatar Feb 07 '25 20:02 AmirMardan

Hi,

Thanks for the prompt reply. I have tried the command in the terminal and managed to run the first two lines, and then it poped up an 'AttributeError: module 'deepwave' has no attribute 'wavelets' ' (location: Line 134 of config file:deepwave.wavelets.ricker(F_PEAK, NT, DT, 1.5 / F_PEAK)). However as I tried print(dir(deepwave)), it has wavelets in the list; also, when I try from deepwave.wavelets import ricker, it also didn't complain..

Ly-xiao avatar Feb 07 '25 21:02 Ly-xiao