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

DeprecationWarning: the imp module is deprecated in favour of importlib #1196

Closed
honzajavorek opened this issue Oct 29, 2020 · 2 comments
Closed

Comments

@honzajavorek
Copy link

Using rdflib==4.2.2 as part of extruct and getting this warning:

/.../python3.8/site-packages/rdflib/plugins/parsers/pyRdfa/utils.py:19
  /.../python3.8/site-packages/rdflib/plugins/parsers/pyRdfa/utils.py:19: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    import os, os.path, sys, imp, datetime

Not sure if this has been fixed in v5, I didn't find anything mentioning importlib in the issues or PRs here.

@FlorianLudwig
Copy link
Contributor

This was fixed in

RDFLib/pyrdfa3@d4b91f8

on pyrdfa3, which is not part of rdflib core.

@honzajavorek
Copy link
Author

OK, thanks! I also got a confirmation from extruct this is an issue more on their side as they're stuck with older versions of dependencies.

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

2 participants