chevron icon indicating copy to clipboard operation
chevron copied to clipboard

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

Open habibutsu opened this issue 9 months ago • 0 comments

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: [email protected]
License: MIT
Location: /home/habibutsu/.pyenv/versions/3.11.4/envs/venv3.11/lib/python3.11/site-packages
Requires: 
Required-by:

habibutsu avatar Sep 17 '23 16:09 habibutsu