python.exe has no missing dependencies. Therefor, I think that zlib.dll could be the right path.
I downloaded zlib for 64bit and put it in the devsim folder.
Now the dll error is gone but a new one appears:
%runfile C:/work/python_scripts/devsim/si_pin_diode.py --wdir
problems with creating default derivatives. declare(dBdx(x)); define(B(x),dBdx(x)); declare(sgn(x)); declare(step(x)); define(abs(x), sgn(x)); declare(derfdx(x)); declare(derfcdx(x)); define(erf(x), derfdx(x)); define(erfc(x), derfcdx(x));declare(derf_invdx(x)); declare(derfc_invdx(x)); define(erf_inv(x), derf_invdx(x)); define(erfc_inv(x), derfc_invdx(x));declare(dFermidx(x)); declare(dInvFermidx(x)); define(Fermi(x), dFermidx(x)); define(InvFermi(x), dInvFermidx(x)); define(vec_sum(x),1);declare(vec_max(x));declare(vec_min(x));declare(dot2d(ax,ay,bx,by));define(dot2d(ax, ay, bx, by), bx, by, ax, ay);define(max(x, y), x >= y, x < y);define(min(x, y), x <= y, x > y);define(kahan3(a, b, c), 1, 1, 1);define(kahan4(a, b, c, d), 1, 1, 1, 1);define(asinh(x), ((1 + (x^2))^(-1/2)));define(acosh(x), (((x^2) - 1)^(-1/2)));define(atanh(x), ((1 - (x^2))^(-1)));declare(cosh(x));define(sinh(x), cosh(x));define(cosh(x), sinh(x));declare(tanh(x));define(tanh(x), 1 - pow(tanh(x), 2));declare(dgfidx(x,y));define(gfi(x,y), dgfidx(x,y), 0);declare(digfidx(x,y));define(igfi(x,y), digfidx(x,y), 0);
dBdx has already been declared with 1 argument(s)
sgn has already been declared with 1 argument(s)
step has already been declared with 1 argument(s)
derfdx has already been declared with 1 argument(s)
derfcdx has already been declared with 1 argument(s)
derf_invdx has already been declared with 1 argument(s)
derfc_invdx has already been declared with 1 argument(s)
dFermidx has already been declared with 1 argument(s)
dInvFermidx has already been declared with 1 argument(s)
vec_max has already been declared with 1 argument(s)
vec_min has already been declared with 1 argument(s)
dot2d has already been declared with 4 argument(s)
cosh has already been declared with 1 argument(s)
tanh has already been declared with 1 argument(s)
dgfidx has already been declared with 2 argument(s)
digfidx has already been declared with 2 argument(s)
Traceback (most recent call last):
File C:\work\py311\Lib\site-packages\spyder_kernels\customize\utils.py:209 in exec_encapsulate_locals
exec_fun(compile(code_ast, filename, "exec"), globals)
File c:\work\python_scripts\devsim\si_pin_diode.py:11
from devsim import *
File C:\work\py311\Lib\site-packages\devsim\__init__.py:8
from .devsim_py3 import *
RuntimeError: Issues initializing DEVSIM.
Maybe the zlib.dll has the wrong version.
Regards,
Said