patman: ImportError

Stefan Bosch stefan_b at
Sat May 16 13:27:58 CEST 2020


recently, I updated my local repository (U-Boot master). Last commit is 
c693f212c5b0433b3a49a89d87cbff28bf78eb87 now. Previously it has been 
4df3578119b043d76b86b50077b06898fc2a4f62 (Date:   Wed Dec 18 18:25:42 
2019 +0100).

Now I get an "ImportError" if I call patman:

u-boot_master$ ./tools/patman/patman --help
Traceback (most recent call last):
   File "./tools/patman/patman", line 21, in <module>
     from patman import checkpatch
"/home/stefan/u-boot_master/tools/patman/../patman/", line 
10, in <module>
     from patman import command
   File "/home/stefan/u-boot_master/tools/patman/../patman/", 
line 8, in <module>
     from patman import tools
   File "/home/stefan/u-boot_master/tools/patman/../patman/", 
line 13, in <module>
     from patman import command
ImportError: cannot import name 'command'

Cause of this 'ImportError' is probably that "from patman import 
command" has already been done before in (circular 
dependency). I think the error has to do with your your commit 
bf776679a73f3b9eae37aabd2be5754483039cb2 (patman: Move to absolute imports).

My Python version is 3.4.3.

Stefan Bosch

More information about the U-Boot mailing list