You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, all.
I have problems reading marmousi model:
File "/home/plotnips/Madagascar/lib/python2.7/dist-packages/m8r.py", line 765, in init
sys.stderr.write('filename=%s.\n',self.filename)
TypeError: write() takes exactly one argument (2 given)
I think this is related to swig installation or Python2/Python3 compatibility. Can you help with this problem? Or maybe there are some related issues, but I have not found anyone.
I installed swig of version 3.0.12. It was detected in config.py file:
SWIG = u'/usr/bin/swig'
CODE:
import numpy
import m8r as sf
model_input="marmvel.hh"
model_orig = sf.Input(model_input)
vel = model_orig.read()
/home/plotnips/anaconda3/envs/tensorflow_env/bin/python /home/plotnips/Dropbox/Log_extrapolation/scripts/deeplogs-master/data/test2.py
error reading from input file.
data_format=xdr_float
error reading from input file.
data_format is not defined
Traceback (most recent call last):
File "/home/plotnips/Madagascar/lib/python2.7/dist-packages/m8r.py", line 757, in init
sys.stderr.write('filename=%s.\n',self.filename)
TypeError: write() takes exactly one argument (2 given)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/plotnips/Dropbox/Log_extrapolation/scripts/deeplogs-master/data/test2.py", line 4, in
model_orig = sf.Input(model_input)
File "/home/plotnips/Madagascar/lib/python2.7/dist-packages/m8r.py", line 765, in init
sys.stderr.write('filename=%s.\n',self.filename)
TypeError: write() takes exactly one argument (2 given)
Process finished with exit code 1
The text was updated successfully, but these errors were encountered:
libdrsf.so: cannot open shared object file: No such file or directory
On , Sergey Fomel <sergey.fomel@...> wrote:
Junwei,
It looks like Python cannot find the blas library. You may want to check
the LD_LIBRARY_PATH environmental variable and to set it to include the
path to libblas.
Junwei,
It looks like Python cannot find the blas library. You may want to check
the LD_LIBRARY_PATH environmental variable and to set it to include the
path to libblas.
Hello, all.
I have problems reading marmousi model:
File "/home/plotnips/Madagascar/lib/python2.7/dist-packages/m8r.py", line 765, in init
sys.stderr.write('filename=%s.\n',self.filename)
TypeError: write() takes exactly one argument (2 given)
I think this is related to swig installation or Python2/Python3 compatibility. Can you help with this problem? Or maybe there are some related issues, but I have not found anyone.
I installed swig of version 3.0.12. It was detected in config.py file:
SWIG = u'/usr/bin/swig'
marmvel.hh:
in="stdin"
esize=4 type=float form=xdr
n1=751 d1=4 o1=0 label1="meters"
n2=2301 d2=4 o2=0 label2="meters"
n3=1 d3=1 o3=0 label3=""
n4=1 d4=1 o4=0 label4=""
1728051 elements 6912204 bytes
CODE:
import numpy
import m8r as sf
model_input="marmvel.hh"
model_orig = sf.Input(model_input)
vel = model_orig.read()
/home/plotnips/anaconda3/envs/tensorflow_env/bin/python /home/plotnips/Dropbox/Log_extrapolation/scripts/deeplogs-master/data/test2.py
error reading from input file.
data_format=xdr_float
error reading from input file.
data_format is not defined
Traceback (most recent call last):
File "/home/plotnips/Madagascar/lib/python2.7/dist-packages/m8r.py", line 757, in init
sys.stderr.write('filename=%s.\n',self.filename)
TypeError: write() takes exactly one argument (2 given)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/plotnips/Dropbox/Log_extrapolation/scripts/deeplogs-master/data/test2.py", line 4, in
model_orig = sf.Input(model_input)
File "/home/plotnips/Madagascar/lib/python2.7/dist-packages/m8r.py", line 765, in init
sys.stderr.write('filename=%s.\n',self.filename)
TypeError: write() takes exactly one argument (2 given)
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: