krischer / lasif Goto Github PK
View Code? Open in Web Editor NEWAn End-to-end Workflow for Adjoint Full Seismic Waveform Inversions
Home Page: http://www.lasif.net
License: GNU General Public License v3.0
An End-to-end Workflow for Adjoint Full Seismic Waveform Inversions
Home Page: http://www.lasif.net
License: GNU General Public License v3.0
Hi! I am installing LASIF following the instructions on http://lasif.net/prerequisites.html
Everything went well until testing LASIF by executing py.test
in the toplevel LASIF directory.
I got the following errors:
============================================================= test session starts =============================================================
platform linux -- Python 3.7.6, pytest-5.4.3, py-1.8.1, pluggy-0.13.1
rootdir: /home/zhuqw/LASIF, inifile: pytest.ini
collected 191 items / 2 errors / 189 selected
=================================================================== ERRORS ====================================================================
____________________________________________ ERROR collecting lasif/tests/test_adjoint_sources.py _____________________________________________
lasif/tests/test_adjoint_sources.py:17: in <module>
from scipy.io import loadmat
../.conda/envs/lasif/lib/python3.7/site-packages/scipy/io/__init__.py:97: in <module>
from .matlab import loadmat, savemat, whosmat, byteordercodes
../.conda/envs/lasif/lib/python3.7/site-packages/scipy/io/matlab/__init__.py:11: in <module>
from .mio import loadmat, savemat, whosmat
../.conda/envs/lasif/lib/python3.7/site-packages/scipy/io/matlab/mio.py:9: in <module>
from .mio4 import MatFile4Reader, MatFile4Writer
../.conda/envs/lasif/lib/python3.7/site-packages/scipy/io/matlab/mio4.py:14: in <module>
from .mio_utils import squeeze_element, chars_to_strings
mio_utils.pyx:1: in init scipy.io.matlab.mio_utils
???
E RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from C header, got 216 from PyObject
____________________________________________ ERROR collecting lasif/tests/test_adjoint_sources.py _____________________________________________
lasif/tests/test_adjoint_sources.py:17: in <module>
from scipy.io import loadmat
../.conda/envs/lasif/lib/python3.7/site-packages/scipy/io/__init__.py:97: in <module>
from .matlab import loadmat, savemat, whosmat, byteordercodes
../.conda/envs/lasif/lib/python3.7/site-packages/scipy/io/matlab/__init__.py:11: in <module>
from .mio import loadmat, savemat, whosmat
../.conda/envs/lasif/lib/python3.7/site-packages/scipy/io/matlab/mio.py:9: in <module>
from .mio4 import MatFile4Reader, MatFile4Writer
../.conda/envs/lasif/lib/python3.7/site-packages/scipy/io/matlab/mio4.py:14: in <module>
from .mio_utils import squeeze_element, chars_to_strings
mio_utils.pyx:1: in init scipy.io.matlab.mio_utils
???
E RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from C header, got 216 from PyObject
=========================================================== short test summary info ===========================================================
ERROR lasif/tests/test_adjoint_sources.py - RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from...
ERROR lasif/tests/test_adjoint_sources.py - RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================== 2 errors in 5.78s ==============================================================
The package version I am using:
Python 3.7.6
numpy 1.18.5
scipy 1.4.1
How can I install LASIF correctly in Python 3.7.6 ?
HI~ Here are three errors showing up when I run 'py.test':
localhost.localdomain.4200hfi_wait_for_device: The /dev/hfi1_0 device failed to appear after 15.0 seconds: Connection timed out
============================= test session starts ==============================
platform linux2 -- Python 2.7.15, pytest-4.1.0, py-1.7.0, pluggy-0.8.0
rootdir: /home/zyj/LASIF, inifile: pytest.ini
collected 197 items / 3 errors
==================================== ERRORS ====================================
_____________ ERROR collecting lasif/ses3d_model_gui/model_gui.py ______________
lasif/ses3d_model_gui/model_gui.py:17: in
from PyQt4 import QtGui
E ImportError: No module named PyQt4
__________ ERROR collecting lasif/ses3d_model_gui/ses3d_model_gui.py ___________
lasif/ses3d_model_gui/ses3d_model_gui.py:9: in
from PyQt4 import QtCore, QtGui
E ImportError: No module named PyQt4
________________ ERROR collecting lasif/webinterface/server.py _________________
lasif/webinterface/server.py:4: in
from flask.ext.cache import Cache
E ImportError: No module named ext.cache
!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 3 error in 3.57 seconds ============================
Respected Lion Krischer:
When I execute py.test
,I got the same result as you(), indicating that my LASIF program was installed correctly.
The First Question:When i using lasif launch_model_gui
, the images I get from your tutorial can only show part of the images.In the physical domain, data information is displayed only in the Mediterranean Sea, but not on European land. Why?
The Last Question:When I use the script that you update the model, although I adjust the script according to my own file, there is a problem that can not run. How can I solve it?
If you can get your help, we would be very grateful!!!
There is an error when I run py.test after the installation.
(lassie)Jobtimus-MacBook-Pro:doc Jobtimus$ py.test
Traceback (most recent call last):
File "/Users/Jobtimus/anaconda/envs/lasif/lib/python2.7/site-packages/_pytest/config.py", line 320, in _importconftest
mod = conftestpath.pyimport()
File "/Users/Jobtimus/anaconda/envs/lasif/lib/python2.7/site-packages/py/_path/local.py", line 650, in pyimport
import(modname)
File "/Users/Jobtimus/Downloads/LASIF/conftest.py", line 19, in
import matplotlib
File "/Users/Jobtimus/anaconda/envs/lasif/lib/python2.7/site-packages/matplotlib/init.py", line 1131, in
rcParams = rc_params()
File "/Users/Jobtimus/anaconda/envs/lasif/lib/python2.7/site-packages/matplotlib/init.py", line 975, in rc_params
return rc_params_from_file(fname, fail_on_error)
File "/Users/Jobtimus/anaconda/envs/lasif/lib/python2.7/site-packages/matplotlib/init.py", line 1100, in rc_params_from_file
config_from_file = _rc_params_in_file(fname, fail_on_error)
File "/Users/Jobtimus/anaconda/envs/lasif/lib/python2.7/site-packages/matplotlib/init.py", line 1018, in _rc_params_in_file
with _open_file_or_url(fname) as fd:
File "/Users/Jobtimus/anaconda/envs/lasif/lib/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "/Users/Jobtimus/anaconda/envs/lasif/lib/python2.7/site-packages/matplotlib/init.py", line 1000, in _open_file_or_url
encoding = locale.getdefaultlocale()[1]
File "/Users/Jobtimus/anaconda/envs/lasif/lib/python2.7/locale.py", line 543, in getdefaultlocale
return _parse_localename(localename)
File "/Users/Jobtimus/anaconda/envs/lasif/lib/python2.7/locale.py", line 475, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
ERROR: could not load /Users/Jobtimus/Downloads/LASIF/conftest.py
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
There might be some problem during my installation.
Could you please suggest me how to solve it?
Thank you so much.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.