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

owlrl --help in 6.x fails, trying to import old constants (e.g. RDFXML) #49

Open
bollwyvl opened this issue Oct 11, 2021 · 0 comments
Open

Comments

@bollwyvl
Copy link

Discovered on conda-forge where we execute owlrl --help as part of the tests, It looks like the scripts were not updated for 6.x, after the removal of all of the various format strings were removed:

Traceback (most recent call last):
  File "/home/conda/feedstock_root/build_artifacts/owlrl_1633874681694/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/bin/owlrl", line 6, in <module>
    from owlrl._cli import main
  File "/home/conda/feedstock_root/build_artifacts/owlrl_1633874681694/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.9/site-packages/owlrl/_cli.py", line 5, in <module>
    from owlrl import convert_graph, RDFXML, TURTLE, JSON, AUTO, RDFA
ImportError: cannot import name 'RDFXML' from 'owlrl' (/home/conda/feedstock_root/build_artifacts/owlrl_1633874681694/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_/lib/python3.9/site-packages/owlrl/__init__.py)

As I know folk actually do use the command line tool, I'm probably just not going to ship that release on conda-forge.

Related:

  • We patch the scripts in setup.py to be cross-platform entry_points
    • the 6.x line may be an appropriate time to change this
      • and potentially add this to the test suite
  • Another nice thing would be a --version CLI flag
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