We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to read a poetry toml file (which I'd think should not matter since it's a regular toml file) like this:
import rtoml obj = rtoml.load("pyproject.toml") print(obj)
and I'm getting
_rtoml.TomlParsingError: expected an equals, found eof at line 1 column 15
Here are few first lines from that file
[tool.poetry] name = "datascience" version = "0.1.0"
So it looks like it can't read the section [tool.poetry] line? But in the example it seems to read it without problems?
[tool.poetry]
The text was updated successfully, but these errors were encountered:
According to the source. It seems that rtoml.load will pass the arg directly to rtoml.loads if you give it a str.
rtoml.load
rtoml.loads
str
rtoml/rtoml/__init__.py
Lines 16 to 26 in d79d03f
Sorry, something went wrong.
It will be true:
from pathlib import Path import rtoml obj = rtoml.load(Path(r".\pyproject.toml")) print(obj)
No branches or pull requests
I'm trying to read a poetry toml file (which I'd think should not matter since it's a regular toml file) like this:
and I'm getting
Here are few first lines from that file
So it looks like it can't read the section
[tool.poetry]
line?But in the example it seems to read it without problems?
The text was updated successfully, but these errors were encountered: