Compiling Windows IOT Core missing PythonLibrary

William Dunkley 21 Reputation points
2020-09-29T17:15:12.387+00:00

I'm able to get the flash.bin to compile, but I'm running into an issue with the uefi.fit.

I keep running into errors with the compiler looking for PythonLibrary
File "/home/will/.local/lib/python3.8/site-packages/MuEnvironment/UefiBuild.py", line 44, in <module>
from PythonLibrary.Uefi.EdkII.Parsers.TargetTxtParser import *
ModuleNotFoundError: No module named 'PythonLibrary'

In my libraries, I have MuPythonLibrary but not PythonLibrary. Are they the same thing, if not I can't find a way to install just PythonLibrary? Any insight on this guys?

Windows for IoT
Windows for IoT
A family of Microsoft operating systems designed for use in Internet of Things (IoT) devices.
398 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. William Dunkley 21 Reputation points
    2020-09-29T18:20:27.283+00:00

    Well, I just changed all the calls from PythonLibrary to MuPythonLibraray and it compiled.
    I did also have to run
    python -m pip install --upgrade mu_build
    but I got it to compile.
    Feel free to tell me why that was a bad thing to do, or why I had to even do that in the first place.


  2. Sean Liming 4,596 Reputation points
    2020-10-04T16:48:00.323+00:00

    I am using Ubuntu in WSL for NXP's Windows IoT firmware and BSP. The instructions are a little dated as python-wand doesn't exist. I had to run the following to complete the setup before building firmware the image was successful:

    pip3 install wand
    pip3 install mu-environment

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.