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. Debian 13.0 (trixie) ii libgit2-1.9:armel 1.9.0+ds-2 armel low-level Git library ii libgit2-dev:armel 1.9.0+ds-2 armel low-level Git library (development files) ii python3-aiohttp 3.11.16-1 armel http client/server for asyncio ii python3-pygit2 1.17.0-2 armel Python bindings for libgit2 (Python 3 module) ii python3-aiohttp 3.11.16-1 armel http client/server for asyncio # cat tools/patman/requirements.txt aiohttp==3.11.16 ConfigParser==7.1.0 importlib_resources==6.5.2 pygit2==1.17.0 requests==2.32.4 setuptools==78.1.1 Hope this helps others looking for it. All the best, Tony > Thanks, > Tony > > > > > -- > > Tom