Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
habibutsu opened this issue Sep 17, 2023 · 0 comments
Open

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

habibutsu opened this issue Sep 17, 2023 · 0 comments

Comments

@habibutsu
Copy link

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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant