On Fri, Aug 29, 2025 at 09:30:34AM -0700, Tony Dinh wrote: > Hi Tom, > > On Mon, Aug 25, 2025 at 12:32 PM Tony Dinh <mibo...@gmail.com> wrote: > > > > On Mon, Aug 25, 2025 at 12:02 PM Tom Rini <tr...@konsulko.com> wrote: > > > > > > On Mon, Aug 25, 2025 at 11:49:35AM -0700, Tony Dinh wrote: > > > > > > > Hi Tom, > > > > > > > > I've just done a git pull on the master branch. And then ran patman > > > > and got this error. > > > > > > > > ./tools/patman/patman -c1 -s2 send -n > > > > Traceback (most recent call last): > > > > File "/usr/src/u-boot-marvell/./tools/patman/patman", line 21, in > > > > <module> > > > > from patman import control > > > > File "/usr/src/u-boot-marvell/tools/patman/../patman/control.py", > > > > line 24, in <module> > > > > from patman import cseries > > > > File "/usr/src/u-boot-marvell/tools/patman/../patman/cseries.py", > > > > line 19, in <module> > > > > from patman import cser_helper > > > > File "/usr/src/u-boot-marvell/tools/patman/../patman/cser_helper.py", > > > > line 18, in <module> > > > > import aiohttp > > > > ModuleNotFoundError: No module named 'aiohttp' > > > > > > > > I'm on Debian 12.11 and have Python 3.11.2. Is there something I might > > > > be missing? > > > > > > Ideally you should be using a virtualenv or whatever is recommended on > > > Debian 12 and then pip (or pipx?) install -r > > > tools/patman/requirements.txt > > > > Strange! I did not have to do anything extra like that before. I > > always thought u-boot did that automatically. Also, I've just tested > > it on u-boot-2025.07-rc5 on another u-boot git clone (on the same > > system), and patman ran without this problem. > > > > I'll dig some more, but if you have any idea please let me know. > > > > Debian 12.11 (bookworm) has quite a bit of version mismatches between > aiohttp, pygit2 and their dependencies in u-boot. It's a struggle, ie. > impossible, to try to resolve. So I had to upgrade to Debian 13.0 > (trixie) and used the versions provided by this distro version.
Right. This, sadly IMHO, is why anything python related needs to be done in a virtual environment. That seems to really be a language best practice, even. -- Tom
signature.asc
Description: PGP signature