I get similar problems on Win10 and on the Raspberry Pi when trying to run:
import skrf as rf
ntwk = rf.Network('ring slot.s2p')
ntwk.plot_s_smith()
Scikit-rf seemed to install fine with pip. I hop that someone can help to point out the issue. Thank you.
The errors from athe RPI are:
%Run scikit_rf_TEST1.py
Traceback (most recent call last):
File "/home/pi/mu_code/scikit_rf_TEST1.py", line 1, in <module>
import skrf as rf
File "/home/pi/.local/lib/python3.9/site-packages/skrf/__init__.py", line 12, in <module>
from . import network
File "/home/pi/.local/lib/python3.9/site-packages/skrf/network.py", line 176, in <module>
from scipy import stats, signal # for Network.add_noise_*, and Network.windowed
File "/home/pi/.local/lib/python3.9/site-packages/scipy/stats/__init__.py", line 453, in <module>
from ._stats_py import *
File "/home/pi/.local/lib/python3.9/site-packages/scipy/stats/_stats_py.py", line 38, in <module>
from scipy.spatial.distance import cdist
File "/home/pi/.local/lib/python3.9/site-packages/scipy/spatial/__init__.py", line 102, in <module>
from ._kdtree import *
File "/home/pi/.local/lib/python3.9/site-packages/scipy/spatial/_kdtree.py", line 5, in <module>
from ._ckdtree import cKDTree, cKDTreeNode
File "_ckdtree.pyx", line 1, in init scipy.spatial._ckdtree
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 48 from C header, got 40 from PyObject