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

Issue template versions command no longer works #47106

Closed
vyasr opened this issue May 24, 2022 · 2 comments
Closed

Issue template versions command no longer works #47106

vyasr opened this issue May 24, 2022 · 2 comments

Comments

@vyasr
Copy link
Contributor

vyasr commented May 24, 2022

setuptools version 60.0.0 made the local copy of distutils the default. Due to this change, certain import orders of distutils and setuptools seem to cause problems, cf. pypa/setuptools#3439 and pypa/setuptools#3089. Current pandas.show_versions suffers from the same problem, and as a result cannot report versions when opening issues.

Users can get around this by setting the environment variable SETUPTOOLS_USE_DISTUTILS=stdlib, but they may not know to do so. One option would just be to just change the issue template to ask users to execute SETUPTOOLS_USE_DISTUTILS=stdlib python -c "import pandas; pandas.show_versions()", but I don't know if this error is persistent across all Python versions, or if it will be an issue until Python 3.12 (when distutils is officially removed).

@mroeschke
Copy link
Member

Thanks for the report. I think this might be the same issue as #44980 and is being worked on at #47096

@vyasr
Copy link
Contributor Author

vyasr commented May 24, 2022

Ah yes, I think so, thanks. I'm not sure how I missed that one. I think we can close this.

@vyasr vyasr closed this as completed May 24, 2022
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