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

Deprecation warning "the imp module is deprecated in favour of importlib" #176

Closed
mluerig opened this issue Oct 20, 2020 · 1 comment
Closed

Comments

@mluerig
Copy link

mluerig commented Oct 20, 2020

there is a deprecation warning that is breaking my CI pipeline when pykwalify is imported as a dependence of a dependence (original report of the issue AIM-Harvard/pyradiomics#642)

...
.tox\py37\lib\site-packages\radiomics\featureextractor.py:11: in <module>
    import pykwalify.core
.tox\py37\lib\site-packages\pykwalify\core.py:7: in <module>
    import imp
c:\anaconda3\envs\pp37\lib\imp.py:33: in <module>
    DeprecationWarning, stacklevel=2)
E   DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
ERROR: InvocationError for command 'E:\git_repos\phenopype\.tox\py37\Scripts\pytest.EXE' -s --cov=phenopype --cov-report=html (exited with code 4)
_______________________________________________________ summary _______________________________________________________
ERROR:   py37: commands failed

I fixed it with the -p no:warnings flag, but this should probably changed in pykwalify itself - if the project is still being maintained.

cheers

@Grokzen
Copy link
Owner

Grokzen commented Dec 29, 2020

Fixed inside master and for next major release

@Grokzen Grokzen closed this as completed Dec 29, 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

2 participants