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, I'm a newbie in simpeg and trying to set up in server-environment.
I installed SimPEG and discretzie==0.7.3 via pip.
Then I tested the code below.
import SimPEG from discretize import TreeMesh from discretize.utils import mkvc, refine_tree_xyz
from SimPEG.utils import model_builder, surface2ind_topo from SimPEG.utils.io_utils.io_utils_electromagnetics import write_dcip2d_ubc from SimPEG import maps, data
up to this, it seems to be pretty OK. However, When I wrote the line below and run,
from SimPEG.electromagnetics.static import resistivity as dc
The error is as follows:
ImportError Traceback (most recent call last)
in
14 from SimPEG import maps, data
15
---> 16 from SimPEG.electromagnetics.static import resistivity as dc
17
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/SimPEG/electromagnetics/init.py in
1 from scipy.constants import mu_0, epsilon_0
2
----> 3 from . import time_domain
4 from . import frequency_domain
5 from . import natural_source
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/SimPEG/electromagnetics/time_domain/init.py in
----> 1 from .simulation import (
2 Simulation3DMagneticFluxDensity,
3 Simulation3DElectricField,
4 Simulation3DMagneticField,
5 Simulation3DCurrentDensity,
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/SimPEG/electromagnetics/time_domain/simulation.py in
8 from ...utils import mkvc, sdiag, speye, Zero
9 from ..base import BaseEMSimulation
---> 10 from .survey import Survey
11 from .fields import (
12 Fields3DMagneticFluxDensity,
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/SimPEG/electromagnetics/time_domain/survey.py in
1 import properties
2 from ...survey import BaseSurvey
----> 3 from .sources import BaseTDEMSrc
4
5
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/SimPEG/electromagnetics/time_domain/sources.py in
5 from ...utils.code_utils import deprecate_property
6
----> 7 from geoana.em.static import MagneticDipoleWholeSpace, CircularLoopWholeSpace
8
9 from ..base import BaseEMSrc
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/geoana/init.py in
1 from . import utils
2 from . import earthquake
----> 3 from . import em
4
5 version = '0.2.0'
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/geoana/em/init.py in
22
23 """
---> 24 from . import static
25 from . import fdem
26 from . import tdem
ImportError: cannot import name 'static' from 'geoana.em' (/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/geoana/em/init.py)
When I go to the directory "~~~~~/geoana/em/" there is no such file(or directory) static. (other files are very well)
drwxr-xr-x 5 99 99 4096 May 11 01:07 .
drwxr-xr-x 6 99 99 4096 May 11 01:07 ..
-rw-r--r-- 1 99 99 700 May 11 01:07 init.py
drwxr-xr-x 2 99 99 4096 May 11 01:07 pycache
-rw-r--r-- 1 99 99 14180 May 11 01:07 base.py
drwxr-xr-x 3 99 99 4096 May 11 01:07 fdem
-rw-r--r-- 1 99 99 257 May 11 01:07 setup.py
drwxr-xr-x 3 99 99 4096 May 11 01:07 tdem
I tried to install again, but the same problem happened.
I don't know. Can it be a version issue? Is there any solution for the problem??
The text was updated successfully, but these errors were encountered:
There was an issue with an incomplete source distribution from the geoana package. Those versions have been yanked from PyPI now, and the most up to date version 0.2.2 of geoana should fix this issue.
Hello, I'm a newbie in simpeg and trying to set up in server-environment.
I installed SimPEG and discretzie==0.7.3 via pip.
Then I tested the code below.
import SimPEG
from discretize import TreeMesh
from discretize.utils import mkvc, refine_tree_xyz
from SimPEG.utils import model_builder, surface2ind_topo
from SimPEG.utils.io_utils.io_utils_electromagnetics import write_dcip2d_ubc
from SimPEG import maps, data
up to this, it seems to be pretty OK. However, When I wrote the line below and run,
from SimPEG.electromagnetics.static import resistivity as dc
The error is as follows:
ImportError Traceback (most recent call last)
in
14 from SimPEG import maps, data
15
---> 16 from SimPEG.electromagnetics.static import resistivity as dc
17
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/SimPEG/electromagnetics/init.py in
1 from scipy.constants import mu_0, epsilon_0
2
----> 3 from . import time_domain
4 from . import frequency_domain
5 from . import natural_source
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/SimPEG/electromagnetics/time_domain/init.py in
----> 1 from .simulation import (
2 Simulation3DMagneticFluxDensity,
3 Simulation3DElectricField,
4 Simulation3DMagneticField,
5 Simulation3DCurrentDensity,
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/SimPEG/electromagnetics/time_domain/simulation.py in
8 from ...utils import mkvc, sdiag, speye, Zero
9 from ..base import BaseEMSimulation
---> 10 from .survey import Survey
11 from .fields import (
12 Fields3DMagneticFluxDensity,
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/SimPEG/electromagnetics/time_domain/survey.py in
1 import properties
2 from ...survey import BaseSurvey
----> 3 from .sources import BaseTDEMSrc
4
5
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/SimPEG/electromagnetics/time_domain/sources.py in
5 from ...utils.code_utils import deprecate_property
6
----> 7 from geoana.em.static import MagneticDipoleWholeSpace, CircularLoopWholeSpace
8
9 from ..base import BaseEMSrc
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/geoana/init.py in
1 from . import utils
2 from . import earthquake
----> 3 from . import em
4
5 version = '0.2.0'
/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/geoana/em/init.py in
22
23 """
---> 24 from . import static
25 from . import fdem
26 from . import tdem
ImportError: cannot import name 'static' from 'geoana.em' (/lab-kernels/conda-envs-cpu/i7395dc57dc509268/lib/python3.7/site-packages/geoana/em/init.py)
When I go to the directory "~~~~~/geoana/em/" there is no such file(or directory) static. (other files are very well)
drwxr-xr-x 5 99 99 4096 May 11 01:07 .
drwxr-xr-x 6 99 99 4096 May 11 01:07 ..
-rw-r--r-- 1 99 99 700 May 11 01:07 init.py
drwxr-xr-x 2 99 99 4096 May 11 01:07 pycache
-rw-r--r-- 1 99 99 14180 May 11 01:07 base.py
drwxr-xr-x 3 99 99 4096 May 11 01:07 fdem
-rw-r--r-- 1 99 99 257 May 11 01:07 setup.py
drwxr-xr-x 3 99 99 4096 May 11 01:07 tdem
I tried to install again, but the same problem happened.
I don't know. Can it be a version issue? Is there any solution for the problem??
The text was updated successfully, but these errors were encountered: