JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.45k stars 186 forks source link

Cannot run impedancefitter #1012

Open StefanPofahl opened 1 year ago

StefanPofahl commented 1 year ago

I installed impedancefitter as follows:

Conda.pip_interop(true, Conda.ROOTENV)
Conda.pip("install", "impedancefitter==2.0.3")

If I give the command:

impfit = pyimport("impedancefitter")

I receive the error-message:

ERROR: PyError (PyImport_ImportModule

The Python ... and re-launch Julia.

) <class 'ImportError'>
ImportError('DLL load failed while importing _common: Die angegebene Prozedur wurde nicht gefunden.')
  File "C:\Users\stefanpofahl\.julia\conda\3\lib\site-packages\impedancefitter\__init__.py", line 38, in <module>
    from .postprocess import PostProcess
  File "C:\Users\stefanpofahl\.julia\conda\3\lib\site-packages\impedancefitter\postprocess.py", line 22, in <module>
    import openturns as ot
  File "C:\Users\stefanpofahl\.julia\conda\3\lib\site-packages\openturns\__init__.py", line 49, in <module>
    from .common import *
  File "C:\Users\stefanpofahl\.julia\conda\3\lib\site-packages\openturns\common.py", line 15, in <module>
    from . import _common

Stacktrace:
 [1] pyimport(name::String)
   @ PyCall C:\Users\stefanpofahl\.julia\packages\PyCall\ygXW2\src\PyCall.jl:558
 [2] top-level scope
   @ c:\data\git_repos\hycenta_stefan_pofahl\julia_scripts\examples\EquivalentCircuits\package_impedancefit\example_impedancefitter.jl:41

I have checked the python version, it is:

PyCall.pyversion
v"3.9.13"

Which should be sufficient. Any ideas?