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

ImportError: No module named 'rdflib.plugins.parsers.pyRdfa' #135

Closed
svnshikhil opened this issue Apr 24, 2020 · 8 comments
Closed

ImportError: No module named 'rdflib.plugins.parsers.pyRdfa' #135

svnshikhil opened this issue Apr 24, 2020 · 8 comments

Comments

@svnshikhil
Copy link

This issue occurs when we install warcio package

from rdflib.plugins.parsers.pyRdfa import pyRdfa as PyRdfa, Options, logger as pyrdfa_logger
ImportError: No module named 'rdflib.plugins.parsers.pyRdfa'

@lopuhin
Copy link
Member

lopuhin commented Apr 24, 2020

@svnshikhil this should be fixed in the lateest release, 0.9.0, could you please check it?

@saggu
Copy link

saggu commented Apr 24, 2020

@lopuhin there seems to be a version conflict re:rdflib

ERROR: extruct 0.9.0 has requirement rdflib<5.0.0, but you'll have rdflib 5.0.0 which is incompatible.

Will this be fixed?

@Gallaecio
Copy link
Member

Do you need rdflib 5.0.0?

@saggu
Copy link

saggu commented Apr 24, 2020

I don't but we are using other libraries as SPARQLWRAPPER which is using the latest rdflib.
For future proofing we use the latest version of libraries anyway.

@lopuhin
Copy link
Member

lopuhin commented Apr 27, 2020

@saggu I see, unfortunately extruct is not compatible with latest rdflib 5.0.0, we put a restriction on the version in 0.9.0 but you are right that this is not a viable solution long term, let's use this issue to track this.

I think the plan to improve this could be:

  1. at least don't fail to import with latest rdflib, so that we loos only extractions provided by it
  2. move off rdflib, either to another lib or adding our implementation, potentially derived from rdflib

@svnshikhil
Copy link
Author

@svnshikhil this should be fixed in the lateest release, 0.9.0, could you please check it?

Yeah, it's working

Thank you all

@lopuhin
Copy link
Member

lopuhin commented May 27, 2020

Re-opening because the proper fix is still not in place, we want to allow users of extruct to use the latest rdflib, see #135 (comment)

@lopuhin
Copy link
Member

lopuhin commented Dec 28, 2020

This is fixed by #161 and released in v0.12.0

@lopuhin lopuhin closed this as completed Dec 28, 2020
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

4 participants