Skip to content
New issue

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

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

Already on GitHub? # to your account

Make datadoc windows compatible #301

Closed
francescalb opened this issue Jan 9, 2025 · 1 comment
Closed

Make datadoc windows compatible #301

francescalb opened this issue Jan 9, 2025 · 1 comment

Comments

@francescalb
Copy link
Contributor

I get an issue with reading the context file as it does not convert it correctly to windows path.

running datadoc add xxx --dump=kb.ttl ends with this error message:

File "C:\xxxx\tripper\datadoc\dataset.py", line 362, in get_jsonld_context
with open(CONTEXT_PATH[7:], "r", encoding="utf-8") as f:
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument: '/C:/xxxx/tripper/context/0.2/context.json'

As you see the slash/backslash seems to be wrong.

@francescalb
Copy link
Contributor Author

Closed with #303

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant