Skip to content

ModuleNotFoundError: No module named 'tomli' #350

@shenxianpeng

Description

@shenxianpeng

describe your issue

check committer email....................................................Failed
- hook id: check-author-email
- exit code: 1

Traceback (most recent call last):
  File "/Users/sxp/Repos/commit-check/commit-check/commit_check/config.py", line 7, in <module>
    import tomllib
ModuleNotFoundError: No module named 'tomllib'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/sxp/.cache/pre-commit/repoeaol_ujs/py_env-python3.9/bin/commit-check", line 3, in <module>
    from commit_check.main import main
  File "/Users/sxp/Repos/commit-check/commit-check/commit_check/main.py", line 8, in <module>
    from commit_check.config import load_config
  File "/Users/sxp/Repos/commit-check/commit-check/commit_check/config.py", line 11, in <module>
    import tomli  # type: ignore
ModuleNotFoundError: No module named 'tomli'

commit-check version

commit-check 2.2.1

commit-check.toml or cchk.toml

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions