Skip to content

TypeError: expected str, bytes or os.PathLike object, not dict #124

Description

@habibutsu

run the follwogin command chevron ./test.mustache
I've got following error:

Traceback (most recent call last):
  File "/home/habibutsu/.pyenv/versions/venv3.11/bin/chevron", line 8, in <module>
    sys.exit(cli_main())
             ^^^^^^^^^^
  File "/home/habibutsu/.pyenv/versions/3.11.4/envs/venv3.11/lib/python3.11/site-packages/chevron/main.py", line 100, in cli_main
    sys.stdout.write(main(**args))
                     ^^^^^^^^^^^^
  File "/home/habibutsu/.pyenv/versions/3.11.4/envs/venv3.11/lib/python3.11/site-packages/chevron/main.py", line 19, in main
    with io.open(data, 'r', encoding='utf-8') as data_file:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not dict
Name: chevron
Version: 0.14.0
Summary: Mustache templating language renderer
Home-page: https://github.com/noahmorrison/chevron
Author: noah morrison
Author-email: noah@morrison.ph
License: MIT
Location: /home/habibutsu/.pyenv/versions/3.11.4/envs/venv3.11/lib/python3.11/site-packages
Requires: 
Required-by:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions