Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • scripts
  • checkpatch.pl
Find file BlameHistoryPermalink
  • Guenter Roeck's avatar
    checkpatch: scripts/spdxcheck.py now requires python3 · f9363b31
    Guenter Roeck authored Jun 30, 2021
    Since commit d0259c42 ("spdxcheck.py: Use Python 3"), spdxcheck.py
    explicitly expects to run as python3 script.  If "python" still points to
    python v2.7 and the script is executed with "python scripts/spdxcheck.py",
    the following error may be seen even if git-python is installed for
    python3.
    
    Traceback (most recent call last):
      File "scripts/spdxcheck.py", line 10, in <module>
        import git
    ImportError: No module named git
    
    To fix the problem, check for the existence of python3, check if
    the script is executable and not just for its existence, and execute
    it directly.
    
    Link: https://lkml.kernel.org/r/20210505211720.447111-1-linux@roeck-us.net
    
    
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Cc: Joe Perches <joe@perches.com>
    Cc: Bert Vermeulen <bert@biot.com>
    Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
    Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    f9363b31
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7