CUSTOM IMPORT ERROR :Specfem2D Workstation Examples on unbuntu 25 #19
hongqiangli
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i am installing and testing the code, when test Specfem2D Workstation Examples, there are some problems,could help me?
seisflows examples setup 1 -r /home/suma/sepcfem2d
================================================================================
SEISFLOWS EXAMPLE 1
///////////////////
This is a [SPECFEM2D] [WORKSTATION] example, which will run an inversion to
assess misfit between two homogeneous halfspace models with slightly different
velocities. [1 events, 1 station, 1 iterations]. The tasks involved include:
================================================================================
================================================================================
EXAMPLE SETUP
SPECFEM2D already configured, skipping 'configure'
executables found in SPECFEM2D/bin directory, skipping 'make'
================================================================================
GENERATING INITIAL MODEL
================================================================================
GENERATING TRUE/TARGET MODEL
1 1 2600.d0 5800.d0 3500.0d0 0 0 10.d0 10.d0 0 0 0 0 0 0
->
1 1 2600.d0 5900.d0 3550.0d0 0 0 10.d0 10.d0 0 0 0 0 0 0
Running SPECFEM2D with command: ./bin/xmeshfem2D > OUTPUT_FILES/mesher.log.txt
Running SPECFEM2D with command: ./bin/xspecfem2D > OUTPUT_FILES/solver.log.txt
================================================================================
CUSTOM IMPORT ERROR
///////////////////
Module could not be imported seisflows.workflow.inversion
cannot import name 'PdfMerger' from 'pypdf' (/home/suma/anaconda3/envs/seisflows/lib/python3.12/site-packages/pypdf/init.py)
Traceback (most recent call last):
File "/home/suma/seisflows/seisflows/tools/config.py", line 351, in custom_import
module = import_module(full_dotted_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/suma/anaconda3/envs/seisflows/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 999, in exec_module
File "", line 488, in _call_with_frames_removed
File "/home/suma/seisflows/seisflows/workflow/inversion.py", line 27, in
from seisflows.workflow.migration import Migration
File "/home/suma/seisflows/seisflows/workflow/migration.py", line 27, in
from seisflows.tools.model import Model
File "/home/suma/seisflows/seisflows/tools/model.py", line 16, in
from seisflows.tools.graphics import plot_2d_image
File "/home/suma/seisflows/seisflows/tools/graphics.py", line 14, in
from pypdf import PdfMerger
ImportError: cannot import name 'PdfMerger' from 'pypdf' (/home/suma/anaconda3/envs/seisflows/lib/python3.12/site-packages/pypdf/init.py). Did you mean: 'PdfReader'?
None
Beta Was this translation helpful? Give feedback.
All reactions