Installation problem with openpnm #2183
-
Hello. I followed the installation guideline [here](url) using Anaconda but I haven't been able to install yet. Can somebody please help? This is the error I am getting. Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\deban\anaconda3\lib\site-packages\openpnm\__init__.py", line 64, in <module>
from . import algorithms
File "C:\Users\deban\anaconda3\lib\site-packages\openpnm\algorithms\__init__.py", line 13, in <module>
from .GenericTransport import GenericTransport
File "C:\Users\deban\anaconda3\lib\site-packages\openpnm\algorithms\GenericTransport.py", line 3, in <module>
import scipy.sparse.linalg
File "C:\Users\deban\anaconda3\lib\site-packages\scipy\sparse\linalg\__init__.py", line 114, in <module>
from .eigen import *
File "C:\Users\deban\anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\__init__.py", line 9, in <module>
from .arpack import *
File "C:\Users\deban\anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\__init__.py", line 20, in <module>
from .arpack import *
File "C:\Users\deban\anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\arpack.py", line 42, in <module>
from . import _arpack
ImportError: DLL load failed while importing _arpack: The specified procedure could not be found. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 8 replies
-
I was able to install
If you were able to run the last step with no errors, chances are that there might be something wrong with your
Let me know if it fixes you problem. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the inputs. I reinstalled numpy and scipy and it's working now. |
Beta Was this translation helpful? Give feedback.
-
get this error when i try to import: import openpnm
|
Beta Was this translation helpful? Give feedback.
-
Hello, thank you for your quick response, I have this traceback. I
downloaded OpenPNM with this function on my virtual machine : $ conda
install -c conda-forge openpnm
CRITICAL : front and back labels have been switched to obey the
right-hand rule
SOURCE : openpnm.network.Cubic.__init__
TIME STAMP : 2022-06-01 10:13:35,829
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.flow_shape_factors was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,980
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.hydraulic_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,980
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.poisson_shape_factors was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,981
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.diffusive_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,981
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.ad_dif_conductance was not run since the following
property is
missing: 'throat.hydraulic_conductance'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,982
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.thermal_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,984
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.electrical_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,984
------------------------------------------------------------
------------------------------------------------------------
WARNING : Inlets have non-zero volume, percolation curve won't start at
0.
SOURCE : openpnm.algorithms.OrdinaryPercolation.get_intrusion_data
TIME STAMP : 2022-06-01 10:13:36,552
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.flow_shape_factors was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,718
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.hydraulic_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,719
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.poisson_shape_factors was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,719
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.diffusive_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,720
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.ad_dif_conductance was not run since the following
property is
missing: 'throat.hydraulic_conductance'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,720
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.thermal_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,723
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.electrical_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,723
------------------------------------------------------------
Traceback (most recent call last):
File "/home/mathias/anaconda3/User_Guide.py", line 29, in <module>
sf.run()
File
"/home/mathias/anaconda3/lib/python3.9/site-packages/openpnm/algorithms/ReactiveTransport.py",
line 154, in run
self._validate_data_health()
File
"/home/mathias/anaconda3/lib/python3.9/site-packages/openpnm/algorithms/GenericTransport.py",
line 810, in _validate_data_health
if np.isfinite(self.A.data).all() and np.isfinite(self.b).all():
File
"/home/mathias/anaconda3/lib/python3.9/site-packages/openpnm/algorithms/GenericTransport.py",
line 489, in _get_A
self._build_A()
File
"/home/mathias/anaconda3/lib/python3.9/site-packages/openpnm/algorithms/GenericTransport.py",
line 468, in _build_A
g = phase[gvals]
File
"/home/mathias/anaconda3/lib/python3.9/site-packages/openpnm/phases/GenericPhase.py",
line 99, in __getitem__
vals = super().__getitem__(key)
File
"/home/mathias/anaconda3/lib/python3.9/site-packages/openpnm/core/Base.py",
line 283, in __getitem__
raise KeyError(key)
KeyError: 'throat.hydraulic_conductance'
Le mer. 1 juin 2022 à 00:50, jgostick ***@***.***> a écrit :
… can you put the full traceback? This is not a openpnm error message so we
need to see where in the stack this gets triggered.
—
Reply to this email directly, view it on GitHub
<#2183 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYWXRI3UGDPDQ7A63KVNI63VM2JS5ANCNFSM5LPNCCPQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I think there is something wrong with the function : sf.run(). It is
impossible to execute so I can't calculate the permeability in the
UserGuide example.
Le mer. 1 juin 2022 à 10:21, Mathias Gazay ***@***.***> a
écrit :
… Hello, thank you for your quick response, I have this traceback. I
downloaded OpenPNM with this function on my virtual machine : $ conda
install -c conda-forge openpnm
CRITICAL : front and back labels have been switched to obey the
right-hand rule
SOURCE : openpnm.network.Cubic.__init__
TIME STAMP : 2022-06-01 10:13:35,829
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.flow_shape_factors was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,980
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.hydraulic_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,980
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.poisson_shape_factors was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,981
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.diffusive_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,981
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.ad_dif_conductance was not run since the following
property is
missing: 'throat.hydraulic_conductance'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,982
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.thermal_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,984
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.electrical_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:35,984
------------------------------------------------------------
------------------------------------------------------------
WARNING : Inlets have non-zero volume, percolation curve won't start at
0.
SOURCE : openpnm.algorithms.OrdinaryPercolation.get_intrusion_data
TIME STAMP : 2022-06-01 10:13:36,552
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.flow_shape_factors was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,718
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.hydraulic_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,719
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.poisson_shape_factors was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,719
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.diffusive_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,720
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.ad_dif_conductance was not run since the following
property is
missing: 'throat.hydraulic_conductance'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,720
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.thermal_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,723
------------------------------------------------------------
------------------------------------------------------------
ERROR : throat.electrical_conductance was not run since the following
property is
missing: 'pore.area'
SOURCE : openpnm.core.ModelsMixin._regen
TIME STAMP : 2022-06-01 10:13:36,723
------------------------------------------------------------
Traceback (most recent call last):
File "/home/mathias/anaconda3/User_Guide.py", line 29, in <module>
sf.run()
File
"/home/mathias/anaconda3/lib/python3.9/site-packages/openpnm/algorithms/ReactiveTransport.py",
line 154, in run
self._validate_data_health()
File
"/home/mathias/anaconda3/lib/python3.9/site-packages/openpnm/algorithms/GenericTransport.py",
line 810, in _validate_data_health
if np.isfinite(self.A.data).all() and np.isfinite(self.b).all():
File
"/home/mathias/anaconda3/lib/python3.9/site-packages/openpnm/algorithms/GenericTransport.py",
line 489, in _get_A
self._build_A()
File
"/home/mathias/anaconda3/lib/python3.9/site-packages/openpnm/algorithms/GenericTransport.py",
line 468, in _build_A
g = phase[gvals]
File
"/home/mathias/anaconda3/lib/python3.9/site-packages/openpnm/phases/GenericPhase.py",
line 99, in __getitem__
vals = super().__getitem__(key)
File
"/home/mathias/anaconda3/lib/python3.9/site-packages/openpnm/core/Base.py",
line 283, in __getitem__
raise KeyError(key)
KeyError: 'throat.hydraulic_conductance'
Le mer. 1 juin 2022 à 00:50, jgostick ***@***.***> a écrit :
> can you put the full traceback? This is not a openpnm error message so we
> need to see where in the stack this gets triggered.
>
> —
> Reply to this email directly, view it on GitHub
> <#2183 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AYWXRI3UGDPDQ7A63KVNI63VM2JS5ANCNFSM5LPNCCPQ>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Okay thank you for your answer, I did it and I obtain only valid values I
think. Maybe I am running a too young version for this kind of example.
[image: image.png]
Le mer. 1 juin 2022 à 14:53, jgostick ***@***.***> a écrit :
… This means that one or more of your geometry values is not computed
correctly, like you have nans in the throat lenght of something. THen all
the 'downstream' calculations will complain and warn you. When you run
stokes flow it does not work because the data is not available. Try
printing your geometry and seeing which properties have invalid values
(i.e. print(geo))
—
Reply to this email directly, view it on GitHub
<#2183 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYWXRI6NQO5M3NFE2JTEDETVM5MMBANCNFSM5LPNCCPQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Same here. I am trying to run this simple example from the tutorial: _import openpnm as op Define geometrical parametersLc = 1e-4 Generate network, geometry, phase, and physicspn = op.network.Cubic(shape=[Nx, Ny, Nz], spacing=Lc) Create algorithm and run simulationmip = op.algorithms.Porosimetry(network=pn, phase=Hg) and i get runfile('C:/Users/stath/.spyder-py3/temp.py', wdir='C:/Users/stath/.spyder-py3')CRITICAL : front and back labels have been switched to obey the right-hand rule
|
Beta Was this translation helpful? Give feedback.
I was able to install
openpnm
on my machine. Just to make sure you can do the same, do the followings:openpnm
If you were able to run the last step with no errors, chances are that there might be something wrong with your
scipy
installation in your default conda environment. One fix could be to update all packages (before, make sure to activate yourbase
environment, since we're currentl…