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 in Python 3.6 and 3.7 #1933

Closed
uri-rodberg opened this issue Dec 4, 2019 · 2 comments
Closed

DeprecationWarning in Python 3.6 and 3.7 #1933

uri-rodberg opened this issue Dec 4, 2019 · 2 comments

Comments

@uri-rodberg
Copy link

I receive a DeprecationWarning when using setuptools on Travis CI.

DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses

https://travis-ci.org/speedy-net/speedy-net/builds/620458854

https://travis-ci.org/speedy-net/speedy-net/builds/514284524

https://travis-ci.org/speedy-net/speedy-net/builds/514595887

@jaraco
Copy link
Member

jaraco commented Jan 19, 2020

What version of Setuptools? In #1855, released as v41.6.0, the deprecated behavior should be removed.

@jaraco
Copy link
Member

jaraco commented Jan 19, 2020

Now that I look at the tracebacks for the errors in those builds, Setuptools is not implicated. Instead, the 'import imp' calls were happening with distutils/__init__.py.

What I don't yet understand is that although those runs look like they're using Python 3.7.1, if I look at the code for Python 3.7.1, the distutils/__init__.py doesn't import imp. So I really don't know what's going on. Regardless, this issue was addressed in Setuptools.

If you think there are outstanding issues with Setuptools with regards to imp, please don't hesitate to re-open or comment and ping me so we can investigate further.

@jaraco jaraco closed this as completed Jan 19, 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