Yes, here’s a bunch.
os.errno: import errno was removed from os in 3.7, which broke things like os.errno.ENOENT from real codebases.
- Document removal of os.errno · Issue #77847 · python/cpython · GitHub
- [Python-ideas] Was `os.errno` undocumented?
- What’s New In Python 3.7 — Python 3.16.0a0 documentation
- os.errno doesn't exists anymore in Python 3.7 · Issue #1253 · Qiskit/qiskit · GitHub
- os.errno deprecated as of Python 3.7 · Issue #68 · uxlfoundation/oneMath · GitHub
- Update to support python 3.7+ changes · Issue #34 · intel/bmap-tools · GitHub
- 1583196 – dnf FTBFS on Python 3.7
- Show OS error codes and messages from the os.errno module « Python recipes « ActiveState Code
Raising IOError for 'file not found'
Requests once vendored its urllib3, chardet and idna dependencies in packages, but was depended on so much that they kept a compat shim:
# This code exists for backwards compatibility reasons.
# I don't like it either. Just look the other way. :)
- requests/src/requests/packages.py at main · psf/requests · GitHub
- https://medium.com/@rajputgajanan50/cannot-import-requests-packages-urllib3-util-retry-7351c03abd3a
And botocore had vendored dependencies under vendored but that didn’t stop people using stuff like from botocore.vendored.requests.packages.urllib3.exceptions import ReadTimeoutError!!
- Stop vendoring requests and urllib3 while being backwards compatible by henriklindstrom · Pull Request #1466 · boto/botocore · GitHub
- Removing the vendored version of requests from Botocore | AWS Developer Tools Blog
- aws-cli may be unintentionally importing vulnerable urllib3 from botocore · Issue #4082 · aws/aws-cli · GitHub
SciPy once exposed NumPy modules at the top-level, such that scipy.random was an alias for numpy.random, and so on, before being deprecated and removed:
- BUG: NumPy's `random` module should not be in the `scipy` namespace. · Issue #14889 · scipy/scipy · GitHub
- DEP: remove all deprecated `scipy.<numpy-func>` objects by rgommers · Pull Request #19067 · scipy/scipy · GitHub* MAINT: Deprecate NumPy functions in SciPy root by larsoner · Pull Request #10290 · scipy/scipy · GitHub
scikit-learn once vendored six and joblib and downstream packages imported them from sklearn.externals.six and sklearn.externals.joblib, which broke when removed in sklearn 0.23. Some discussion threads advised workarounds like pinning scikit-learn==0.20.3 or sys.modules['sklearn.externals.six'] = six to keep old code running.
- API Deprecate externals.six by qinhanmin2014 · Pull Request #12916 · scikit-learn/scikit-learn · GitHub
- sklearn.externals.six is Deprecated in Sklearn 0.23 · Issue #41 · scikit-learn-contrib/skope-rules · GitHub
- module sklearn.externals.six was removed in the version 0.23 · Issue #8 · shubhomoydas/ad_examples · GitHub
- ModuleNotFoundError: No module named 'sklearn.externals.six' | Kaggle
pandas.np and pandas.datetime:
- DEPR: Remove pandas.np · Issue #30296 · pandas-dev/pandas · GitHub
- What’s new in 1.0.0 (January 29, 2020) — pandas 3.0.5 documentation
- pandas.np module is deprecated · Issue #21 · tdda/tdda · GitHub
django.utils.six was once encouraged:
A customized version of
six is bundled with Django as of version 1.4.2. You can import it asdjango.utils.six`.
- Porting to Python 3 | Django documentation | Django
- Not compatible with Django 3 due to the missing django.utils.six · Issue #191 · ubernostrum/django-registration · GitHub
- cannot import name 'six' from 'django.utils' in Django 3 · Issue #788 · django-helpdesk/django-helpdesk · GitHub
- https://medium.com/@vdboor/patching-a-missing-django-utils-six-f882f93ccbce