Closed banduccm closed 1 year ago
I'm also experiencing this exact same issue when attempting to setup a fresh Zephyr environment on a new machine running Win 11 Pro 21H2
Could you try to build the maturin branch? I am not sure I have properly connected all the pieces. I need to update GitHub Actions configuration, and setuptools_scm
needs to be replaced.
@mbrossard I'll give it a shot. Initial attempts were unsuccessful, as Fedora has deprecated python2 pip, and I don't have a good way to get a python2-compatible version of setuptools on this machine. I'll try to make some time to get a VM going to try the build.
Just for the sake of completeness, I can confirm that running setup.py
with python3 doesn't work :)
Initial attempts were unsuccessful, as Fedora has deprecated python2 pip, and I don't have a good way to get a python2-compatible version of setuptools on this machine. I'll try to make some time to get a VM going to try the build.
Just for the sake of completeness, I can confirm that running
setup.py
with python3 doesn't work :)
cmsis-pack-manager
does not support Python 2.x anymore and you probably need Python 3.7 with maturin
(Python 3.6 is EOL).
To test the maturin
you need the rust compiler installed (https://rustup.rs/) and Python with pip
, then it should be as simple as:
pip install .
Oh! I'm sorry, I misunderstood and went with the readme.
I tried again with maturin, and the build appears to have worked:
$ pip install .
Defaulting to user installation because normal site-packages is not writeable
Processing /home/mbanducci/repos/cmsis-pack-manager
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting appdirs<2.0,>=1.4
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Requirement already satisfied: cffi in /usr/lib64/python3.11/site-packages (from cmsis-pack-manager==0.5.0) (1.15.1)
Requirement already satisfied: pyyaml<7.0,>=6.0 in /usr/lib64/python3.11/site-packages (from cmsis-pack-manager==0.5.0) (6.0)
Requirement already satisfied: pycparser in /usr/lib/python3.11/site-packages (from cffi->cmsis-pack-manager==0.5.0) (2.20)
Requirement already satisfied: ply==3.11 in /usr/lib/python3.11/site-packages (from pycparser->cffi->cmsis-pack-manager==0.5.0) (3.11)
Building wheels for collected packages: cmsis-pack-manager
Building wheel for cmsis-pack-manager (pyproject.toml) ... done
Created wheel for cmsis-pack-manager: filename=cmsis_pack_manager-0.5.0-py3-none-linux_x86_64.whl size=3739428 sha256=774bf0d470b7f25b2ffe540a093ee8e0f74df30fbaa08d1716f45129fded66e4
Stored in directory: /home/mbanducci/.cache/pip/wheels/36/fc/b2/1799e56fe913dedc539a78b08828ead292fbb3ea77e774a4f5
Successfully built cmsis-pack-manager
Installing collected packages: appdirs, cmsis-pack-manager
Successfully installed appdirs-1.4.4 cmsis-pack-manager-0.5.0
After testing the build, I tried making a new venv for Zephyr, installing cmsis-pack-manager
manually from the checked-out repo, then following the rest of the typical setup steps for west
. Everything installed as expected and I'm able to build Zephyr projects again.
I was attempting to update my Zephyr workspace after updating to Fedora 37 and it seems as though the wheel for cmsis-pack-manager no longer builds:
Other notes:
python3-devel
installed, just in case, but adding it did not alter behaviorcmsis-pack-manager
both inside of and outside of my Zephyr venv with identical results